Jump to content
Moopler
  • 0
Sign in to follow this  
idoarama

Question Adding people check to the pet item Vac

Question

hey guys, is there a way to add people check to the item vac?

for exemple, I got this script by Sprux
 

/*
Pet Item Teleport
Creator Sprux
Self-updating
*/
[enable]
label(pet_teleport_restore)
registersymbol(pet_teleport_restore)

alloc(pet_teleport_hook,128)
label(pet_teleport_return)

label(return_normal)

aobscan(pet_teleport_aob,8B 50 04 8B 00 ? ? 8D 4D)
aobscan(vecctrl_set_position_aob,8B ? 24 ? 8B 41 ? 8B 40 ? 56 8D 71 ? 8B 4C 24 10)

alloc(delay,4)
delay:
dw 0

pet_teleport_aob:
pet_teleport_restore:
jmp pet_teleport_hook
pet_teleport_return:

pet_teleport_hook:
inc [delay]
cmp dword ptr [delay], #20
jne return_normal
mov [delay], 0

push esi
mov esi,eax
mov edx,[eax+04]
mov eax,[eax]
pushad

lea ecx,[edi+4]
mov ebx,[edi+4]
mov ebx,[ebx+20]
call ebx

push [esi+04]
push [esi]
push 00
mov ecx,eax
call vecctrl_set_position_aob

popad
pop esi
jmp pet_teleport_return

return_normal:
mov edx,[eax+04]
mov eax,[eax]
jmp pet_teleport_return

[disable]
pet_teleport_restore:
mov edx,[eax+04]
mov eax,[eax]

unregistersymbol(pet_teleport_restore)
dealloc(delay)
dealloc(pet_teleport_hook)

 

and I got this script by Taku
 

define(TSingleton__CUserPool,01AA2D10)
define(people_limit,#1)

[enable]
alloc(hook,128)
alloc(key_press,128)

label(return)
label(exit)

key_press:
mov esi,[01AA2E2C] // 8B 15 ? ? ? ? 85 D2 74 23
mov ecx,[esi+A4]
push eax
push 00
call 013DAB90 // A1 ?? ?? ?? ?? 85 ?? 74 ?? 8D ?? ?? 8B ?? 8B ?? FF
ret

hook:
sub esp,0C
push ebx
push esi

push ebx
push eax

mov ebx,[TSingleton__CUserPool]
mov ebx,[ebx+18]
mov eax,people_limit
cmp ebx,eax
jge exit

mov eax,002C0000
call key_press

exit:
pop eax
pop ebx
jmp return

013DCB20:
jmp hook
return:

[disable]

 

as you can see the script by Taku got people check on it

when I try taking the parts of the people check and insert it in Sprux script, I fail.

I know it is because I am not doing it right, but I don't have enough knowlege to handel it.

can someone help me do it (I prefer teaching me, but if you happen to want to make the script for me I will also appreciate it ALOT)

 

thank you, have a pleasant week.

 

 

 

 

 

Edited by idoarama

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  
×