Jump to content
Moopler
Chubbz

Outdated [EMS v115.1] Portal Kami + Portal Kami Loot

Recommended Posts

Here are the original (non-d/cing bullshit) Portal Kami scripts. Screw you to whoever kept editing these shits..

PORTAL KAMI

Spoiler

[ENABLE]
Alloc(Hook,256)
Label(return)
Label(Ending)
Label(UsePortal)
LabeL(GotoPortal)
Alloc(FakePortal,128)
Alloc(FakePortalPlz,128)
Alloc(GetMobXY,512)
Label(GetMobXYFalse)
Label(GetMobXYTrue)
Label(NextMob)
Alloc(GetPortal,256)
Label(NextPortal)
Label(GP_False)
Label(GP_Inc)
Alloc(BlockSend,16)

FakePortal+20:
dd 0

GetPortal:
xor eax,eax
xor edi,edi
mov ecx,[01984828] //8B 3D ? ? ? ? 8B 47 ? 85 C0 [in OPCODE]
mov ecx,[ecx+04]

NextPortal:
cmp [ecx-04],eax
jbe GP_False
mov esi,[ecx+eax*8+4]
cmp [esi+1C],#999999999
je GP_Inc
cmp [esi+1C],edx
je GP_Inc
inc edi
cmp edi,1
jb GP_Inc
mov eax,esi
ret

GP_Inc:
inc eax
jmp NextPortal

GP_False:
xor eax,eax
ret

GetMobXY:
mov esi,[0198438C] //8B 0D ? ? ? ? ? E8 ? ? ? ? 8B ? 85 ? 74 ? 8B ? ? 8B [1st Result, in OPCODE]
test esi,esi
je GetMobXYFalse
mov edx,[esi+10]
test edx,edx
je GetMobXYFalse
mov esi,[esi+28]
test esi,esi
je GetMobXYFalse
mov edx,[esi+04]
test edx,edx
je GetMobXYFalse
mov edx,[edx+1CC] //83 ? ? ? ? ? ? 0F 84 ? ? ? ? 83 ? ? 39 [in OPCODE]
test edx,edx
je GetMobXYFalse
mov edx,[edx+24]
test edx,edx
je GetMobXYFalse
mov ebx,[edx+60]
or ebx,[edx+64]
test ebx,ebx
jne GetMobXYTrue
mov esi,[esi-0C]
test esi,esi
je GetMobXYFalse
jmp NextMob

NextMob:
mov edx,[esi+14]
test edx,edx
je GetMobXYFalse
mov edx,[edx+1CC] //83 ? ? ? ? ? ? 0F 84 ? ? ? ? 83 ? ? 39 [in OPCODE]
test edx,edx
je GetMobXYFalse
mov edx,[edx+24]
test edx,edx
je GetMobXYFalse
mov ebx,[edx+60]
or ebx,[edx+64]
test ebx,ebx
jne GetMobXYTrue
mov esi,[esi+04]
test esi,esi
je GetMobXYFalse
jmp NextMob

GetMobXYFalse:
xor eax,eax
ret

GetMobXYTrue:
lea eax,[edx+58]
ret

Hook:
sub esp,0C
push ebx
push esi
pushad
call GetMobXY
test eax,eax
je Ending
inc [FakePortal+20]
cmp [FakePortal+20],#5
je GotoPortal
cmp [FakePortal+20],#10
je UsePortal
cmp [FakePortal+20],#15
jb Ending
mov [FakePortal+20],0
jmp Ending

GotoPortal:
call GetPortal
test eax,eax
je Ending
mov edi,eax
mov ebx,[edi+0C]
mov [FakePortal+0C],ebx
mov ebx,[edi+10]
mov [FakePortal+10],ebx
mov eax,[edi+24]
mov ebx,[edi+04]
push 00
push 00
push eax
push ebx
push 00
push 00
mov ecx,[0197FDC0] //A1 ? ? ? ? 85 C0 75 ? 5F [in OPCODE]
call 011DFAF0 //E8 ? ? ? ? 85 ? 0F ? ? ? ? ? 8D ? ? ? 68 ? ? ? ? ? E8 ? ? ? ? 8B C8 E8 ? ? ? ? 8B 00 6A 64 [in OPCODE]
jmp Ending

