shithub: pokecrystal

Download patch

ref: f66f4d51c78274e7aec80cf303a70fb97bdc8e3a
parent: d9c5c2c55ba1ae2a1697e90a58a52050317e6e6d
author: yenatch <yenatch@gmail.com>
date: Sat Apr 12 11:45:40 EDT 2014

Replace static bank 0 calls in the event scripting engine.

--- a/engine/scripting.asm
+++ b/engine/scripting.asm
@@ -519,7 +519,7 @@
 ; script command 0x59
 
 	ld a, [ScriptBank]
-	ld hl, $1d81
+	ld hl, Function1d81
 	rst FarCall
 	ld a, [$cfa9]
 	jr nc, .asm_96f3d ; 0x96f3a $1
@@ -533,7 +533,7 @@
 ; script command 0x58
 
 	ld a, [ScriptBank]
-	ld hl, $202a
+	ld hl, Function202a
 	rst FarCall
 	ld a, [$cf88]
 	jr nc, .asm_96f4e ; 0x96f4b $1
@@ -2284,7 +2284,7 @@
 	call GetScriptByte
 	ld d, a
 	ld a, [ScriptBank]
-	ld hl, $30d6
+	ld hl, CopyName1
 	rst FarCall
 	ld de, StringBuffer2
 	jp Unknown_976c0
--