Needing a script convertion

I found an exact script I'm looking for. Unfortunately it is for VX and I'm working in XP. I know very little scripting. I'm hoping that one of you awesome scripters can write a conversion for me. It isn't that big of a script either.

  1. #-------------------------------------------------------------------------------
  2. #                        :..: Scene Teleport FFXII
  3. #                              by: Master I
  4. #-------------------------------------------------------------------------------
  5. module Pernalonga
  6. Teleport_data = []
  7. #===============================================================================
  8. # Fonte, Tamanho, ID_Item, Tempo, Animação,  Sons, Efeito do Tremor,
  9. # Largura & Altura, Windowskin
  10. #-------------------------------------------------------------------------------
  11. Teleport_font = ["Arial Narrow", 16]
  12. Teleport_item = 21
  13. Teleport_time = 250
  14. Teleport_animation = 80
  15. Teleport_sons = ["Teleport IN", "Teleport OUT"]
  16. Teleport_tremor = [5,3]
  17. Teleport_LG = [150,150]
  18. Teleport_windowskin = "vx-sepia01"
  19. #===============================================================================
  20. #Teleport_data[Ordem] = [ID do Mapa, Posx, Posy1, Swtich]
  21. #-------------------------------------------------------------------------------
  22. Teleport_data[0] = [3, 18, 29, 1] #Town
  23. Teleport_data[1] = [11, 10, 10, 1] #Village
  24. Teleport_data[2] = [12, 14, 27, 2] #Village |snow|
  25. Teleport_data[3] = [2, 13, 19, 3]  #Desert Town
  26. Teleport_data[4] = [4, 15, 18, 6]  #Castle
  27. Teleport_data[5] = [10, 41, 19, 4] #Field
  28. Teleport_data[6] = [1, 18, 41, 5]  #Dugeon
  29. end
  30. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  31. #                            Fim das Configurações
  32. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  33.  
  34. #===============================================================================
  35. # Window Teleport
  36. #-------------------------------------------------------------------------------
  37. class Window_Teleport < Window_Selectable
  38.   include Pernalonga
  39.   def initialize(x, y, width, height)
  40.     super(x, y, width, height)
  41.     @column_max = 1
  42.     self.index = 0
  43.     self.windowskin = Cache.system(Teleport_windowskin)
  44.     refresh
  45.   end
  46.  
  47.   def teleport
  48.     return @data[index]
  49.   end
  50.  
  51.   def refresh
  52.     @data = []
  53.     for i in 0...Teleport_data.size
  54.       if $game_switches[Teleport_data[i][3]] and not Teleport_data[i][0] == $game_map.map_id
  55.       @data.push(Teleport_data[i])
  56.       end
  57.     end
  58.     @item_max = @data.size
  59.     create_contents
  60.     for i in 0...@item_max
  61.       draw_item(i)
  62.     end
  63.   end
  64.  
  65.   def draw_item(index)
  66.     self.contents.font.name = Teleport_font[0]
  67.     self.contents.font.size = Teleport_font[1]
  68.     nome = load_data("Data/MapInfos.rvdata")[@data[index][0]].name
  69.     self.contents.draw_text(0, 24 * index, 100, WLH, nome)
  70.   end
  71. end
  72.  
  73. #===============================================================================
  74. # Scene Teleport
  75. #-------------------------------------------------------------------------------
  76. class Scene_Teleport < Scene_Base
  77.   include Pernalonga
  78.   def start
  79.     super
  80.     @guardar = []
  81.     @mapa = Spriteset_Map.new
  82.     y = $game_player.screen_y - Teleport_LG[0] / 2 if $game_player.screen_y <= 304
  83.     y = $game_player.screen_y / 2 if $game_player.screen_y > 305
  84.     x = $game_player.screen_x + 20 if $game_player.screen_x <= 300
  85.     x = $game_player.screen_x - Teleport_LG[1] / 2 if $game_player.screen_x >= 301
  86. @teleport = Window_Teleport.new(x, y, Teleport_LG[0], Teleport_LG[1])
  87.     @animação = Sprite_Base.new
  88.     @teleport.active = true
  89.     @sair = 0
  90.     @p_sair = false
  91.   end
  92.  
  93.  
  94.   def update
  95.     super
  96.     @teleport.update
  97.     @mapa.update
  98.     @animação.update
  99.     $game_map.interpreter.update
  100.     $game_system.update
  101.     $game_map.update
  102.     @sair += 1 if @p_sair
  103.     saida
  104.     udpate_selection
  105.   end
  106.  
  107.   def terminate
  108.     super
  109.     @teleport.dispose
  110.     @mapa.dispose
  111.     @animação.dispose
  112.     @sair = 0
  113.     @p_sair = false
  114.   end
  115.  
  116.   def udpate_selection
  117.     if Input.trigger?(Input::B)
  118.       Sound.play_cancel
  119.       $scene = Scene_Map.new
  120.     elsif Input.trigger?(Input::C)
  121.       item = $data_items[Teleport_item]
  122.       item_número = $game_party.item_number(item)
  123.        if @teleport.teleport != nil and item_número > 0
  124.       @animação.start_animation($data_animations[Teleport_animation])
  125.       Audio.se_play("Audio/ME/" + Teleport_sons[0], 100)
  126.       $game_party.lose_item(item, 1)
  127.       @teleport.visible = false
  128.       tone = Tone.new(255,255,255,255)
  129.       $game_map.screen.start_tone_change(tone, 120)
  130.       $game_map.screen.start_shake(Teleport_tremor[0],Teleport_tremor[1],120)
  131.       RPG::BGM.fade(1500)
  132.       @p_sair = true
  133.      # Graphics.wait(60)
  134.     else
  135.       Sound.play_buzzer
  136.       end
  137.   end
  138.  end
  139.  
  140.  def saida
  141.    if @sair == Teleport_time - 80
  142.      $game_map.setup(@teleport.teleport[0])
  143.      $game_map.autoplay
  144.    elsif @sair == Teleport_time
  145.      #@sair = 300
  146.      pode_sair
  147.      @p_sair = false
  148.    end
  149.  end
  150.  
  151.  def pode_sair
  152.    # $game_map.setup(@teleport.teleport[0])
  153.    # $game_map.autoplay
  154.    Audio.se_play("Audio/ME/" + Teleport_sons[1], 100)
  155.    tone = Tone.new(0,0,0,0)
  156.    $game_map.screen.start_tone_change(tone, 120)
  157.    $game_map.screen.start_shake(Teleport_tremor[0],Teleport_tremor[1],120)
  158.    $game_player.moveto(@teleport.teleport[1],@teleport.teleport[2])
  159.    Graphics.wait(60)
  160.    @animação.start_animation($data_animations[Teleport_animation])
  161.    $scene = Scene_Map.new
  162.  end
  163. end
  164. $pernalonga = {} if $pernalonga == nil
  165. $pernalonga = {"Teleport_FFXII" => true}
  166. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  167. #                             Fim do Script
  168. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  169.      
  170.      
  171.  
  172.    
Expand to see the code.
Please post the code using an [rgss] tag instead of a [spoiler] tag. After that I may do the conversion for you. Although it looks to me like all it needs is for you to include Scene_Base from RMVX in your RMXP project above this script, and also to replace "MapInfos.rvdata" in the script with "MapInfos.rxdata".
fixed the post
Here, I fixed the post for you.

  1. #-------------------------------------------------------------------------------
  2. #                        :..: Scene Teleport FFXII
  3. #                              by: Master I
  4. #-------------------------------------------------------------------------------
  5. module Pernalonga
  6. Teleport_data = []
  7. #===============================================================================
  8. # Fonte, Tamanho, ID_Item, Tempo, Animação,  Sons, Efeito do Tremor,
  9. # Largura & Altura, Windowskin
  10. #-------------------------------------------------------------------------------
  11. Teleport_font = ["Arial Narrow", 16]
  12. Teleport_item = 21
  13. Teleport_time = 250
  14. Teleport_animation = 80
  15. Teleport_sons = ["Teleport IN", "Teleport OUT"]
  16. Teleport_tremor = [5,3]
  17. Teleport_LG = [150,150]
  18. Teleport_windowskin = "vx-sepia01"
  19. #===============================================================================
  20. #Teleport_data[Ordem] = [ID do Mapa, Posx, Posy1, Swtich]
  21. #-------------------------------------------------------------------------------
  22. Teleport_data[0] = [3, 18, 29, 1] #Town
  23. Teleport_data[1] = [11, 10, 10, 1] #Village
  24. Teleport_data[2] = [12, 14, 27, 2] #Village |snow|
  25. Teleport_data[3] = [2, 13, 19, 3]  #Desert Town
  26. Teleport_data[4] = [4, 15, 18, 6]  #Castle
  27. Teleport_data[5] = [10, 41, 19, 4] #Field
  28. Teleport_data[6] = [1, 18, 41, 5]  #Dugeon
  29. end
  30. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  31. #                            Fim das Configurações
  32. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  33.  
  34. #===============================================================================
  35. # Window Teleport
  36. #-------------------------------------------------------------------------------
  37. class Window_Teleport < Window_Selectable
  38.   include Pernalonga
  39.   def initialize(x, y, width, height)
  40.     super(x, y, width, height)
  41.     @column_max = 1
  42.     self.index = 0
  43.     self.windowskin = Cache.system(Teleport_windowskin)
  44.     refresh
  45.   end
  46.  
  47.   def teleport
  48.     return @data[index]
  49.   end
  50.  
  51.   def refresh
  52.     @data = []
  53.     for i in 0...Teleport_data.size
  54.       if $game_switches[Teleport_data[i][3]] and not Teleport_data[i][0] == $game_map.map_id
  55.       @data.push(Teleport_data[i])
  56.       end
  57.     end
  58.     @item_max = @data.size
  59.     create_contents
  60.     for i in 0...@item_max
  61.       draw_item(i)
  62.     end
  63.   end
  64.  
  65.   def draw_item(index)
  66.     self.contents.font.name = Teleport_font[0]
  67.     self.contents.font.size = Teleport_font[1]
  68.     nome = load_data("Data/MapInfos.rvdata")[@data[index][0]].name
  69.     self.contents.draw_text(0, 24 * index, 100, WLH, nome)
  70.   end
  71. end
  72.  
  73. #===============================================================================
  74. # Scene Teleport
  75. #-------------------------------------------------------------------------------
  76. class Scene_Teleport < Scene_Base
  77.   include Pernalonga
  78.   def start
  79.     super
  80.     @guardar = []
  81.     @mapa = Spriteset_Map.new
  82.     y = $game_player.screen_y - Teleport_LG[0] / 2 if $game_player.screen_y <= 304
  83.     y = $game_player.screen_y / 2 if $game_player.screen_y > 305
  84.     x = $game_player.screen_x + 20 if $game_player.screen_x <= 300
  85.     x = $game_player.screen_x - Teleport_LG[1] / 2 if $game_player.screen_x >= 301
  86. @teleport = Window_Teleport.new(x, y, Teleport_LG[0], Teleport_LG[1])
  87.     @animação = Sprite_Base.new
  88.     @teleport.active = true
  89.     @sair = 0
  90.     @p_sair = false
  91.   end
  92.  
  93.  
  94.   def update
  95.     super
  96.     @teleport.update
  97.     @mapa.update
  98.     @animação.update
  99.     $game_map.interpreter.update
  100.     $game_system.update
  101.     $game_map.update
  102.     @sair += 1 if @p_sair
  103.     saida
  104.     udpate_selection
  105.   end
  106.  
  107.   def terminate
  108.     super
  109.     @teleport.dispose
  110.     @mapa.dispose
  111.     @animação.dispose
  112.     @sair = 0
  113.     @p_sair = false
  114.   end
  115.  
  116.   def udpate_selection
  117.     if Input.trigger?(Input::B)
  118.       Sound.play_cancel
  119.       $scene = Scene_Map.new
  120.     elsif Input.trigger?(Input::C)
  121.       item = $data_items[Teleport_item]
  122.       item_número = $game_party.item_number(item)
  123.        if @teleport.teleport != nil and item_número > 0
  124.       @animação.start_animation($data_animations[Teleport_animation])
  125.       Audio.se_play("Audio/ME/" + Teleport_sons[0], 100)
  126.       $game_party.lose_item(item, 1)
  127.       @teleport.visible = false
  128.       tone = Tone.new(255,255,255,255)
  129.       $game_map.screen.start_tone_change(tone, 120)
  130.       $game_map.screen.start_shake(Teleport_tremor[0],Teleport_tremor[1],120)
  131.       RPG::BGM.fade(1500)
  132.       @p_sair = true
  133.      # Graphics.wait(60)
  134.     else
  135.       Sound.play_buzzer
  136.       end
  137.   end
  138.  end
  139.  
  140.  def saida
  141.    if @sair == Teleport_time - 80
  142.      $game_map.setup(@teleport.teleport[0])
  143.      $game_map.autoplay
  144.    elsif @sair == Teleport_time
  145.      #@sair = 300
  146.      pode_sair
  147.      @p_sair = false
  148.    end
  149.  end
  150.  
  151.  def pode_sair
  152.    # $game_map.setup(@teleport.teleport[0])
  153.    # $game_map.autoplay
  154.    Audio.se_play("Audio/ME/" + Teleport_sons[1], 100)
  155.    tone = Tone.new(0,0,0,0)
  156.    $game_map.screen.start_tone_change(tone, 120)
  157.    $game_map.screen.start_shake(Teleport_tremor[0],Teleport_tremor[1],120)
  158.    $game_player.moveto(@teleport.teleport[1],@teleport.teleport[2])
  159.    Graphics.wait(60)
  160.    @animação.start_animation($data_animations[Teleport_animation])
  161.    $scene = Scene_Map.new
  162.  end
  163. end
  164. $pernalonga = {} if $pernalonga == nil
  165. $pernalonga = {"Teleport_FFXII" => true}
  166. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  167. #                             Fim do Script
  168. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  169.      
  170.      
  171.  
  172.    
Expand to see the code.
Thanx Jaun
OK i been tinkering with this. i have it working except the screen tone isn't turning black.

  1.  def udpate_selection
  2.     if Input.trigger?(Input::B)
  3.       Audio.se_play("Audio/SE/Cancel.ogg", 100)
  4.       $scene = Scene_Map.new
  5.     elsif Input.trigger?(Input::C)
  6.       item = $data_items[Teleport_item]
  7.       item_número = $game_party.item_number(item)
  8.        if @teleport.teleport != nil and item_número > 0
  9.       $game_player.animation_id = 105
  10.       Audio.se_play("Audio/ME/" + Teleport_sons[0], 100)
  11.       $game_party.lose_item(item, 1)
  12.       @teleport.visible = false
  13.       tone = Tone.new(255,255,255,255)
  14.       $game_screen.start_tone_change(tone, 120)
  15.       $game_screen.start_shake(Teleport_tremor[0],Teleport_tremor[1],120)
  16.       Audio.bgm_fade(1500)
  17.       @p_sair = true
  18.      # Graphics.wait(60)
  19.     else
  20.       Audio.se_play("Audio/SE/Buzzer1.ogg", 100)
  21.       end
  22.   end
  23.  
Expand to see the code.


This is the code section with that changes the tone. I have the main function of the entire script working. of needing an item to teleport and then only teleporting to places you been to. but i can't seem to get the screen tone to fade to black and back. Well i dunno about back it just doesn't fade to know if it goes back.

