Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Plants vs Zombies

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Auto Assemble scripts
View previous topic :: View next topic  
Author Message
bandana
Advanced Cheater
Reputation: 0

Joined: 28 Dec 2009
Posts: 80

PostPosted: Fri Feb 26, 2010 6:53 pm    Post subject: Plants vs Zombies Reply with quote

Code:


//Plants vs Zombies
//Version : 1.1

[ENABLE]

//1 hit kill non-protected

0053130f:
sub edi,[esp]
nop
mov [esp+1c],eax

//1 hit kill protected

00531053:
jmp 0053105e
push 00
mov eax,ebp
call 00530950
sub ecx,[ebp+000000d0]

//1 hit kill screen door

00530CA1:
mov [esi+000000dc],eax

[DISABLE]
0053130f:
sub edi,[esp+20]
mov [esp+1c],eax

00531053:
je 0053105e
push 00
mov eax,ebp
call 00530950
mov ecx,[ebp+000000d0]

00530CA1:
sub [esi+000000dc],eax



new version..


Last edited by bandana on Sun Mar 07, 2010 10:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
bandana
Advanced Cheater
Reputation: 0

Joined: 28 Dec 2009
Posts: 80

PostPosted: Sun Feb 28, 2010 8:25 pm    Post subject: Reply with quote

can anyone post the location where the code for screen door zombies and fume shroom attacks are at? so that i can improve on the code..
Back to top
View user's profile Send private message
Geri
Moderator
Reputation: 92

Joined: 05 Feb 2010
Posts: 5104

PostPosted: Fri Mar 05, 2010 10:10 pm    Post subject: Reply with quote

Well I guess I am using another version then You because I have different codes, but most likely it is working the same way.

So there are 3 different codes for me about this.

This one is changing the health of the zombie if it has no armor:

PlantsVsZombies.exe+131669 mov [ebp+000000c8],edi


This one is decreasing the zombies armor (buckets, etc.):

PlantsVsZombies.exe+13139D mov [ebp+000000d0],ecx


This one is decreasing the zombies equipment's "health" like newspapers, screen doors etc.:

PlantsVsZombies.exe+130FF1 sub [esi+000000dc],eax

So if You have these codes, most likely You will be able to make an instant kill cheat. It is easy to find anything's health because they are simply on 2 bytes and a peashot will decrease it with 20 . So You can search for unknown value which has been decrease by 20 per shots and You will find the health for them.
Back to top
View user's profile Send private message
bandana
Advanced Cheater
Reputation: 0

Joined: 28 Dec 2009
Posts: 80

PostPosted: Sat Mar 06, 2010 6:14 am    Post subject: Reply with quote

i am playing the one by reflexive arcade. yours?
Back to top
View user's profile Send private message
Geri
Moderator
Reputation: 92

Joined: 05 Feb 2010
Posts: 5104

PostPosted: Sat Mar 06, 2010 9:01 am    Post subject: Reply with quote

I have found it in the readme.html

Plants vs. Zombies™
Version 1.2.0.1065
Release Date: May 5, 2009
Build Date: July 28, 2009


But regardless of the version, the method how it works is the same. You just need to place peashooters on a level where You can find unarmored, armored and equipped zombies and You can search for all 3 addresses and codes easily, the peashooter has 20 damage so You need to search for value which has been decreased by 20 with each shot.
Back to top
View user's profile Send private message
bandana
Advanced Cheater
Reputation: 0

Joined: 28 Dec 2009
Posts: 80

PostPosted: Mon Mar 29, 2010 7:38 pm    Post subject: Reply with quote

anyone can find the address for plant health?
Back to top
View user's profile Send private message
Deine Mutter
Expert Cheater
Reputation: 0

Joined: 05 Apr 2006
Posts: 173

PostPosted: Sat Apr 10, 2010 5:00 pm    Post subject: Reply with quote

bandana wrote:
anyone can find the address for plant health?

If you wanna make your plants immortal, I can help you. This address:
Code:
00530040: add dword ptr [esi+40],fc
decreases the health of your plant. So just change fc to 0:
Code:
[ENABLE]
00530040:
add dword ptr [esi+40],0

[DISABLE]
00530040:
add dword ptr [esi+40],fc
Also, check out: http://forum.cheatengine.org/viewtopic.php?t=500230
_________________
Back to top
View user's profile Send private message
bandana
Advanced Cheater
Reputation: 0

Joined: 28 Dec 2009
Posts: 80

PostPosted: Sun Apr 11, 2010 11:17 pm    Post subject: Reply with quote

Deine Mutter wrote:
bandana wrote:
anyone can find the address for plant health?

If you wanna make your plants immortal, I can help you. This address:
Code:
00530040: add dword ptr [esi+40],fc
decreases the health of your plant. So just change fc to 0:
Code:
[ENABLE]
00530040:
add dword ptr [esi+40],0

[DISABLE]
00530040:
add dword ptr [esi+40],fc
Also, check out: http://forum.cheatengine.org/viewtopic.php?t=500230


does not work.....btw, i am using the one by reflexive arcade. not popcap
Back to top
View user's profile Send private message
Deine Mutter
Expert Cheater
Reputation: 0

Joined: 05 Apr 2006
Posts: 173

PostPosted: Mon Apr 12, 2010 10:08 am    Post subject: Reply with quote

That might be the reason. I think the addresses differ. Search for this aob and change the address.
Code:
83 46 40 FC 8B 4E 40 C7 86 B4 00 00 00 32 00 00


alternatively, you can also try this script:
Code:
[ENABLE]
aobscan(ImmortalPlants,83 46 40 FC 8B 4E 40 C7 86 B4 00 00 00 32 00 00)
label(_ImmortalPlants)
RegisterSymbol(_ImmortalPlants)

ImmortalPlants:
_ImmortalPlants:
add dword ptr [esi+40],0

[DISABLE]
_ImmortalPlants:
db 83 46 40 FC 8B 4E 40 C7 86 B4 00 00 00 32 00 00
UnRegisterSymbol(_ImmortalPlants)


I just tested it on my portable german version of Plants vs. Zombies, where addresses also differ and it worked fine.

_________________
Back to top
View user's profile Send private message
bandana
Advanced Cheater
Reputation: 0

Joined: 28 Dec 2009
Posts: 80

PostPosted: Mon Apr 12, 2010 8:49 pm    Post subject: Reply with quote

Code:

//Plants vs Zombies
//Cheat Engine 5.6
//Script Ver. 1

//GodMode

[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
0052FCF0:
db 90 90 90 90
 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
0052FCF0:
add dword ptr [esi+40],fc
mov ecx,[esi+40]
mov [esi+000000b4],00000032
mov eax,[ebp+00]


pls try this out...i tried it and it worked for me...
Back to top
View user's profile Send private message
random3rd
How do I cheat?
Reputation: 0

Joined: 21 May 2014
Posts: 1

PostPosted: Fri May 23, 2014 7:40 am    Post subject: i was wondering how exaclty did u find the recharging addres Reply with quote

how did u find the recharging address. its on google and everywhere but what if u want to find it ur self? any suggestions
Back to top
View user's profile Send private message
bandana
Advanced Cheater
Reputation: 0

Joined: 28 Dec 2009
Posts: 80

PostPosted: Fri May 23, 2014 8:21 am    Post subject: Re: i was wondering how exaclty did u find the recharging ad Reply with quote

random3rd wrote:
how did u find the recharging address. its on google and everywhere but what if u want to find it ur self? any suggestions


well, what i would do is buy something, then let the timer cool down, pause the game, search for all values, let it cooldown again, look for decreased values and repeat.

if not, then increased values.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Auto Assemble scripts All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)