- UID
- 290224
- 帖子
- 384
- 主題
- 43
- 精華
- 0
- 積分
- 85
- 楓幣
- 282
- 威望
- 76
- 存款
- 0
- 贊助金額
- 0
- 推廣
- 0
- GP
- 51
- 閱讀權限
- 10
- 性別
- 保密
- 在線時間
- 180 小時
- 註冊時間
- 2020-9-13
- 最後登入
- 2024-8-18
|
// TwMs v239.1 ICS Set Spawn-Point
[ENABLE]
Alloc(SetSpawnPointICS,1024)
RegisterSymbol(CharX)
Alloc(CharX,04)
RegisterSymbol(CharY)
Alloc(CharY,04)
RegisterSymbol(MapID)
Alloc(MapID,04)
Label(SetSpawnPoint)
Label(L1)
Label(L2)
Label(hook)
CharX:
DD 0
CharY:
DD 0
MapID:
DD 0
SetSpawnPointICS:
cmp [esp+58],02C7EDE2
jne GetProcessHeap
mov [esp+58],SetSpawnPoint
jmp GetProcessHeap
SetSpawnPoint:
mov [ebp-00000280],eax
test eax,eax
je 02C7EE55
mov edx,[eax+10]
lea ecx,[eax+10]
lea eax,[ebp-00000298]
mov [ebp-00000298],00000000
push eax
push 03A69674
push ecx
call dword ptr [edx]
xor ecx,ecx
mov [ebp-00000288],eax
test eax,eax
cmovns ecx,[ebp-00000298]
mov [ebp-000002B4],ecx
mov ecx,[ebx+0000EE28]
test ecx,ecx
je L1
mov eax,[ecx]
push ecx
call dword ptr [eax+08]
mov eax,[ebp-00000288]
L1:
mov ecx,[ebp-000002B4]
mov [ebx+0000EE28],ecx
test eax,eax
jns L2
cmp eax,80004002
je L2
push eax
call 034F9AE0
mov ecx,[ebx+0000EE28]
test ecx,ecx
je L2
mov [ebx+0000EE28],00000000
mov eax,[ecx]
push ecx
call dword ptr [eax+08]
L2:
mov ecx,ebx
lea eax,[ebx+04]
neg ecx
sbb ecx,ecx
and ecx,eax
push ecx
mov ecx,[ebp-00000280]
call 00BD76E0
mov ecx,[ebp-00000280]
mov eax,[ebp-00000274]
push 00
push [ebx+0000073C]
mov edx,[ecx]
add eax,-0A
push 00
push 00
push eax
push esi
push 01
push 02C7EEAD
cmp [edx+00000088],00C3D370
je hook
jmp 00C3D370
hook:
mov eax,[042E1EE4]
mov eax,[eax+00000250]
cmp [MapID],eax
jne 00C3D370
mov eax,[CharX]
mov [esp+08],eax
mov eax,[CharY]
mov [esp+0C],eax
jmp 00C3D370
051AB2C4:
DD SetSpawnPointICS
[DISABLE]
051AB2C4:
DD GetProcessHeap
DeAlloc(SetSpawnPointICS)
UnRegisterSymbol(CharX)
DeAlloc(CharX)
UnRegisterSymbol(CharY)
DeAlloc(CharY)
UnRegisterSymbol(MapID)
DeAlloc(MapID)
|
-
總評分: 楓幣 + 2
彩票 + 1
GP + 1
查看全部評分
|