Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Enable]
- Alloc(TestScript, 512)
- Label(Teleport)
- Label(T_End)
- Label(Loop1)
- Label(Loop1_1)
- Label(Ending)
- Label(Hook)
- Label(Return)
- Label(MobTeleport)
- Label(Attack)
- TestScript:
- MobTeleport:
- push ecx
- push esi
- push edi
- mov esi,[01CC0140]
- test esi,esi
- je Ending
- mov esi,[esi+28]
- test esi,esi
- je Ending
- lea esi,[esi-10]
- jmp Loop1_1
- Loop1:
- mov esi,[esi+4]
- test esi,esi
- je Ending
- Loop1_1:
- mov edi,[esi+14]
- test edi,edi
- je Loop1
- mov ecx,[edi+19C]
- test ecx,ecx
- je Loop1
- mov ecx,[ecx+24]
- test ecx,ecx
- je Loop1
- mov eax,[ecx+60]
- or eax,[ecx+64]
- test eax,eax
- je Loop1
- mov edi,[edi+198]
- test edi,edi
- je Loop1
- /*
- mov edi,[edi+100]
- test edi,edi
- je Loop1
- mov ebx,2
- xor edx,edx
- mov eax,[edi+18]
- sub eax,[edi+10]
- xor edx,edx
- mov ebx,2
- idiv ebx
- add eax,[edi+10]
- push [edi+14]
- push eax
- */
- push [edi+29C]
- push [edi+298]
- call Teleport
- Ending:
- pop edi
- pop esi
- pop ecx
- ret
- Teleport:
- push esi
- mov esi,[01CBBCB4]//CharBase
- test esi,esi
- je T_End
- mov eax,[esp+8]
- mov [esi+AAD8],eax//X
- mov eax,[esp+C]
- mov [esi+AACC],eax//Y
- mov [esi+AAB4],1//Toggle
- T_End:
- pop esi
- ret 0008
- Attack:
- push 002D0000
- push 58
- mov ecx,[01CBBCB4]
- call 01409980//6A FF 68 ?? ?? ?? ?? 64 A1 00 00 00 00 50 81 EC ?? ?? ?? ?? 53 55 56 57 A1 ?? ?? ?? ?? 33 C4 50 8D 84 24 ?? ?? ?? ?? 64 A3 00 00 00 00 8B F1 A1 ?? ?? ?? ?? 8B 88 ?? ?? ?? ?? 85 C9 0F 85 ?? ?? ?? ?? 39 88 ?? ?? ?? ?? 0F 85 ?? ?? ?? ?? 38 88 ?? ?? ?? ?? 0F 85 ?? ?? ?? ?? 38 88 ?? ?? ?? ?? 0F 85 ?? ?? ?? ?? 83 B8 ?? ?? ?? ?? 02 0F 84
- ret
- Hook:
- call 01488CD0
- pushad
- call MobTeleport
- call Attack
- popad
- jmp Return
- 01419F89:
- jmp Hook
- Return:
- [Disable]
- 01419F89:
- call 01488CD0
- DeAlloc(TestScript)
Advertisement
Add Comment
Please, Sign In to add comment