document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. def box
  2.   # IDs:
  3.   # 001-100    0 weapons
  4.   # 101-200    1 armours
  5.   # 201-1000   2 items
  6.   # 1001-1100  3 money
  7.   # 11 - box ID
  8.   # 4 - contents TYPE
  9.   # 5 - contents ID
  10.   # 6 - contents AMOUNT
  11.   if (1..100).include?($game_variables[11])
  12.     $game_variables[4]=0
  13.     $game_variables[5]=$game_variables[11]
  14.     $game_variables[6]=1
  15.   elsif (101..200).include?($game_variables[11])
  16.     $game_variables[4]=1
  17.     $game_variables[5]=$game_variables[11]-100
  18.     $game_variables[6]=1
  19.   elsif (201..1000).include?($game_variables[11])
  20.     $game_variables[4]=2
  21.     $game_variables[5]=$game_variables[11]-200
  22.     $game_variables[6]=1
  23.   elsif (1001..1100).include?($game_variables[11])
  24.     $game_variables[4]=3
  25.     $game_variables[5]=$game_variables[11]-1000
  26.     $game_variables[6]=1
  27.   end
  28. end
');