Jump to content
Moopler
  • 1
Sign in to follow this  
Roast

Question Does Semi Item Vac still work?

Question

Going off of the script from the script database from v192.2:

[ENABLE]
alloc(CMob__GetPos_Hook,128)

CMob__GetPos_Hook:
mov eax,[02D82708] // CUserLocal: 8B 3D ? ? ? ? 8B CF F3
lea ecx,[eax+04]
mov eax,[ecx]
jmp [eax+14]

01421180: // CMob::GetPos
jmp CMob__GetPos_Hook

[DISABLE]
01421180: // 55 8B ? 56 57 8D ? ? ? ? ? 8D [13th Result]
push ebp
mov ebp,esp
push esi
push edi

dealloc(CMob__GetPos_Hook)

I understand what's going on here, the script changes the CMob::GetPos function to always return the player's coordinates and so the items spawn at the player's feet. I'm not 100% sure on how it works written like this though.

  • Move the pointer to CUserLocal in to the EAX register(?)
  • Load value from address(?) at CUserLocal + 4 in to the ECX register? What value is this?
  • Overwrite the value in EAX register, so that ECX and EAX contain the same thing at this point?
  • I don't know what's at EAX + 14, am I just missing knowledge about the CUserLocal structure?

Main question: I can't seem to find the function CMob::GetPos. Obviously the AoB is there, but there are 25 results, all of which just crash me or do nothing. Has Semi Item Vac been patched, or am I missing something? AoB changed? This script isn't from that long ago. I can't seem to find any other public scripts that make use of CMob::GetPos, at least none that have it commented as such.

Thanks in advance for any help!

 

Edited by Roast

Share this post


Link to post

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×