UsePortal:
mov ebx,[eax]
mov [FakePortal+0C],ebx
mov ebx,[eax+4]
mov [FakePortal+10],ebx
call GetPortal
test eax,eax
je Ending
mov edi,eax
mov eax,[edi+24]
mov ebx,[edi+04]
push 00
push 00
push eax
push ebx
push 00
push 00
mov ecx,[0197FDC0] //A1 ? ? ? ? 85 C0 75 ? 5F [in OPCODE]
call 011DFAF0 //E8 ? ? ? ? 85 ? 0F ? ? ? ? ? 8D ? ? ? 68 ? ? ? ? ? E8 ? ? ? ? 8B C8 E8 ? ? ? ? 8B 00 6A 64 [in OPCODE]

Ending:
popad
jmp return

0131D860: //83 EC 0C 53 56 57 B9
jmp Hook
return:

011DFE90: //8B 0D ? ? ? ? 50 E8 ? ? ? ? 8B F8 85 FF 0F 84 ? ? ? ? 8B 4F
jmp FakePortalPlz
nop

FakePortalPlz:
lea edi,[FakePortal]
jmp 011DFEA6 //mov ecx,[edi+0C] below

011DFFCA: //E8 ? ? ? ? 8D ? 24 ? ? 00 00 C7 ? 24  ? ? 00 00 FF FF FF FF E8 ? ? ? ? E9 ? ? ? ? 83
call BlockSend

BlockSend:
ret 0004

011DFD8C: //0F 8F ? ? ? ? 8B ? ? ? ? ? 8D ? 24 ? ? 00 00 52
db 90 90 90 90 90 90

011DFB37: //75 ? 8B ? ? 8B ? ? 8D ? ? FF D2 8B 10 8B C8 8B ? ? FF D0 85 C0 75
db 74

[DISABLE]
0131D860:
sub esp,0C
push ebx
push esi

011DFE90:
mov ecx,[01984828]

011DFFCA:
call 005C5CC0

011DFD8C:
jg 011E3F7F

011DFB37:
db 75

Dealloc(Hook)
DeAlloc(FakePortal)
DeAlloc(FakePortalPlz)
DeAlloc(GetMobXY)
DeAlloc(GetPortal)
dealloc(BlockSend)

 

PORTAL KAMI LOOT

You can change the 'Key' to whatever you use to loot with. Here are some keycodes:

CTRL -> 001D0000
SHIFT -> 002A0000
INSERT -> 01520000
DEL -> 01530000
HOME -> 01470000
END -> 014F0000
PAGEUP -> 01490000
PAGEDOWN -> 01510000
ALT -> 00380000
Z -> 002C0000
Spoiler

define(LootKey,002C0000) //Z
[ENABLE]
Alloc(Hook,256)
Label(portal_return)
Label(Ending)
Label(UsePortal)
LabeL(GotoPortal)
Alloc(FakePortal,128)
Alloc(FakePortalPlz,128)
Alloc(GetPortal,256)
Label(NextPortal)
Label(GP_False)
Label(GP_Inc)
Alloc(BlockSend,16)
Alloc(ItemHook,128)
Alloc(ItemX,4)
Alloc(ItemY,4)
Alloc(PressKey,128)

FakePortal+20:
dd 0

GetPortal:
xor eax,eax
xor edi,edi
mov ecx,[01984828] //8B 3D ? ? ? ? 8B 47 ? 85 C0 [in OPCODE]
mov ecx,[ecx+04]

NextPortal:
cmp [ecx-04],eax
jbe GP_False
mov esi,[ecx+eax*8+4]
cmp [esi+1C],#999999999
je GP_Inc
inc edi
cmp edi,1
jb GP_Inc
mov eax,esi
ret

GP_Inc:
inc eax
jmp NextPortal

GP_False:
xor eax,eax
ret

PressKey:
mov esi,[0198449C] //8B 15 ? ? ? ? 85 D2 74 23
mov ecx,[esi+A4]
push edx
push 00
call 0131B8D0 //A1 ?? ?? ?? ?? 85 ?? 74 ?? 8D ?? ?? 8B ?? 8B ?? FF
ret

Hook:
sub esp,0C
push ebx
push esi
pushad
inc [FakePortal+20]
cmp [FakePortal+20],#5
je GotoPortal
cmp [FakePortal+20],#10
je UsePortal
cmp [FakePortal+20],#15
jb Ending
mov [FakePortal+20],0
jmp Ending

