InfoDisloc

Makes it way easier to reposition the item- and skill-related windows in the engine's default battle system on the Y-axis. Just replace the positioning-parameters in the sourcecode or use a QuickPatch in DynRPG in case of 2003-1.08.

Originally made and first released by bugmenot.

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

Offsets

RPG2003
1.0.8.0
1.0.8.0
1.0.9.1
1.0.9.1
004C8857h
000C7C57h
004C7B8Bh
000C6F8Bh

Sourcecode

			MOV EAX, [004CDC7Ch]
			MOV EAX, [EAX]
			CMP BYTE PTR [EAX+04h], 2
			JE __004C8868h
			XOR ECX, ECX
			JMP __004C886Dh
__004C8868h:
			MOV ECX, 0
__004C886Dh:
			XOR EDX, EDX
			MOV EAX, [EBX+7Ch]
			CALL PROC__004C63DCh
			MOV EAX, [004CDC7Ch]
			MOV EAX, [EAX]
			CMP BYTE PTR [EAX+04h], 1
			JNE __004C88B3h
			PUSH 320
			PUSH 208
			PUSH 0
			MOV ECX, 32
			XOR EDX, EDX
			MOV EAX, EBX
			CALL PROC__004C63DCh
			MOV EAX, [004CDB74h]
			MOV EAX, [EAX]
			MOV EAX, [EAX+0Ch]
			MOV [EBX+40h], EAX
			MOV [EBX+80h], EAX
			JMP __004C890Eh
__004C88B3h:
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
__004C88BFh:
			PUSH 320				; Inventory: Width
			PUSH 80					; Inventory: Height
			PUSH 0
			MOV ECX, 64				; Inventory: Y
			XOR EDX, EDX				; Inventory: X = 0
			MOV EAX, [004CDC7Ch]
			MOV EAX, [EAX]
			CMP BYTE PTR [EAX+04h], 2
			JE __004C7B9Ch
			XOR ECX, ECX
			JMP __004C7BA1h
__004C7B9Ch:
			MOV ECX, 0
__004C7BA1h:
			XOR EDX, EDX
			MOV EAX, [EBX+7Ch]
			CALL PROC__004C5708h
			MOV EAX, [004CDC7Ch]
			MOV EAX, [EAX]
			CMP BYTE PTR [EAX+04h], 1
			JNE __004C7BE7h
			PUSH 320
			PUSH 208
			PUSH 0
			MOV ECX, 32
			XOR EDX, EDX
			MOV EAX, EBX
			CALL PROC__004C5708h
			MOV EAX, [004CDB74h]
			MOV EAX, [EAX]
			MOV EAX, [EAX+0Ch]
			MOV [EBX+40h], EAX
			MOV [EBX+80h], EAX
			JMP __004C7C42h
__004C7BE7h:
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
__004C7BF3h:
			PUSH 320				; Inventory: Width
			PUSH 80					; Inventory: Height
			PUSH 0
			MOV ECX, 64				; Inventory: Y
			XOR EDX, EDX				; Inventory: X = 0

Bytes

A17CDC4C00 8B00 80780402 7404
33C9 EB05
B900000000 33D2 8B437C E865DBFFFF
A17CDC4C00 8B00 80780401 752F
6840010000 68D0000000 6A00 B920000000 33D2 8BC3 E83EDBFFFF
A174DB4C00 8B00 8B400C 894340 898380000000 EB5B
90 90 90 90 90 90 90 90 90 90 90 90 6840010000 6850000000 6A00 B940000000 33D2
A17CDC4C00 8B00 80780402 7404
33C9 EB05
B900000000 33D2 8B437C E85DDBFFFF
A17CDC4C00 8B00 80780401 752F
6840010000 68D0000000 6A00 B920000000 33D2 8BC3 E836DBFFFF
A174DB4C00 8B00 8B400C 894340 898380000000 EB5B
90 90 90 90 90 90 90 90 90 90 90 90 6840010000 6850000000 6A00 B940000000 33D2

Segment 2/4

Offsets

RPG2003
1.0.8.0
1.0.8.0
1.0.9.1
1.0.9.1
004C8C98h
000C8098h
004C7FCCh
000C73CCh

Sourcecode

			XOR EDX, EDX
			CALL PROC__004C9005h
			XOR EDX, EDX
			CALL PROC__004C8339h

Bytes

33D2 E866030000
33D2 E866030000

Segment 3/4

Offsets

RPG2003
1.0.8.0
1.0.8.0
1.0.9.1
1.0.9.1
004C8DACh
000C81ACh
004C80E0h
000C74E0h

Sourcecode

			JNZ __004C901Eh
			JNZ __004C8352h

Bytes

0F856D020000
0F856D020000

Segment 4/4

Offsets

RPG2003
1.0.8.0
1.0.8.0
1.0.9.1
1.0.9.1
004C9005h
000C8405h
004C8339h
000C7739h

Sourcecode

PROC__004C9005h:
			MOV EAX, [004CDC7Ch]
			MOV EAX, [EAX]
			CMP BYTE PTR [EAX+04h], 2
			JE __004C9016h
			XOR ECX, ECX
			JMP __004C901Bh
__004C9016h:
			MOV ECX, 0
__004C901Bh:
			MOV EAX, [ESI+7Ch]
__004C901Eh:
			RET
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
__004C9025h:
			PUSH 320				; Skills: Width
			PUSH 80					; Skills: Height
			PUSH 0
			MOV ECX, 64				; Skills: Y
			XOR EDX, EDX				; Skills: X = 0
PROC__004C8339h:
			MOV EAX, [004CDC7Ch]
			MOV EAX, [EAX]
			CMP BYTE PTR [EAX+04h], 2
			JE __004C834Ah
			XOR ECX, ECX
			JMP __004C834Fh
__004C834Ah:
			MOV ECX, 0
__004C834Fh:
			MOV EAX, [ESI+7Ch]
__004C8352h:
			RET
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
__004C8359h:
			PUSH 320				; Skills: Width
			PUSH 80					; Skills: Height
			PUSH 0
			MOV ECX, 64				; Skills: Y
			XOR EDX, EDX				; Skills: X = 0

Bytes

A17CDC4C00 8B00 80780402 7404
33C9 EB05
B900000000 8B467C C3
90 90 90 90 90 90 6840010000 6850000000 6A00 B940000000 33D2
A17CDC4C00 8B00 80780402 7404
33C9 EB05
B900000000 8B467C C3
90 90 90 90 90 90 6840010000 6850000000 6A00 B940000000 33D2