Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //---------------------------------------------------------------------------
- #define AutoAggroAddy 0x00964B9C //39 9e ? ? ? ? 74 63 8d 8e ? ? ? ? e8
- unsigned long ulAutoAggroRet = 0x00964C07; //follow JE
- void __declspec(naked) _stdcall AutoAggro()
- {
- __asm
- {
- mov edx,[CharAddy] //Char pID
- mov edx,[edx+0x00001230] //Char pID Offset
- mov edx,[edx+0x08]
- mov [esi+0x00000250],edx //Auto Aggro Offset
- jmp dword ptr [ulAutoAggroRet]
- }
- }
- void __fastcall TForm1::CheckBox9Click(TObject *Sender)
- {
- if (CheckBox9->Checked)
- {
- Jump(AutoAggroAddy, AutoAggro, 1);
- }
- else
- {
- memcpy((void*)AutoAggroAddy, "\x39\x9e\xb4\x02\x00\x00", 6);
- }
- }
- //---------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement