Jump to content

Arbitrary code execution: Difference between revisions

>Torchickens
>Torchickens
Line 452:
===Via "TRAINER 4" (hex:FC)===
 
This method will make [[TrainerDex/RB:052|"TRAINER 4"]] (hex:FC) (encountered via the [[Trainer escape glitch]]) to run code based on the data of the Pokémon in the current PC box.
 
Requirements :
Line 460:
 
# One must perform the Trainer escape glitch using a Special stat of 252 (hex:FC)
# Aside from the [[ZZAZZ glitch|ZZAZZ effects]], upon selecting an attack, code based on the data of the Pokémon that was last deposited into the Daycare (specifically at $FA58) will be run. If no Pokémon was ever deposited, the script will "fall" to boxed Pokémon data.
 
The code at D040 may also to be adjusted, as not to freeze the game, asdue allto Trainer classesAI actuallyscripts havehaving twoat AIleast pointers,two and(ignoring "TRAINER 4" (hex:FCduplicates) also uses D040 as an AIseparate pointerroutines.
 
{{Youtube|5x9G5BWanWw|TheZZAZZGlitch}}
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.