Pages: 1
Posted on 01-12-15, 10:39 am
Red Cheep-cheep
Permanently Banned: Rereged

Karma: 13
Posts: 169/214
Since: 03-04-13
Is there are function which you can use to check the player councount?
Maybe I can use getCoinsForPlayer (0x202040C) or setCoinsForPlayer (0x202041C), but how can I use setCounsForPlayer to change the coincount of the player?
I don't think that I can simply create a variable which gets the amount which is returned by getCoinsForPlayer(), edit it and set it with setCoinsForPlayer(). Do you know something about that?
_________________________
Thanks
~~~Stunt_LP~~~
ASM Hack we're making in the moment:
- Info Block from SMW
It will be shared with the community
Posted on 01-12-15, 03:08 pm (rev. 1 by RicBent on 01-12-15, 03:12 pm)
Mariomaster

Karma: 8528
Posts: 407/1681
Since: 06-09-12
Easy way:

int *Coins = (int*) (0x0208B37C);

yourVariable = *Coins

*Coins = yourValue

dunno if that's an int but works
_________________________
GitHub - Kuribo64 - YouTube
Posted on 01-12-15, 06:03 pm (rev. 2 by Stunt_LP on 01-13-15, 11:26 am)
Red Cheep-cheep
Permanently Banned: Rereged

Karma: 13
Posts: 170/214
Since: 03-04-13
Oh yeah, that's pretty easy actually. And I think it is an int because you can't have 1 and a half coin I think
I will edit this post if I tested it.

EDIT: I just wanna know, what is saved in 0x0208B37C?
_________________________
Thanks
~~~Stunt_LP~~~
ASM Hack we're making in the moment:
- Info Block from SMW
It will be shared with the community
Posted on 01-13-15, 05:35 pm (rev. 2 by RicBent on 01-13-15, 05:40 pm)
Mariomaster

Karma: 8528
Posts: 408/1681
Since: 06-09-12
The number of coins???

To find variables like these try to use the ramwatch feature in desmume.

Before just copypasting please google what a pointer is
_________________________
GitHub - Kuribo64 - YouTube
Posted on 01-13-15, 05:42 pm
Red Cheep-cheep
Permanently Banned: Rereged

Karma: 13
Posts: 171/214
Since: 03-04-13
I know what a pointer is, but I simply couldn't find 0x0208B37C in the symbols.x...
_________________________
Thanks
~~~Stunt_LP~~~
ASM Hack we're making in the moment:
- Info Block from SMW
It will be shared with the community
Posted on 01-13-15, 05:47 pm
Mariomaster

Karma: 8528
Posts: 409/1681
Since: 06-09-12
Ok

Try to use the ram watch function and then ida pro to find new functions and variables.
The symbols.x doesn't contain everything that's inside the ida database. So you can search in it, too
_________________________
GitHub - Kuribo64 - YouTube
Pages: 1