SwitchOnMenuCall RE

Activates Switch #1017 when the menu would normally be opened instead after the player has pressed the cancel-button to do so and all security-checks have passed positive. This is made to ensure custom menus can't break any interaction with the map and its events on calltime.

This version called RE is completely redone and improved.

Originally made and first released by KotatsuAkira.

RPG2000
1.00UNKNOWN2000-05-072000-06-192000-07-112000-11-132000-11-152000-12-27
1.07
2001-05-05
1.10
2003-03-27
1.50
2003-06-25
1.51/1.52
2015-07-05
1.60
2015-09-15
1.61
2017-09-14
1.62
RPG2003
1.00UNKNOWN1UNKNOWN21.0.2.1
1.0.2.1
1.0.3.0
1.0.4.0
1.0.5.0
1.0.5.0
1.0.6.0
1.0.6.0
1.0.7.0
1.0.7.0
1.0.8.0
1.0.8.0
1.0.9.1
1.0.9.1
1.101.111.12mp210414

Segment 1/1

Offsets

RPG2000
2000-12-27
1.07
2001-05-05
1.10
2003-03-27
1.50
2003-06-25
1.51/1.52
2015-07-05
1.60
2015-09-15
1.61
2017-09-14
1.62
0048D646h
0008CA46h
0048D5B6h
0008C9B6h
004927A6h
00091BA6h
004928C2h
00091CC2h
00486E06h
00086206h
004877D6h
00086BD6h
004941E6h
000935E6h
RPG2003
1.001.0.3.0
1.0.4.0
1.0.5.0
1.0.5.0
1.0.8.0
1.0.8.0
1.0.9.1
1.0.9.1
1.101.111.12mp210414
004A25A2h
000A19A2h
004A361Ah
000A2A1Ah
004BC8C6h
000BBCC6h
004A9AAAh
000A8EAAh
004BE392h
000BD792h

Sourcecode

		MOV EDX, 1017
		XOR ECX, ECX
		MOV CL, 1
		CALL PROC__00469E84h			; TLcfgSystem.SetSwitch
		MOV EAX, ESI
		CALL PROC__0048C858h			; TLcfgParty.ResetPlayerStepTimer
		JMP __0048D818h
		MOV EDX, 1017
		XOR ECX, ECX
		MOV CL, 1
		CALL PROC__00469D84h			; TLcfgSystem.SetSwitch
		MOV EAX, ESI
		CALL PROC__0048C768h			; TLcfgParty.ResetPlayerStepTimer
		JMP __0048D788h
		MOV EDX, 1017
		XOR ECX, ECX
		MOV CL, 1
		CALL PROC__0046ED78h			; TLcfgSystem.SetSwitch
		MOV EAX, ESI
		CALL PROC__00491958h			; TLcfgParty.ResetPlayerStepTimer
		JMP __00492978h
		MOV EDX, 1017
		XOR ECX, ECX
		MOV CL, 1
		CALL PROC__0046EE94h			; TLcfgSystem.SetSwitch
		MOV EAX, ESI
		CALL PROC__00491A74h			; TLcfgParty.ResetPlayerStepTimer
		JMP __00492A94h
		MOV EDX, 1017
		XOR ECX, ECX
		MOV CL, 1
		CALL PROC__0046EFD8h			; TLcfgSystem.SetSwitch
		MOV EAX, ESI
		CALL PROC__00485FB8h			; TLcfgParty.ResetPlayerStepTimer
		JMP __00486FD8h
		MOV EDX, 1017
		XOR ECX, ECX
		MOV CL, 1
		CALL PROC__0046F5B8h			; TLcfgSystem.SetSwitch
		MOV EAX, ESI
		CALL PROC__00486988h			; TLcfgParty.ResetPlayerStepTimer
		JMP __004879A8h
		MOV EDX, 1017
		XOR ECX, ECX
		MOV CL, 1
		CALL PROC__0046F770h			; TLcfgSystem.SetSwitch
		MOV EAX, ESI
		CALL PROC__00493398h			; TLcfgParty.ResetPlayerStepTimer
		JMP __004943B8h
		MOV EDX, 1017
		XOR ECX, ECX
		MOV CL, 1
		CALL PROC__00485ECCh			; TLcfgSystem.SetSwitch
		MOV EAX, ESI
		CALL PROC__004A1634h			; TLcfgParty.ResetPlayerStepTimer
		JMP __004A2774h
		MOV EDX, 1017
		XOR ECX, ECX
		MOV CL, 1
		CALL PROC__00486308h			; TLcfgSystem.SetSwitch
		MOV EAX, ESI
		CALL PROC__004A26ACh			; TLcfgParty.ResetPlayerStepTimer
		JMP __004A37ECh
		MOV EDX, 1017
		XOR ECX, ECX
		MOV CL, 1
		CALL PROC__0048B16Ch			; TLcfgSystem.SetSwitch
		MOV EAX, ESI
		CALL PROC__004BB8FCh			; TLcfgParty.ResetPlayerStepTimer
		JMP __004BCA98h
		MOV EDX, 1017
		XOR ECX, ECX
		MOV CL, 1
		CALL PROC__0048B33Ch			; TLcfgSystem.SetSwitch
		MOV EAX, ESI
		CALL PROC__004A8ADCh			; TLcfgParty.ResetPlayerStepTimer
		JMP __004A9C7Ch
		MOV EDX, 1017
		XOR ECX, ECX
		MOV CL, 1
		CALL PROC__0048B2F8h			; TLcfgSystem.SetSwitch
		MOV EAX, ESI
		CALL PROC__004BD3C4h			; TLcfgParty.ResetPlayerStepTimer
		JMP __004BE564h

Bytes

BAF9030000 31C9 B101 E830C8FDFF
89F0 E8FDF1FFFF
E9B8010000
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
BAF9030000 31C9 B101 E8C0C7FDFF
89F0 E89DF1FFFF
E9B8010000
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
BAF9030000 31C9 B101 E8C4C5FDFF
89F0 E89DF1FFFF
E9B8010000
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
BAF9030000 31C9 B101 E8C481FEFF
89F0 E89DF1FFFF
E9B8010000
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
BAF9030000 31C9 B101 E8C481FEFF
89F0 E89DF1FFFF
E9B8010000
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
BAF9030000 31C9 B101 E8D47DFEFF
89F0 E89DF1FFFF
E9B8010000
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
BAF9030000 31C9 B101 E87CB5FDFF
89F0 E89DF1FFFF
E9B8010000
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
BAF9030000 31C9 B101 E81C39FEFF
89F0 E87DF0FFFF
E9B8010000
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
BAF9030000 31C9 B101 E8E02CFEFF
89F0 E87DF0FFFF
E9B8010000
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
BAF9030000 31C9 B101 E898E8FCFF
89F0 E821F0FFFF
E9B8010000
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
BAF9030000 31C9 B101 E88418FEFF
89F0 E81DF0FFFF
E9B8010000
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
BAF9030000 31C9 B101 E858CFFCFF
89F0 E81DF0FFFF
E9B8010000
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90