AntiLagSwitch

While Switch #1000 is ON, event-pages-checks on the current map will not be called after receiving key-inputs or operating with switches, variables, items, party-actors or timers.

Originally made and first released by bugmenot.

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/2

Offsets

RPG2000
2000-12-27
1.07
00486060h
00085460h
RPG2003
1.0.8.0
1.0.8.0
004ACA40h
000ABE40h

Sourcecode

PROC__00486060h:
			PUSH EBX
			PUSH ESI
			PUSH EDI
			MOV EDI, ECX
			XOR EDX, EDX
			MOV EAX, EDI
			CALL PROC__0045E524h
			CMP EAX, 2
			JNZ __0048608Fh
			XOR EDX, EDX
			INC EDX
			MOV EAX, EDI
			CALL PROC__0045E524h
			MOV EDX, EAX
			MOV EAX, [0049ABA4h]
			MOV EAX, [EAX]
			CALL PROC__00469EE0h
			MOV EBX, EAX
			JMP __0048609Bh
__0048608Fh:
			XOR EDX, EDX
			INC EDX
			MOV EAX, EDI
			CALL PROC__0045E524h
			MOV EBX, EAX
__0048609Bh:
			XOR EDX, EDX
			MOV EAX, EDI
			CALL PROC__0045E524h
			DEC EAX
			JNZ __004860B4h
			XOR EDX, EDX
			INC EDX
			INC EDX
			MOV EAX, EDI
			CALL PROC__0045E524h
			JMP __004860B6h
__004860B4h:
			MOV EAX, EBX
__004860B6h:
			MOV ESI, EBX
			MOV EBX, EAX
			SUB EBX, ESI
			JGE __04860C2h
			MOV ESI, EAX
			NEG EBX
__004860C2h:
			INC EBX
__004860C3h:
			MOV EDX, 3
			MOV EAX, EDI
			CALL PROC__0045E524h
			SUB EAX, 1
			JC __004860D8h
			JZ __004860EAh
			JMP __004860FDh
__004860D8h:
			MOV CL, 1
__004860DAh:
			MOV EAX, [0049ABA4h]
			MOV EAX, [EAX]
			MOV EDX, ESI
			CALL PROC__00469E84h
			JMP __00486109h
__004860EAh:
			XOR ECX, ECX
			JMP __004860DAh
PROC__004860EEh:
			MOV EAX, [0049ABA4h]
			MOV EAX, [EAX]
			MOV EDX, ESI
			CALL PROC__00469E6Ch
			RET
PROC__004860FDh:
			CALL PROC__004860EEh
			MOV ECX, EAX
			XOR CL, 1
			JMP __004860DAh
__00486109h:
			INC ESI
			DEC EBX
			JNZ __004860C3h
			MOV ESI, 1000
			CALL PROC__0048611Bh
			POP EDI
			POP ESI
			POP EBX
			RET
PROC__0048611Bh:
			CALL PROC__004860EEh
			TEST AL, AL
			JNZ __00486133h
			MOV EAX, [0049AC98h]
			MOV EAX, [EAX]
			MOV EAX, [EAX+18h]
			CALL PROC__0048C648h
__00486133h:
			RET
			4 NOPs
PROC__004ACA40h:
			PUSH EBX
			PUSH ESI
			PUSH EDI
			MOV EDI, ECX
			XOR EDX, EDX
			MOV EAX, EDI
			CALL PROC__0047967Ch
			CMP EAX, 2
			JNZ __004ACA6Fh
			XOR EDX, EDX
			INC EDX
			MOV EAX, EDI
			CALL PROC__0047967Ch
			MOV EDX, EAX
			MOV EAX, [004CDC7Ch]
			MOV EAX, [EAX]
			CALL PROC__0048B398h
			MOV EBX, EAX
			JMP __004ACA7Bh
__004ACA6Fh:
			XOR EDX, EDX
			INC EDX
			MOV EAX, EDI
			CALL PROC__0047967Ch
			MOV EBX, EAX
__004ACA7Bh:
			XOR EDX, EDX
			MOV EAX, EDI
			CALL PROC__0047967Ch
			DEC EAX
			JNZ __004ACA94h
			XOR EDX, EDX
			INC EDX
			INC EDX
			MOV EAX, EDI
			CALL PROC__0047967Ch
			JMP __004ACA96h
__004ACA94h:
			MOV EAX, EBX
