Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void __declspec(naked) _stdcall AutoHPASM()
- {
- __asm
- {
- push eax
- LoopStart:
- mov eax,[0x00e16da4] // StatBase // 8B 0D ? ? ? ? 52 6A 12 56
- mov eax,[eax]
- add eax,[0x1858] //HP Offset // 89 86 ? ? ? ? 89 86 ? ? ? ? FF 15 ? ? ? ? 8D
- mov eax,[eax]
- cmp eax,0x0 //compare '0' to setted value - (aka HPLimit), 0 = if char is dead
- je DoSleep //do nothing
- //this code will be activated if char is alive, because we didnt jumped to 'DontUseHPPot'
- cmp eax,[HPLimit] //compare red value to setted value (aka HPLimit)
- jle DoAutoHP //jump if less or equal
- jmp DoSleep
- DoAutoHP:
- call ClickHPButton
- push 200
- call Sleep
- DoSleep:
- jmp LoopStart
- push 200
- call Sleep
- End: // infinite loop atm, won't get here
- pop eax
- }
- }
- void __declspec(naked) _stdcall AutoMPASM()
- {
- __asm
- {
- push eax
- LoopStart:
- mov eax,[0x00e16da4] // StatBase // 8B 0D ? ? ? ? 52 6A 12 56
- mov eax,[eax]
- add eax,[0x1858 + 4] //MP Offset = HP Offset + 4 // **or if u really want** // 89 86 ? ? ? ? FF 15 ? ? ? ? 8D 8E ? ? ? ? 89
- mov eax,[eax]
- cmp eax,[MPLimit] //compare red value to setted value (aka MPLimit)
- jle DoAutoMP
- jmp DoSleep
- DoAutoMP:
- call ClickMPButton
- push 200
- call Sleep
- DoSleep:
- jmp LoopStart
- push 200
- call Sleep
- End: // infinite loop atm, won't get here
- pop eax
- }
- }
Add Comment
Please, Sign In to add comment