Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- 8B 0D [maximum] ; mov ecx, maximum
- F7 F9 ; idiv ecx
- 03 0D [minimum] ; add ecx, minimum
- */
- func void InjectDialog() {
- const int oCNpc__StartDialogAniX = 7700155; // 0x00757EBB
- var int address; address = MEM_Alloc(11);
- var int relAdr; relAdr = address-oCNpc__StartDialogAniX-5;
- MEM_WriteInt(oCNpc__StartDialogAniX + 0, 233);
- MEM_WriteInt(oCNpc__StartDialogAniX + 1, relAdr);
- MEM_WriteByte(address+0, 139);
- MEM_WriteByte(address+1, 13); MEM_WriteInt(address+2, MEM_GetIntAddress(maximum));
- MEM_WriteByte(address+6, 247);
- MEM_WriteByte(address+7, 249);
- MEM_WriteByte(address+8, 003);
- MEM_WriteByte(address+9, 013); MEM_WriteInt(address+10, MEM_GetIntAddress(minimum));
- MEM_Writebyte(address+14, 233);
- MEM_WriteInt (address+15, 7700162);
- };
Add Comment
Please, Sign In to add comment