Send wrote: ↑Mon Mar 25, 2024 8:50 am
...
I dunno what you're trying to do, but it's been several posts now
Each
Entity (Humanoid) has a
Destructibility member at
0xD0 offset. In that member, you will find Health at
0x74 offset. With the table I provided on main page, you can use
LocalPlayer as a symbol and read Entity from 0x48 like so:
mov rax,LocalPlayer
mov rax,[rax] // up until here we read LocalPlayer from the symbol
mov rax,[rax+48] // rax becomes LocalPlayer->Entity -- this is us
Then you get to Destructibility by reading 0xD0:
mov r64,[rax+D0] // r64 becomes Entity->Destructibility
So what you want to do at the hook location you're fiddling with is:
- first of all check which pointer is it you're looking at on the hook spot (you can get the RTTI name via [Debug] > GetName in my table; click the script, give it the ptr address and it will print the Name in the Lua Engine console)
- get to and check if Destructibility member belongs to us or the enemy: cmp rcx or cmp [rcx+D0] with r64 from above
- if it belongs to us, then do stuff
- if it doesn't belong to us, then do stuff
I don't just provide scripts in my tables, but also utilities/tools that faster support development. The only caveat is you have to use my table.. or at least form your own logic to get to LocalPlayer, etc.
BR,
Sun
EDIT: Oh, ffs, it's a board game??!?! Come on, guys, not again. Brings back memories of Orlog from AC T_T.. I thought it was some arena fight game, hence the entire explanation above. I'll have a look, just got access to it (had to do the cook mission first).