Thread: [Essentials script] Password Gift
View Single Post
  #9    
Old March 4th, 2012, 09:15 AM
Ho-oh 112's Avatar
Ho-oh 112
Advance Scripter
 
Join Date: Feb 2011
Age: 18
Gender: Male
Nature: Hasty
Quote:
Originally Posted by help-14 View Post
Oh i don't know that method, silly me :
It's simple:
For compiler:
Code:
packcode = "*^%VVVC0283204cccCCv" # something random like that
pokemon = 493
level = 100
switch = [5, true]
ary=[pokemon,level,switch]
ary.pack(packcode)
for decompiler

Code:
packcode = "*^%VVVC0283204cccCCv" # something random like that
ary=code.unpack(packcode)
pbAddPokemon(ary[0], ary[1])
$game_switches[ary[2]] = ary[3]
 
rescue
Kernel.pbMessage(_INTL("Your gift file is corrupted..."))
now you just need the input code method for it...
__________________
Scripting Level: Advance

RMXP Poke-Essentials MySQL Trading System Link:
http://www.pokecommunity.com/showthr...62#post7077162

RMXP Poke-Essentials Mystery Gift Link:
http://www.pokecommunity.com/showthread.php?t=270687

RMXP Poke-Essentials Award System Link:
http://www.pokecommunity.com/showthread.php?p=7111566
Reply With Quote