- UID
- 175467
- 帖子
- 24499
- 主題
- 1255
- 精華
- 0
- 積分
- 3018
- 楓幣
- 6032
- 威望
- 2434
- 存款
- 137915
- 贊助金額
- 1500
- 推廣
- 0
- GP
- 6062
- 閱讀權限
- 150
- 在線時間
- 4171 小時
- 註冊時間
- 2017-1-18
- 最後登入
- 2024-11-24
|
// TwMs v208.1 Set Spawn-Point [CRC]
// Auther: 未知
// ReWrite: Doem 2017-04-23
//換頻道回到原本掛機的位置
[Enable]
RegisterSymbol(CharX)
RegisterSymbol(CharY)
RegisterSymbol(MapID)
Alloc(SetSpawn,128)
Alloc(CharX,04)
Alloc(CharY,04)
Alloc(MapID,04)
Label(Return)
CharX:
ReadMem([[[036748BC]+B5E4]+34]+60,04)
CharY:
ReadMem([[[036748BC]+B5E4]+34]+64,04)
MapID:
ReadMem([038DEEF4]+1844,04)
SetSpawn:
CMP [ESP],01FD7DFE
JNE Return
MOV EAX,[038DEEF4]
MOV EAX,[EAX+1844]
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 00948E00+5
00948E00:
JMP SetSpawn
[Disable]
00948E00:
DB 55 8B EC 6A FF
DeAlloc(MapID)
DeAlloc(CharX)
DeAlloc(CharY)
DeAlloc(SetSpawn)
UnRegisterSymbol(MapID)
UnRegisterSymbol(CharX)
UnRegisterSymbol(CharY)
|
|