WiiRd forum

Wii & Gamecube Hacking => Wii Game hacking help => Topic started by: savage on September 19, 2011, 04:07:51 AM

Title: max points code
Post by: savage on September 19, 2011, 04:07:51 AM
im trying to make a max/inf points code, i must be doing somthing wrong, when ever i asm it, it either 1 freezes or 2 you cant use your weapon and your points show 30000A/15532. any help would be nice

[spoiler](http://i1082.photobucket.com/albums/j362/xSAVAGExhacks/ASMhelp.png)[spoiler/]
Title: Re: max points code
Post by: goemon_guy on September 19, 2011, 11:24:49 AM
You could try this:

lwz r12,168(r5)
lis r12, 0xFFFF
ori r12,r12, 0xFFFF
stw r12,168(r5)

Title: Re: max points code
Post by: savage on September 20, 2011, 02:49:56 AM
i think i tried that, and the weapon would not cause damage, ill try it again i was half asleep last night.

thanks for the reply

edit:i kept forgeting to put 168 in place....  \


thanks goemon_guy
Title: Re: max points code
Post by: Bully@Wiiplaza on September 20, 2011, 06:59:29 AM
Quote from: goemon_guy on September 19, 2011, 11:24:49 AM
lwz r12,168(r5)
lis r12, 0x7FFF
ori r12,r12, 0xFFFF
stw r12,168(r5)
lwz r5,168(r5)

- including the original instruction is never bad
- max. value is 7FFFFFFF (FFFFFFFF would be -1)
- we don´t need to lwz r12,168(r5) if we overwrite r12 with a specific value anyways