Jump to content
Moopler Closing Read more... ×
Moopler
  • 0
Sign in to follow this  
kino0924

Question Two different teleport function

Question

Hello everyone,

I have been digging into Kami script lately and found two different teleport functions.

 

Kami1 v202.4
Hook_0291DA10: // ????
mov esi,[03697E84] // CUserLocal: 8B 3D ?? ?? ?? ?? 8B CF F3
lea ecx,[esi+04]
mov eax,[esi+04]
mov eax,[eax+20]
call eax
test eax,eax
je Teleport_End
add eax,10
push [MobY]
push [MobX]
push eax
call 028F66E0  // ????
Teleport_End: // Original Code
push ebp
mov ebp, esp
sub esp, 10
JMP 0291DA10+6  // Return to Original


Kami2 v202.4
Hook_012B3BBE: // ????
mov esi,[03697E84] // CUserLocal: 8B 3D ?? ?? ?? ?? 8B CF F3
lea ecx,[esi+04]
mov eax,[esi+04]
mov eax,[eax+20]
call eax
test eax,eax
je Teleport_End
push [MobY]
push [MobX]
push 00
mov ecx,eax
call 00D0BA30 // 55 8B EC ? ? 10 ? FF ? 10 8D ? 10 FF ? 0C 56 FF 50 40 85 C0 79 0C 68 ? ? ? ? ? ? E8 ? ? ? ? 5E [first]
JMP 012B3BBE+5 // Return to Original
Teleport_End:
ret

 

Can someone tell me what is the main difference between two implementation?

Kami2 is the one that I found from latest public script.
I dont remember where I got the Kami1 but surely both of hook teleports character into desired coordinate.

Thank you so much for reading this

Share this post


Link to post

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  
×