Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. //---------------------------------------------------------------------------
  2. #define AutoAggroAddy 0x00964B9C //39 9e ? ? ? ? 74 63 8d 8e ? ? ? ? e8
  3. unsigned long ulAutoAggroRet = 0x00964C07; //follow JE
  4.  
  5. void __declspec(naked) _stdcall AutoAggro()
  6. {
  7. __asm
  8. {
  9. mov edx,[CharAddy] //Char pID
  10. mov edx,[edx+0x00001230] //Char pID Offset
  11. mov edx,[edx+0x08]
  12. mov [esi+0x00000250],edx //Auto Aggro Offset
  13. jmp dword ptr [ulAutoAggroRet]
  14. }
  15. }
  16. void __fastcall TForm1::CheckBox9Click(TObject *Sender)
  17. {
  18. if (CheckBox9->Checked)
  19. {
  20. Jump(AutoAggroAddy, AutoAggro, 1);
  21. }
  22. else
  23. {
  24. memcpy((void*)AutoAggroAddy, "\x39\x9e\xb4\x02\x00\x00", 6);
  25. }
  26. }
  27. //---------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement