View previous topic :: View next topic |
Author |
Message |
Smanettone83 Expert Cheater
Reputation: 3
Joined: 21 Feb 2011 Posts: 146 Location: Italia
|
Posted: Mon Feb 21, 2011 12:42 pm Post subject: How to call an event in address |
|
|
Hi guys, i'm a noob. I've found in super mario game two address...
health and gold...
my question is stupid.... but i want to learn it... how can i do to decrease my health when i take a gold? i must use code injection?
sorry for my bad english
thanks for your time
this is the video...
Code: | http://img69.imageshack.us/i/su7.mp4/ |
|
|
Back to top |
|
 |
Geri Moderator
Reputation: 111
Joined: 05 Feb 2010 Posts: 5636
|
Posted: Mon Feb 21, 2011 12:58 pm Post subject: |
|
|
Save the location of Your gold and health and when You pick-up gold, decrease Your health with 1.
Or if You can calculate the gold's address from the health's address, just add a line to decrease the health when You pick-up gold.
_________________
|
|
Back to top |
|
 |
Smanettone83 Expert Cheater
Reputation: 3
Joined: 21 Feb 2011 Posts: 146 Location: Italia
|
Posted: Mon Feb 21, 2011 1:12 pm Post subject: |
|
|
Thanks friend, but how can i calculate the gold's address from health's address?
I've tryed to add the code to decrease the healt with "code injection" into the gold's address (in newmem) but it doesn't work....
How can i do it step by step?
Thanks for your patience
|
|
Back to top |
|
 |
Geri Moderator
Reputation: 111
Joined: 05 Feb 2010 Posts: 5636
|
Posted: Mon Feb 21, 2011 1:17 pm Post subject: |
|
|
Check if they are related to each other. For example if the gold's address is 00046560 and the health's address is 00046564, it isn't hard to calculate one of them from the other. Try to find a link between them if there is.
Or just allocate 4 bytes to store the health's address and decrese the amount on it when You get gold. But You need to do 2 code injection for that. One to save the health's address and one to change it when You get gold.
_________________
|
|
Back to top |
|
 |
Smanettone83 Expert Cheater
Reputation: 3
Joined: 21 Feb 2011 Posts: 146 Location: Italia
|
Posted: Mon Feb 21, 2011 1:45 pm Post subject: |
|
|
Do you remember that i am a noob? sorry but it's complicated for me because i never haven't do it before... Are there some video or tutorial that explains how to do it? i'm italian and for me it's complicated translate linguage... sorry.
|
|
Back to top |
|
 |
Geri Moderator
Reputation: 111
Joined: 05 Feb 2010 Posts: 5636
|
Posted: Mon Feb 21, 2011 2:08 pm Post subject: |
|
|
I have some tutorials with videos here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles
But they are about code injection and stuff generally, not about this specific problem. I don't speak italian so You will need to stick to English or find some italian source of help.
_________________
|
|
Back to top |
|
 |
Smanettone83 Expert Cheater
Reputation: 3
Joined: 21 Feb 2011 Posts: 146 Location: Italia
|
Posted: Mon Feb 21, 2011 2:38 pm Post subject: |
|
|
Unfortunately there are no Italian sources, only the base of cheat engine .. Thank you anyway ... I will try 'to squeeze my brain to learn;)
|
|
Back to top |
|
 |
|