Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2012-09-30 14:23:30

hacker
Member
From: Batam Grove City
Registered: 2011-07-30
Post 262/547
Website

Gym Leader Prize

Does anybody know, how to change gym leader prize in Gold?
ex: Change Falkner prize to give Hiro TM01 or else if Hiro win the match.
I know that possible, but, where the offset of leader data?
I've search them with Megamap to see pointer, then I get the offset and going to it...
But, there's no item script for the leader :(
Somebody can help me?


[POKÉMON JOURNEY] hacking planning 2012
Visit my website  www.pokemonhackingblog.blogspot.com

Offline

#2 2012-09-30 15:57:49

Gallego13
Member
Registered: 2011-12-11
Post 59/94

Re: Gym Leader Prize

Simply open the script in PKSV and change the giveitem (or verbosegiveitem) byte to the value of the item that you want him to give. It might appear as “verbosegiveitem itemname 1” where itemname is the name of another item that would be given in the GBA games.
Simply change that name for the value of the item you want (example: 01 for Masterball). You can find a list of the values somewhere in the Gen II section or in Cross-Generational section.

Offline

#3 2012-10-06 15:02:49

hacker
Member
From: Batam Grove City
Registered: 2011-07-30
Post 264/547
Website

Re: Gym Leader Prize

@Gallego13, can you explain me with hex editor?
Because my johtomap can't be run,so I can't use PKSV too.. :(


[POKÉMON JOURNEY] hacking planning 2012
Visit my website  www.pokemonhackingblog.blogspot.com

Offline

#4 2012-10-06 16:31:00

Gallego13
Member
Registered: 2011-12-11
Post 61/94

Re: Gym Leader Prize

I think you should check your PC's .dlls and updates because it's not normal that almost any tool works for you :P
Anyway, you need to check the offset for the sprite you want, look for the item's byte and change it.

Offline

#5 2012-10-06 22:42:32

hacker
Member
From: Batam Grove City
Registered: 2011-07-30
Post 269/547
Website

Re: Gym Leader Prize

Yeah, I've found leader falkner offset and I'am going with hex editor..
But, there's no item number :(
it just name, pokemon data, and pokemon move,


[POKÉMON JOURNEY] hacking planning 2012
Visit my website  www.pokemonhackingblog.blogspot.com

Offline

#6 2012-10-06 22:53:34

y0r124
Member
From: Anywhere.
Registered: 2012-09-12
Post 79/331
Website

Re: Gym Leader Prize

Maybe item hex placed in another place

Last edited by y0r124 (2012-10-06 22:54:06)


my FB

Lurking somewhere here...

Offline

#7 2012-10-06 22:56:08

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 1,644/3,471

Re: Gym Leader Prize

Okay, you haven't found his script, you've found his trainer data. His script is located at 0x15812F. So you would go there in a hex editor and look for 0x9D 0xDF 0x01. This translates to:
verbosegiveitem 0xDF 0x1 ' Gives you one TM 31 Mud-Slap. As we can see, we find this code at 0x158170.

To change the item he gives you, just change 0xDF to the item number of whichever item number you want.

Also, as a side note, PKSV does not load his script properly anyway. I forget which one of the commands it is, probably the "phone call on next map" or whatever it calls it, that it gets wrong causing the rest of the script to decompile incorrectly, and making it impossible to actually edit his item in PKSV anyway.

Offline

#8 2012-10-06 23:08:36

hacker
Member
From: Batam Grove City
Registered: 2011-07-30
Post 273/547
Website

Re: Gym Leader Prize

@Mateo, Thank's a lot!
That's very helpful :)
Hmm., btw is that leader script is starting at 0x15812F?


[POKÉMON JOURNEY] hacking planning 2012
Visit my website  www.pokemonhackingblog.blogspot.com

Offline

#9 2012-10-06 23:12:57

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 1,649/3,471

Re: Gym Leader Prize

That's the main script that his event data points to. His trainer data is called from inside that script, and there are some sub-scripts that run based on things like talking to him again and the like.

Offline

#10 2012-10-06 23:17:20

hacker
Member
From: Batam Grove City
Registered: 2011-07-30
Post 275/547
Website

Re: Gym Leader Prize

Hmm., yeah, I did it!
Thank you so much, @Mateo! :)
Waw, this is gonna be fun!


[POKÉMON JOURNEY] hacking planning 2012
Visit my website  www.pokemonhackingblog.blogspot.com

Offline

Board footer

Powered by FluxBB