- UID
- 175467
- 帖子
- 24612
- 主題
- 1263
- 精華
- 0
- 積分
- 3048
- 楓幣
- 8953
- 威望
- 2458
- 存款
- 137915
- 贊助金額
- 1500
- 推廣
- 0
- GP
- 6121
- 閱讀權限
- 150
- 在線時間
- 4294 小時
- 註冊時間
- 2017-1-18
- 最後登入
- 2024-12-26
|
// TwMs v204.2 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([[[032E054C]+B18C]+34]+60,04)
CharY:
ReadMem([[[032E054C]+B18C]+34]+64,04)
MapID:
ReadMem([035497FC]+1834,04)
SetSpawnPoint:
cmp [esp],01D892D0
jne Return
mov eax,[035497FC]
mov eax,[eax+1834]
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 008DAE10+5
008DAE10:
jmp SetSpawnPoint
[Disable]
008DAE10:
db 55 8B EC 6A FF
DeAlloc(MapID)
DeAlloc(CharX)
DeAlloc(CharY)
DeAlloc(SetSpawnPoint)
UnRegisterSymbol(MapID)
UnRegisterSymbol(CharX)
UnRegisterSymbol(CharY)
|
-
總評分: GP + 1
查看全部評分
|