- UID
- 175467
- 帖子
- 24449
- 主題
- 1251
- 精華
- 0
- 積分
- 3002
- 楓幣
- 4534
- 威望
- 2421
- 存款
- 137915
- 贊助金額
- 1500
- 推廣
- 0
- GP
- 6041
- 閱讀權限
- 150
- 在線時間
- 4124 小時
- 註冊時間
- 2017-1-18
- 最後登入
- 2024-11-10
|
本帖最後由 btb 於 2018-2-3 19:08 編輯
// TwMs v202.1[CRC] Set Spawn-Point
// Author: ??
// ReWrite: Doem 2017-04-23
[Enable]
RegisterSymbol(CharX)
RegisterSymbol(CharY)
RegisterSymbol(MapID)
Alloc(SetSpawnPoint,128)
Alloc(CharX,04)
Alloc(CharY,04)
Alloc(MapID,04)
Label(Return)
CharX:
ReadMem([[[03069704]+AA60]+34]+60,04)
CharY:
ReadMem([[[03069704]+AA60]+34]+64,04)
MapID:
ReadMem([030701B4]+182C,04)
SetSpawnPoint:
cmp [esp],01BCBA81
jne Return
mov eax,[030701B4]
mov eax,[eax+182C]
cmp [MapID],eax
jne Return
mov eax,[CharX]
mov [esp+08],eax
mov eax,[CharY]
mov [esp+0C],eax
Return:
db 55 8B EC 6A FF
jmp 0085ED90+5
0085ED90:
jmp SetSpawnPoint
[Disable]
0085ED90:
db 55 8B EC 6A FF
DeAlloc(MapID)
DeAlloc(CharX)
DeAlloc(CharY)
DeAlloc(SetSpawnPoint)
UnRegisterSymbol(MapID)
UnRegisterSymbol(CharX)
UnRegisterSymbol(CharY)
|
|