#dyn 0x740000
#org @start
special 0x187
compare LASTRESULT 2
if == jump 0x81A7AE0
special 0x188
lock
faceplayer
checksound
cry CELEBI 2
waitcry
pause 0x14
playsound 0x156 0x0
battle CELEBI 40 NONE
setflag 0x807
special 0x138
waitspecial
clearflag 0x807
special2 0x800D 0xB4
compare LASTRESULT 1
if == jump 0x8162558
compare LASTRESULT 4
if == jump 0x8162561
compare LASTRESULT 5
if == jump 0x8162561
setflag 0x990
release
end
ok the battles with a lv. 40 celebi, set the person id of the sprite to 807 or an unused flag