Update:

ok I figured out that the duration time isn't working in the first

$game_screen.start_tone_change(Tone.new(255,255,255,255),120)

but when i set the duration time to 0 like so

$game_screen.start_tone_change(Tone.new(255,255,255,255),0)

it jumps right to white.
In Scene_Teleport#update add this line after "$game_map.update":

  1.  
  2.     $game_map.update
  3.     $game_screen.update # <== Add this line
  4.     @sair += 1 if @p_sair
  5.  
Expand to see the code.


I haven't tested it but I think it should solve your problem as the script was assuming that the instance of Game_Screen was being updated with "$game_map.update". While RMXP has a $game_screen object, in RMVX that object belongs to Game_Map instead and is accessed by $game_map.screen (and $game_map.update updates the screen).

P.S. Good job getting it to work this far by yourself. Sorry I forgot I was planning to help you sooner.
Thanks rey sorry I just saw your reply I about gave up on this post I just decided to check it. and saw your post and that did the trick thanks.
If anyone is interested here is the XP converted script.

  1.  
  2. #-------------------------------------------------------------------------------
  3. #                        :..: Scene Teleport FFXII
  4. #                              by: Master I
  5. #-------------------------------------------------------------------------------
  6. module Pernalonga
  7. Teleport_data = []
  8. #===============================================================================
  9. # Fonte, Tamanho, ID_Item, Tempo, Animação,  Sons, Efeito do Tremor,
  10. # Largura & Altura, Windowskin
  11. #-------------------------------------------------------------------------------
  12. Teleport_font = ["Arial Narrow", 16]
  13. Teleport_item = 50
  14. Teleport_time = 250
  15. Teleport_animation = 80
  16. Teleport_sons = ["Teleport IN", "Teleport OUT"]
  17. Teleport_tremor = [5,3]
  18. Teleport_LG = [150,150]
  19. Teleport_windowskin = "ffixxpws"
  20. #===============================================================================
  21. #Teleport_data[Order] = [Map ID, Posx, Posy1, Swtich]
  22. #-------------------------------------------------------------------------------
  23. Teleport_data[0] = [10, 7, 13, 151] #Greylea
  24. Teleport_data[1] = [9, 28, 12, 152] #test
  25. Teleport_data[2] = [12, 14, 27, 153] #Ester Woods Town/South
  26. Teleport_data[3] = [7, 13, 19, 154]  #Desert Town
  27. Teleport_data[4] = [8, 15, 18, 155]  #Castle
  28. Teleport_data[5] = [10, 41, 19, 156] #Field
  29. Teleport_data[6] = [1, 18, 41, 157]  #Dugeon
  30. end
  31. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  32. #                            Fim das Configurações
  33. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  34.  
  35. #===============================================================================
  36. # Window Teleport
  37. #-------------------------------------------------------------------------------
  38. class Window_Teleport < Window_Selectable
  39.   include Pernalonga
  40.   def initialize(x, y, width, height)
  41.     super(x, y, width, height)
  42.     @column_max = 1
  43.     self.index = 0
  44.     self.windowskin = RPG::Cache.windowskin(Teleport_windowskin)
  45.     refresh
  46.   end
  47.  
  48.   def teleport
  49.     return @data[index]
  50.   end
  51.  
  52.   def refresh
  53.     @data = []
  54.     for i in 0...Teleport_data.size
  55.       if $game_switches[Teleport_data[i][3]] and not Teleport_data[i][0] == $game_map.map_id
  56.       @data.push(Teleport_data[i])
  57.       end
  58.     end
  59.     @item_max = @data.size
  60.     create_contents
  61.     for i in 0...@item_max
  62.       draw_item(i)
  63.     end
  64.   end
  65.  
  66.   def draw_item(index)
  67.     self.contents.font.name = "Arial Narrow"
  68.     self.contents.font.size = 16
  69.     nome = load_data("Data/MapInfos.rxdata")[@data[index][0]].name
  70.     self.contents.draw_text(0, 24 * index,100, 24, nome)
  71.   end
  72. end
  73.  
  74. #===============================================================================
  75. # Scene Teleport
  76. #-------------------------------------------------------------------------------
  77. class Scene_Teleport < Scene_Base_a
  78.   include Pernalonga
  79.   def start
  80.     super
  81.     @guardar = []
  82.     @mapa = Spriteset_Map.new
  83.     y = $game_player.screen_y - Teleport_LG[0] / 2 if $game_player.screen_y <= 304
  84.     y = $game_player.screen_y / 2 if $game_player.screen_y > 305
  85.     x = $game_player.screen_x + 20 if $game_player.screen_x <= 300
  86.     x = $game_player.screen_x - Teleport_LG[1] / 2 if $game_player.screen_x >= 301
  87. @teleport = Window_Teleport.new(x, y, Teleport_LG[0], Teleport_LG[1])
  88.     @animação = Sprite_Base.new
  89.     @teleport.active = true
  90.     @sair = 0
  91.     @p_sair = false
  92.   end
  93.  
  94.  
  95.   def update
  96.     super
  97.     @teleport.update
  98.     @mapa.update
  99. #    @animação.update
  100.     $game_map.update
  101.     $game_system.update
  102.     $game_map.update
  103.     $game_screen.update
  104.     @sair += 1 if @p_sair
  105.     saida
  106.     udpate_selection
  107.   end
  108.  
  109.   def terminate
  110.     super
  111.     @teleport.dispose
  112.     @mapa.dispose
  113.     @animação.dispose
  114.     @sair = 0
  115.     @p_sair = false
  116.   end
  117.  
  118.   def udpate_selection
  119.     if Input.trigger?(Input::B)
  120.       Audio.se_play("Audio/SE/Cancel.ogg", 100)
  121.       $scene = Scene_Map.new
  122.     elsif Input.trigger?(Input::C)
  123.       item = $data_items[Teleport_item]
  124.       item_número = $game_party.item_number(item)
  125.        if @teleport.teleport != nil and item_número > 0
  126.       $game_player.animation_id = 105
  127.       Audio.se_play("Audio/ME/Teleport OUT", 100)
  128.       $game_party.lose_item(item, 1)
  129.       @teleport.visible = false
  130. #      tone = Tone.new(255,255,255,255)
  131.       $game_screen.start_tone_change(Tone.new(255,255,255,255),120)
  132.       $game_screen.start_shake(Teleport_tremor[0],Teleport_tremor[1],120)
  133. #      Audio.bgm_fade(1500)
  134.       @p_sair = true
  135. #      @write_wait = 120
  136.     else
  137.       Audio.se_play("Audio/SE/Buzzer1.ogg", 100)
  138.       end
  139.   end
  140.  end
  141.  
  142.  def saida
  143.    if @sair == Teleport_time - 80
  144.      $game_map.setup(@teleport.teleport[0])
  145.      $game_map.autoplay
  146.    elsif @sair == Teleport_time
  147.      #@sair = 300
  148.      pode_sair
  149.      @p_sair = false
  150.    end
  151.  end
  152.  
  153.  def pode_sair
  154.    # $game_map.setup(@teleport.teleport[0])
  155.    # $game_map.autoplay
  156.    Audio.se_play("Audio/ME/Teleport IN", 100)
  157.    tone = Tone.new(0,0,0,0)
  158.    $game_screen.start_tone_change(tone, 120)
  159.    $game_screen.start_shake(Teleport_tremor[0],Teleport_tremor[1], 120)
  160.    $game_player.moveto(@teleport.teleport[1],@teleport.teleport[2])
  161. #   Graphics.wait(60)
  162.    $game_player.animation_id = 105
  163.    $scene = Scene_Map.new
  164.  end
  165. end
  166. $pernalonga = {} if $pernalonga == nil
  167. $pernalonga = {"Teleport_FFXII" => true}
  168. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  169. #                             Fim do Script
  170. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  171.      
  172.      
  173.  
  174.    
  175.  
Expand to see the code.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=77217