- UID
- 287787
- 帖子
- 219
- 主題
- 94
- 精華
- 0
- 積分
- 381
- 楓幣
- 3070
- 威望
- 354
- 存款
- 0
- 贊助金額
- 0
- 推廣
- 6
- GP
- 101
- 閱讀權限
- 30
- 在線時間
- 547 小時
- 註冊時間
- 2020-8-5
- 最後登入
- 2024-11-23
|
- // TwMs v228.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:
- ReadMem([[[0425217C]+CC4C]+34]+58,04)
- CharY:
- ReadMem([[[0425217C]+CC4C]+34]+5C,04)
- MapID:
- ReadMem([0425212C]+187C,04)
- SetSpawnPointICS:
- cmp [esp+58],0298856D
- jne GetProcessHeap
- mov [esp+58],SetSpawnPoint
- jmp GetProcessHeap
- SetSpawnPoint:
- mov [ebp-00000290],eax
- test eax,eax
- je 029885E0
- mov edx,[eax+10]
- lea ecx,[eax+10]
- lea eax,[ebp-0000028C]
- mov [ebp-0000028C],00000000
- push eax
- push 03A034D4
- push ecx
- call dword ptr [edx]
- xor ecx,ecx
- mov [ebp-00000294],eax
- test eax,eax
- cmovns ecx,[ebp-0000028C]
- mov [ebp-000002B4],ecx
- mov ecx,[ebx+00012F9C]
- test ecx,ecx
- je L1
- mov eax,[ecx]
- push ecx
- call dword ptr [eax+08]
- mov eax,[ebp-00000294]
- L1:
- mov ecx,[ebp-000002B4]
- mov [ebx+00012F9C],ecx
- test eax,eax
- jns L2
- cmp eax,80004002
- je L2
- push eax
- call 0344E430
- mov ecx,[ebx+00012F9C]
- test ecx,ecx
- je L2
- mov [ebx+00012F9C],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-00000290]
- call 00AE2B30
- mov ecx,[ebp-00000290]
- mov eax,[ebp-00000264]
- push 00
- push [ebx+000007B0]
- mov edx,[ecx]
- add eax,-0A
- push 00
- push 00
- push eax
- push esi
- push 01
- push 02988638
- cmp [edx+00000088],00B43500
- je hook
- jmp 00B43500
- hook:
- mov eax,[0425212C]
- mov eax,[eax+187C]
- cmp [MapID],eax
- jne 00B43500
- mov eax,[CharX]
- mov [esp+08],eax
- mov eax,[CharY]
- mov [esp+0C],eax
- jmp 00B43500
- 044FDA04:
- DD SetSpawnPointICS
- [DISABLE]
- 044FDA04:
- DD GetProcessHeap
- DeAlloc(SetSpawnPointICS)
- UnRegisterSymbol(CharX)
- DeAlloc(CharX)
- UnRegisterSymbol(CharY)
- DeAlloc(CharY)
- UnRegisterSymbol(MapID)
- DeAlloc(MapID)
複製代碼 |
-
總評分: 彩票 + 1
查看全部評分
|