GotoPortal:
mov edx,LootKey
call PressKey
call GetPortal
test eax,eax
je Ending
mov edi,eax
mov ebx,[edi+0C]
mov [FakePortal+0C],ebx
mov ebx,[edi+10]
mov [FakePortal+10],ebx
mov eax,[edi+24]
mov ebx,[edi+04]
push 00
push 00
push eax
push ebx
push 00
push 00
mov ecx,[0197FDC0] //A1 ? ? ? ? 85 C0 75 ? 5F [in OPCODE]
call 011DFAF0 //E8 ? ? ? ? 85 ? 0F ? ? ? ? ? 8D ? ? ? 68 ? ? ? ? ? E8 ? ? ? ? 8B C8 E8 ? ? ? ? 8B 00 6A 64 [in OPCODE]
jmp Ending

UsePortal:
mov eax,[ItemX]
mov [FakePortal+C],eax
mov ebx,[ItemY]
mov [FakePortal+10],ebx
call GetPortal
test eax,eax
je Ending
mov edi,eax
mov eax,[edi+24]
mov ebx,[edi+04]
push 00
push 00
push eax
push ebx
push 00
push 00
mov ecx,[0197FDC0] //A1 ? ? ? ? 85 C0 75 ? 5F [in OPCODE]
call 011DFAF0 //E8 ? ? ? ? 85 ? 0F ? ? ? ? ? 8D ? ? ? 68 ? ? ? ? ? E8 ? ? ? ? 8B C8 E8 ? ? ? ? 8B 00 6A 64 [in OPCODE]


Ending:
popad
jmp portal_return

ItemHook:
cmp [esp],00667954 //85 C0 75 ? 8D ? 24 ? C7 ? 24 ? ? ? ? ? E8 ? ? ? ? 8B ? 24 ? EB
jne PtInRect
push eax
mov eax,[esp+0C]
mov [ItemX],eax
mov eax,[esp+10]
mov [ItemY],eax
pop eax
jmp PtInRect

0131D860: //83 EC 0C 53 56 57 B9
jmp Hook
portal_return:

01993CF0: //85 C0 75 ? 8D ? 24 ? C7
dd ItemHook

011DFE90: //8B 0D ? ? ? ? 50 E8 ? ? ? ? 8B F8 85 FF 0F 84 ? ? ? ? 8B 4F
jmp FakePortalPlz
nop

FakePortalPlz:
lea edi,[FakePortal]
jmp 011DFEA6 //mov ecx,[edi+0C] below

011DFFCA: //E8 ? ? ? ? 8D ? 24 ? ? 00 00 C7 ? 24  ? ? 00 00 FF FF FF FF E8 ? ? ? ? E9 ? ? ? ? 83
call BlockSend

BlockSend:
ret 0004

011DFD8C: //0F 8F ? ? ? ? 8B ? ? ? ? ? 8D ? 24 ? ? 00 00 52
db 90 90 90 90 90 90

011DFB37: //75 ? 8B ? ? 8B ? ? 8D ? ? FF D2 8B 10 8B C8 8B ? ? FF D0 85 C0 75
db 74

[DISABLE]
0131D860:
sub esp,0C
push ebx
push esi

01993CF0:
dd PtInRect

011DFE90:
mov ecx,[01984828]

011DFFCA:
call 005C5CC0

011DFD8C:
jg 011E3F7F

011DFB37:
db 75

DeAlloc(Hook)
DeAlloc(FakePortalPlz)
DeAlloc(FakePortal)
DeAlloc(GetPortal)
DeAlloc(ItemHook)
DeAlloc(PressKey)
Dealloc(BlockSend)

 

Yes, they are separate scripts. You want them combined and shit? Well, good luck :D 

  • Like 12

Share this post


Link to post
7 hours ago, hieubachieu said:

Stupid questions but does any1 here got auto attack script? the "portal kami" wont attack just teleport :S

just use 50k dmg hack with it

Share this post


Link to post
1 hour ago, Nelson Ortiz said:

hey when i activate kami loot i can't pick anything my loot key dosen't work how i fix it?

be sure that your lootkey in maple is on z (american keyboard)

Share this post


Link to post
1 minute ago, hippo said:

be sure that your lootkey in maple is on z (american keyboard)

is it i can´t press my lootkey Z and can't teleport anymore have to restar for teleport or pick

Share this post


Link to post

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
×