__004ACA96h:
			MOV ESI, EBX
			MOV EBX, EAX
			SUB EBX, ESI
			JGE __04ACAA2h
			MOV ESI, EAX
			NEG EBX
__004ACAA2h:
			INC EBX
__004ACAA3h:
			MOV EDX, 3
			MOV EAX, EDI
			CALL PROC__0047967Ch
			SUB EAX, 1
			JC __004ACAB8h
			JZ __004ACACAh
			JMP __004ACADDh
__004ACAB8h:
			MOV CL, 1
__004ACABAh:
			MOV EAX, [004CDC7Ch]
			MOV EAX, [EAX]
			MOV EDX, ESI
			CALL PROC__0048B33Ch
			JMP __004ACAE9h
__004ACACAh:
			XOR ECX, ECX
			JMP __004ACABAh
PROC__004ACACEh:
			MOV EAX, [004CDC7Ch]
			MOV EAX, [EAX]
			MOV EDX, ESI
			CALL PROC__0048B324h
			RET
PROC__004ACADDh:
			CALL PROC__004ACACEh
			MOV ECX, EAX
			XOR CL, 1
			JMP __004ACABAh
__004ACAE9h:
			INC ESI
			DEC EBX
			JNZ __004ACAA3h
			MOV ESI, 1000
			CALL PROC__004ACAFBh
			POP EDI
			POP ESI
			POP EBX
			RET
PROC__004ACAFBh:
			CALL PROC__004ACACEh
			TEST AL, AL
			JNZ __004ACB13h
			MOV EAX, [004CDD74h]
			MOV EAX, [EAX]
			MOV EAX, [EAX+18h]
			CALL PROC__004AB8B4h
__004ACB13h:
			RET
			4 NOPs

Bytes

53 56 57 8BF9 8BC7 E8B684FDFF
83F802 751C
31D2 42 8BC7 E8A784FDFF
8BD0 A1A4AB4900 8B00 E8553EFEFF
8BD8 EB0C
31D2 42 8BC7 E88B84FDFF
8BD8 33D2 8BC7 E88084FDFF
48 750D
31D2 42 42 8BC7 E87284FDFF
EB02
8BC3 8BF3 8BD8 2BDE 7D04
89C6 F7DB 43 BA03000000 8BC7 E85584FDFF
83E801 7204
7414
EB25
B101 A1A4AB4900 8B00 8BD6 E89C3DFEFF
EB1F
33C9 EBEC
A1A4AB4900 8B00 8BD6 E8703DFEFF
C3

E8ECFFFFFF
8BC8 80F101 EBD1
46 4B 75B6
BEE8030000 E804000000
5F 5E 5B C3

E8CEFFFFFF
84C0 750F
A198AC4900 8B00 8B4018 E815650000
C3 90 90 90 90
53 56 57 8BF9 8BC7 E82ECCFCFF
83F802 751C
31D2 42 8BC7 E81FCCFCFF
8BD0 A17CDC4C00 8B00 E82DE9FDFF
8BD8 EB0C
31D2 42 8BC7 E803CCFCFF
8BD8 33D2 8BC7 E8F8CBFCFF
48 750D
31D2 42 42 8BC7 E8EACBFCFF
EB02
8BC3 8BF3 8BD8 2BDE 7D04
89C6 F7DB 43 BA03000000 8BC7 E8CDCBFCFF
83E801 7204
7414
EB25
B101 A17CDC4C00 8B00 8BD6 E874E8FDFF
EB1F
33C9 EBEC
A17CDC4C00 8B00 8BD6 E848E8FDFF
C3

E8ECFFFFFF
8BC8 80F101 EBD1
46 4B 75B6
BEE8030000 E804000000
5F 5E 5B C3

E8CEFFFFFF
84C0 750F
A174DD4C00 8B00 8B4018 E8A1EDFFFF
C3 90 90 90 90

Segment 2/2

Offsets

RPG2000
2000-12-27
1.07
004869DBh
00085DDBh
RPG2003
1.0.8.0
1.0.8.0
004AD3CEh
000AC7CEh

Sourcecode

			MOV ESI, 1000
			5 NOPs
			CALL PROC__0048611Bh
			MOV ESI, 1000
			5 NOPs
			CALL PROC__004ACAFBh

Bytes

BEE8030000 90 90 90 90 90 E831F7FFFF
BEE8030000 90 90 90 90 90 E81EF7FFFF