2010年9月5日星期日

[Trainer Source Code][Powered by Cheat Engine]Plants vs Zombie: Game of the Year Version

Click here to download:
PVZ.GOTY.Trainer.rar (275 KB)

昨天无比郁闷~偶然发现Fish的Dropbox里有Mac的Pvz,而且是GOTY版的。
小玩了一下,觉得不过瘾~Mac下实在没有能用的修改器~
于是去找了一个Windows版的~然后上了Cheat Engine~
一个冲动之下把PVZ的Engine用Cheat Engine反编译过来小研究了一下~
修改了其中3处代码:
1.收集阳光时,给付0 x8FF的阳光,又防溢出保护
2.消费阳光时,把阳光固定为0xFFF
3.植物种植没有冷却时间

代码如下:
//Cheat Code

//==============================================
//Collect Money Cheat
//==============================================
[ENABLE]
alloc(collectMoneyCheat,512) 
label(collectMoneyReturn)
label(collectMoneyOriginal)
label(collectMoneyExit)

0041E6E0:
jmp collectMoneyCheat
nop
collectMoneyReturn:

collectMoneyCheat: 
cmp [eax+00005578],FFFF  // Overflow protection
jge collectMoneyExit
mov ecx, 8FF

collectMoneyOriginal:
add [eax+00005578],ecx

collectMoneyExit:
jmp collectMoneyReturn

[DISABLE]
dealloc(collectMoneyCheat)
0041E6E0:
add [eax+00005578],ecx
//==============================================

//==============================================
//Consume Money Cheat
//==============================================
[ENABLE]

alloc(consumeMoneyCheat,512) 
label(consumeMoneyReturn)
label(consumeMoneyOriginal)
label(consumeMoneyExit)

0041E844:
jmp consumeMoneyCheat
nop
nop
nop
consumeMoneyReturn:

consumeMoneyCheat: 
mov esi, FFFF //Show me the money ;)
mov [edi+00005578],esi

consumeMoneyOriginal:
/*
sub esi,ebx
mov [edi+00005578],esi
*/

consumeMoneyExit:
jmp consumeMoneyReturn

[DISABLE]
dealloc(consumeMoneyCheat)
0041E844:
sub esi,ebx
mov [edi+00005578],esi
//==============================================

//==============================================
//Cool Down Cheat
//==============================================
[ENABLE]
alloc(coolDown,512)
label(coolDownReturn)
label(coolDownOriginal)
label(coolDownExit)

00491E4C:
jmp coolDown
nop
coolDownReturn:

coolDown:  
//place your code here
mov eax, [edi+28] 
mov [edi+24], eax

coolDownOriginal:
inc [edi+24]
mov eax,[edi+24]

coolDownExit:
jmp coolDownReturn

[DISABLE]
dealloc(coolDown) 
00491E4C:
inc [edi+24]
mov eax,[edi+24]
//==============================================

顺带附赠一个编译后的PVZ GOTY的Trainer
由于我用的Mac键盘,只有F5和F6两个键没有被Mac占用,能够正常工作~所以直好把两个Sunshine相关的Cheat合为一个了~

运行环境:Win XP SP3 EN+Pvz GOTY EN 版测试通过~

TimNew
------------
Release your passion
To Realize your potential

Posted via email from 米良的草窝

没有评论:

发表评论