ok....
these are the first two scripts:
#dynamic 0x800000
#org @start
givepokemon 0x196 0x32 0x0 0x0 0x0 0x0
msgbox @confirm 0x6
fanfare 0x10C
setflag 0x828
hidesprite 0x01
setflag 0x28
end
#org @confirm
= You got Rayquaza...somehow.
#dynamic 0x800000
#org @start
setvar 0x8004 0x1
setvar 0x8005 0x5
special 0x64
msgbox @ohnoes 0x6
hidesprite 0x2
setflag 0x30
end
#org @ohnoes
= Oh no! Rayquaza was frozen! No\nclue how though...
and the script to heal it:
#dynamic 0x800000
#org @start
callasm 0x071D831
msgbox @yay 0x6
hidesprite 0x3
setflag 0x29
end
#org @yay
= Looks like Rayquaza was unfrozen.
here's the routine:
.align 2
.thumb
main:
push {r0, r1}
ldr r0, status_byte
sub r1, r1, r0
pop {r0-r1}
.align 2
status_byte:
.word 0x020242D4