冰楓論壇

標題: TWMS v227.1 CRC Set Spawn-Point [打印本頁]

作者: 骰子z    時間: 2020-8-19 01:24
標題: TWMS v227.1 CRC Set Spawn-Point
//TWMS v227.1 CRC Set Spawn-Point
[Enable]
Alloc(SetSpawn,128)
Label(Return)
RegisterSymbol(CharX)
RegisterSymbol(CharY)
RegisterSymbol(MapID)
Alloc(CharX,04)
Alloc(CharY,04)
Alloc(MapID,04)

CharX:
ReadMem([[[042311EC]+CC4C]+34]+58,04)

CharY:
ReadMem([[[042311EC]+CC4C]+34]+5C,04)

MapID:
ReadMem([0423119C]+187C,04)

SetSpawn:
CMP  [ESP],0295BA38
JNE  Return
MOV  EAX,[0423119C]
MOV  EAX,[EAX+187C]
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  00B442C0+5

00B442C0:
JMP SetSpawn

[Disable]
00B442C0:
DB 55 8B EC 6A FF

DeAlloc(SetSpawn)
DeAlloc(MapID)
DeAlloc(CharX)
DeAlloc(CharY)
UnRegisterSymbol(MapID)
UnRegisterSymbol(CharX)
UnRegisterSymbol(CharY)






歡迎光臨 冰楓論壇 (https://bingfong.com/) Powered by 冰楓