Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Enable]
- Alloc(Hook, 512)
- Label(Return)
- Label(_Function)
- Label(Hook_End)
- Hook:
- push esi
- push edi
- mov esi,ecx
- cmp [esi+A0],0 // jump check
- je Hook_End
- push 28 // Down Key
- call GetAsyncKeyState
- and eax,00008000 // Key Down
- test eax,eax
- je Hook_End
- cmp [esi+70],0 // not on platform
- je Hook_End
- mov [esi+A0],0 // jump flag clear
- // Jump Sound
- push 64
- push 0065B91C
- call 00599380
- add esp,08
- mov ecx,[0065F40C]
- mov eax,[ecx+3E4] // CharY
- add eax,#5 // Fall Down
- push eax
- push [ecx+3E0] // CharX
- push [ecx+3C] // Object == esi
- call 005B17A0 // teleport
- xor eax,eax
- pop edi
- pop esi
- ret 0004
- Hook_End:
- push [esp+0C]
- mov ecx,esi
- call _Function
- pop edi
- pop esi
- ret 0004
- _Function:
- sub esp,30
- push ebx
- mov ebx,ecx
- jmp Return
- 005ACBF0:
- jmp Hook
- nop
- Return:
- [Disable]
- 005ACBF0:
- sub esp,30
- push ebx
- mov ebx,ecx
- DeAlloc(Hook)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement