Use This Code:
[Enable]
//================================
// pRush v1.00 for MSEA 0.46
// by PedraSimon@CEF
//
// Usage:
// F4: cycle external portals
// F5: toggle cs mouse vac
// F6: cycle spawn points
// dblClick: mouse teleport
//================================Alloc(chkHotkey, 512)
Label(hotkeyDone)
Label(initParam)
Label(cyclePtl)
Label(cycleSpPtl)
Label(cSpLoop)
Label(cSpPtlNxt)
Label(cSpPtlDone)
Label(cLoop)
Label(cPtlNxt)
Label(cPtlDone)
Label(dClickTele)
Label(dClickTeleDone)
Label(mouseTele)
Label(resetPosn)
Label(chrWarp)
Label(csmvX)
Label(csmvXDone)
Label(csmvY)
Label(csmvYDone)
Label(csmvFlag)
Label(lastPosn)
chkHotkey:
test edi,80000000
jns hotkeyDone
cmp [ebp+c],73
je cyclePtl
cmp [ebp+c],75
je cycleSpPtl
cmp [ebp+c],74
jne hotkeyDone
xor [csmvFlag],1
hotkeyDone:
jmp 68c23f
cyclePtl:
pushad
call initParam
call cPtlNxt
push [eax+10]
sub [esp],a
push [eax+c]
call chrWarp
popad
jmp hotkeyDone
cycleSpPtl:
pushad
call initParam maple story mesos
call cSpPtlNxt
push [eax+10]
sub [esp],a
push [eax+c]
call chrWarp
popad
jmp hotkeyDone
dClickTele:
mov eax, [ecx+9B4]
test eax,eax
jnz dClickTeleDone
cmp [esi],007866dc maple story mesos
je mouseTele
dClickTeleDone:
ret
mouseTele:
pushad
mov edi,[007ed280]
mov edi,[edi+978]
push [edi+84]
push [edi+80] maple story mesos
call chrWarp
mov [csmvFlag],0
popad
ret
initParam:
mov ebx,[007edcac]
mov ebx,[ebx+4]
mov edx, [007edca8]
mov edx, [edx+5d4]
mov edi, [lastPosn]
ret
//==== cycle external portal
cPtlNxt:
test edi,edi
jnz cLoop
mov edi,[ebx-4]
cLoop:
dec edi
mov ecx,[ebx+8*edi+4]
cmp [ecx+14],edx //skip current-map portal
je cPtlNxt
cmp [ecx+8],7 //accept type7 (fm)
je cPtlDone
cmp [ecx+14],3B9AC9FF //skip portal 99999999
je cPtlNxt
cPtlDone:
mov eax,ecx
mov [lastPosn],edi
ret
//==== cycle spawn points
cSpPtlNxt:
test edi,edi
jnz cSpLoop
mov edi,[ebx-4]
cSpLoop:
dec edi
mov ecx,[ebx+8*edi+4]
cmp [ecx+8],0 //cycle ONLY type 0
jne cSpPtlNxt
cSpPtlDone:
mov eax,ecx
mov [lastPosn],edi
ret
csmvX:
cmp [csmvFlag],0
je csmvXDone
push eax
mov eax, [007edc10]
mov eax, [eax+61c]
cmp eax,esi
pop eax
jne csmvXDone
mov eax, [007ed280]
mov eax, [eax+978]
mov eax, [eax+80]
csmvXDone:
mov [ebx], eax
mov edi,[ebp+10]
ret
csmvY:
cmp [csmvFlag],0
je csmvYDone
push eax
mov eax, [007edc10]
mov eax, [eax+61c]
cmp eax,esi
pop eax
jne csmvYDone
mov eax, [007ed280]
mov eax, [eax+978]
mov eax, [eax+84]
csmvYDone:
mov [edi], eax
mov ebx,[ebp+14]
ret
chrWarp:
push [esp+8]
push [esp+8]
mov edi, [007edc10]
mov edi,[edi+61c]
push edi
mov edi,[edi]
call [edi+40]
ret 8
resetPosn:
mov [lastPosn],0
lea eax,[ebp-18]
mov esi,ecx
ret
csmvFlag:
dd 0
00773B94:
lastPosn:
dd 00
004baeb9:
call chkHotkey
0068B06B:
call resetPosn
006CD116:
call csmvX
006CD17B:
call csmvY
006E1B6E:
call dClickTele
nop
[Disable]
004baeb9:
call 68c23f
0068B06B:
lea eax,[ebp-18]
mov esi,ecx
006CD116:
mov [ebx], eax
mov edi,[ebp+10]
006CD17B:
mov [edi],eax
mov ebx,[ebp+14]
006E1B6E:
mov eax, [ecx+9B4]
Dealloc(chkHotkey, 512)
// pRush v1.00
// PedraSimon@CEF
[ Download Now ]
No comments:
Post a Comment