Inf some things

Started by Stuff, June 15, 2012, 11:20:05 PM

Previous topic - Next topic

Stuff

I figured it would be similar to my codes for kirby skills, where I do a search for kirby's skills, and then a WBP on it and find that the same function writes to it regardless of how it changes, but the caller is different for each situation.

But that's not the case for the pouch in MH3. I go to  the pouch and WBP it, and the BP happens to be where "Inf Items" was. So I thought, maybe the caller. I was trying to make "pickaxes don't break" so I imagined something checks some random number to see if it should break or not and then it'll do stuff and subtract 1 from the pickaxes. No. The caller was some ridiculously distant function that took forever for me to get back to "Inf Items", and nopping it didn't stop pickaxes from breaking. It instead made it impossible to receive anything from the rock. >.>

The stuff:
[spoiler]8004BB60:  38000063   li   r0,99 #inf items
8004BB64:  B01D0002   sth   r0,2(r29) #WBP

Call Stack
8004BB64
80272EF4
8024BC88
8024BCF0
8024C3B4
8025F268
80260A00
8026808C
8028CCB0
8028E160
8028DE88
8004178C
80046DB8
8003F3F4
80006474


80272ED8:  40810034   ble-   0x80272f0c
80272EDC:  5723043E   rlwinm   r3,r25,0,16,31
80272EE0:  7F440734   extsh   r4,r26
80272EE4:  38BE0278   addi   r5,r30,632
80272EE8:  38C00018   li   r6,24
80272EEC:  38E00001   li   r7,1
80272EF0:  39000000   li   r8,0
80272EF4:  4BDD8B49   bl   0x8004ba3c[/spoiler]
Is there another way to do this? Cuz I'm just gonna let it go and tell the requester to use "inf items". I just wanted to do this so I could hopefully see probability in action.
.make Stuff happen.
Dropbox. If you don't have one, get it NOW! +250MB free if you follow my link :p.

Mod code Generator ~50% complete but very usable:
http://dl.dropbox.com/u/24514984/modcodes/modcodes.htm

Bully@Wiiplaza

On my Infinite Items code, I call stack´ed until I found the master instruction which was li 5, -1
changing to li 5, 0 would make it work only for using items and not anything else. Hooking there where you marked is bad because of trashing/receiving items being affected. Not too sure about your actual question though...
My Wii hacking site...
http://bullywiihacks.com/

My youtube account with a lot of hacking videos...
http://www.youtube.com/user/BullyWiiPlaza

~Bully

Stuff

Probably the callers for li r5, -1 would be the different reasons for an item to get expensed. I guess I'll take a look at that later.
.make Stuff happen.
Dropbox. If you don't have one, get it NOW! +250MB free if you follow my link :p.

Mod code Generator ~50% complete but very usable:
http://dl.dropbox.com/u/24514984/modcodes/modcodes.htm

F@LL3N

What about just basic address with the value 60000000?


Sent from my iPod touch using Tapatalk