[ENABLE]
//換頻換圖定點
RegisterSymbol(Spawn)
Alloc(Spawn,1024)
RegisterSymbol(SpawnX)
Alloc(SpawnX,4)
RegisterSymbol(SpawnY)
Alloc(SpawnY,4)
RegisterSymbol(MapID)
Alloc(MapID,4)
RegisterSymbol(CheckMapID)
Alloc(CheckMapID,4)
Label(GetSpawnXY)
Label(Return)
label(SpawnMain)
Spawn:
Call GetSpawnXY
Cmp [esp+74],00997D5A //50 8d ?? ?? ?? 00 00 89 ?? ?? e8 ?? ?? ?? ff 3b f3
Jne GetProcessHeap
mov [esp+74],SpawnMain
Jmp GetProcessHeap
SpawnMain:
push eax
mov eax,[00f75bac]
mov eax,[eax+10d8]
Cmp [MapID],eax
pop eax
Jne 00997D5A
Push [SpawnX]
Push [SpawnY]
Pop [Ebp-1C]
Pop [Ebp-20]
jmp 00997D5A
GetSpawnXY:
cmp [CheckMapID],1
je Return
push eax
mov eax,[00f75bac]
mov eax,[eax+fa0]
mov [SpawnX],eax
mov eax,[00f75bac]
mov eax,[eax+fa4]
mov [SpawnY],eax
mov eax,[00f75bac]
mov eax,[eax+10d8]
mov [MapID],eax
mov [CheckMapID],1
pop eax
ret
Return:
ret
00f7d0b4:
DD Spawn
[DISABLE]
00f7d0b4:
DD GetProcessHeap
DeAlloc(Spawn)
DeAlloc(SpawnXY)
DeAlloc(MapID)
2014年2月5日 星期三
TwMS v1.52.2_ICS_SetSpawn
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言