2k3DirectItemEquipMenu

When opening the default menu, the inventory gets opened if variable #3386 has a value of 0. When it's above, the equipment-screen will open instead and the variable will point to the database-ID of the actor to use as target.

This is built in a very odd way, does confusing changes, stuffs out-of-section code and should not be used, proceed with Direct Menu Patch instead.

Originally made and first released by elvissteinjr.

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

Offsets

RPG2003
1.0.8.0
1.0.8.0
004A0FFEh
000A03FEh

Sourcecode

			JMP __004C9D2Ah
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP

Bytes

E9278D0200
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90

Segment 2/5

Offsets

RPG2003
1.0.8.0
1.0.8.0
004A102Eh
000A042Eh

Sourcecode

			db 187
			db 18
			db 0
			db 0

Bytes

BB 12 00 00

Segment 3/5

Offsets

RPG2003
1.0.8.0
1.0.8.0
004A1034h
000A0434h

Sourcecode

			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP

Bytes

90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90

Segment 4/5

Offsets

RPG2003
1.0.8.0
1.0.8.0
004A10E5h
000A04E5h

Sourcecode

			MOV EAX, EBX
			CALL PROC__04A1054h
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP
			NOP

Bytes

89D8 E868FFFFFF
90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
90 90 90 90 90 90 90 90 90 90 90

Segment 5/5

Offsets

RPG2003
1.0.8.0
1.0.8.0
004C9D2Ah
000C912Ah

Sourcecode

__004C9D2Ah:
			PUSH EDX
			PUSH EDI
			PUSH ESI
			PUSH EAX
			PUSH EBX
			MOV EAX, [004CDC7Ch]
			MOV EAX, [EAX]
			MOV EBX, [EAX+24h]
			CMP EBX, 3386
			JB __004C9D56h
			MOV EAX, [EAX+28h]
			MOV ESI, [EAX+34E4h]
			CMP ESI, 1
			JE __004C9D56h
			CMP ESI, 2
			JE __004C9D72h
			NOP
			NOP
__004C9D56h:
			POP EBX
			POP EAX
			POP ESI
			POP EDI
			POP EDX
__004C9D5Bh:
			MOV EAX, EBX
			CALL PROC__004A0CECh
			MOV EAX, [004CDFCCh]
			MOV EAX, [EAX]
			CMP BYTE PTR [EAX+51h], 0
			JMP __004A111Dh
__004C9D72h:
			POP EBX
			POP EAX
			POP ESI
			POP EDI
			POP EDX
			MOV EAX, EBX
			CALL PROC__004A0CECh
			MOV EAX, [004CDFCCh]
			MOV EAX, [EAX]
			CMP BYTE PTR [EAX+51h], 0
			JMP __04A22EDh

Bytes

52 57 56 50 53 A17CDC4C00 8B00 8B5824 81FB3A0D0000 7215
8B4028 8BB0E4340000 83FE01 7407
83FE02 741E
90 90 5B 58 5E 5F 5A 89D8 E88A6FFDFF
A1CCDF4C00 8B00 80785100 E9AB73FDFF
5B 58 5E 5F 5A 89D8 E86E6FFDFF
A1CCDF4C00 8B00 80785100 E95F85FDFF