The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Script for the Magikarp dude

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old August 23rd, 2014 (1:40 AM).
Codename Peace Codename Peace is offline
 
Join Date: May 2014
Location: Philippines
Gender: Male
Nature: Modest
Posts: 290
Can you change this so the man will give a Feebas?

Code:
'---------------
#org 0x16F75F
lock
faceplayer
checkflag 0x249
if 0x1 goto 0x816F8A2
showmoney 0x0 0x0 0x0
checkgender
compare 0x800D 0x0
if 0x1 goto 0x816F786
compare 0x800D 0x1
if 0x1 goto 0x816F794
end

'---------------
#org 0x16F8A2
msgbox 0x819DC9A 0x4 '"MAN: Well, I don't give refunds.\n..."
release
end

'---------------
#org 0x16F786
msgbox 0x819DA9A 0x5 '"MAN: Hello there, laddie!\nHave I ..."
goto 0x816F7A2

'---------------
#org 0x16F794
msgbox 0x819DB34 0x5 '"MAN: Hello there, sweetie pie!\nHa..."
goto 0x816F7A2

'---------------
#org 0x16F7A2
compare 0x800D 0x0
if 0x1 goto 0x816F888
checkmoney 0x1F4 0x0
compare 0x800D 0x0
if 0x1 goto 0x816F895
textcolor 0x3
setvar 0x4001 0x81
givepokemon 0x81 0x5 0x0 0x0 0x0 0x0
compare 0x800D 0x0
if 0x1 goto 0x816F7F6
compare 0x800D 0x1
if 0x1 goto 0x816F822
compare 0x800D 0x2
if 0x1 goto 0x816F8AC
end

'---------------
#org 0x16F888
msgbox 0x819DC07 0x4 '"No? You say no? I'm only doing thi..."
hidemoney 0x0 0x0
release
end

'---------------
#org 0x16F895
msgbox 0x819DC78 0x4 '"You'll need more money than that!"
hidemoney 0x0 0x0
release
end

'---------------
#org 0x16F7F6
call 0x816F86F
msgbox 0x81A56A7 0x5 '"Do you want to give a nickname to\..."
compare 0x800D 0x0
if 0x1 goto 0x816F861
call 0x81A8C27
fadescreen 0x1
hidemoney 0x0 0x0
special 0x9E
waitstate
goto 0x816F86A

'---------------
#org 0x16F822
call 0x816F86F
msgbox 0x81A56A7 0x5 '"Do you want to give a nickname to\..."
compare 0x800D 0x0
if 0x1 goto 0x816F84B
fadescreen 0x1
hidemoney 0x0 0x0
special 0x166
waitstate
lock
faceplayer
goto 0x816F856

'---------------
#org 0x16F8AC
textcolor 0x0
msgbox 0x819DC3E 0x4 '"There's no more room for any more\..."
hidemoney 0x0 0x0
release
end

'---------------
#org 0x16F86F
paymoney 0x1F4 0x0
updatemoney 0x0 0x0 0x0
fanfare 0x101
preparemsg 0x819DBD3 '"[player] paid an outrageous [$]500..."
waitmsg
waitfanfare
bufferpokemon 0x0 0x81
return

'---------------
#org 0x16F861
hidemoney 0x0 0x0
goto 0x816F86A

'---------------
#org 0x1A8C27
countpokemon
subvar 0x800D 0x1
copyvar 0x8004 0x800D
return

'---------------
#org 0x16F86A
setflag 0x249
release
end

'---------------
#org 0x16F84B
call 0x81A8C3C
goto 0x816F861

'---------------
#org 0x16F856
call 0x81A8C3C
goto 0x816F86A

'---------------
#org 0x1A8C3C
bufferboxname 0x0 0x4037
bufferpokemon 0x1 0x4001
checkflag 0x834
if 0x0 call 0x81A8C57
checkflag 0x834
if 0x1 call 0x81A8C82
return

'---------------
#org 0x1A8C57
special2 0x800D 0x165
compare 0x800D 0x1
if 0x1 goto 0x81A8C70
msgbox 0x81A5CF1 0x4 '"[buffer2] was transferred to\nSome..."
return

'---------------
#org 0x1A8C82
special2 0x800D 0x165
compare 0x800D 0x1
if 0x1 goto 0x81A8C9B
msgbox 0x81A5D31 0x4 '"[buffer2] was transferred to\nBILL..."
return

'---------------
#org 0x1A8C70
special2 0x800D 0x18A
bufferboxname 0x2 0x800D
msgbox 0x81A5D6E 0x4 '"BOX ["][buffer3]" on\nSomeone's PC..."
return

'---------------
#org 0x1A8C9B
special2 0x800D 0x18A
bufferboxname 0x2 0x800D
msgbox 0x81A5DB1 0x4 '"BOX ["][buffer3]" on\nBILL'S PC wa..."
return


'---------
' Strings
'---------
#org 0x19DC9A
= MAN: Well, I don't give refunds.\nYou knew what you were getting!

#org 0x19DA9A
= MAN: Hello there, laddie!\nHave I got a deal just for you!\pI'll let you have a secret POKéMON\n- a MAGIKARP - for just [$]500!\pSo, you'll buy it, am I right?

#org 0x19DB34
= MAN: Hello there, sweetie pie!\nHave I got a deal just for you!\pI'll let you have a secret POKéMON\n- a MAGIKARP - for just [$]500!\pSo, you'll buy it, am I right?

#org 0x19DC07
= No? You say no? I'm only doing this\nas a favor to you!

#org 0x19DC78
= You'll need more money than that!

#org 0x1A56A7
= Do you want to give a nickname to\nthis [buffer1]?

#org 0x19DC3E
= There's no more room for any more\nPOKéMON, it looks like.

#org 0x19DBD3
= [player] paid an outrageous [$]500\nand bought the MAGIKARP[.]

#org 0x1A5CF1
= [buffer2] was transferred to\nSomeone's PC.\pIt was placed in \nBOX ["][buffer1]."

#org 0x1A5D31
= [buffer2] was transferred to\nBILL'S PC.\pIt was placed in \nBOX ["][buffer1]."

#org 0x1A5D6E
= BOX ["][buffer3]" on\nSomeone's PC was full.\p[buffer2] was transferred to\nBOX ["][buffer1]."

#org 0x1A5DB1
= BOX ["][buffer3]" on\nBILL'S PC was full.\p[buffer2] was transferred to\nBOX ["][buffer1]."
Thanks!
Correct me if I'm wrong.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old August 23rd, 2014 (1:46 AM).
Mana's Avatar
Mana Mana is offline
 
Join Date: Jan 2009
Location: UK
Age: 31
Gender: Male
Posts: 10,075
Yes, just changed the hex number after the givepokemon (81) to Feebas' hex number: 148.

Of course there's also some mentions of MAGIKARP in the script - you could repoint and rewrite those parts of the script but the rest is exactly the same.
__________________
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old August 23rd, 2014 (1:47 AM).
DrFuji's Avatar
DrFuji DrFuji is offline
Heiki Hecchara‌‌
 
Join Date: Sep 2009
Location: Aussie
Age: 30
Gender: Male
Nature: Jolly
Posts: 1,693
Quote:
Originally Posted by Codename Peace View Post
Can you change this so the man will give a Feebas?
Change the current givepokemon command to 'givepokemon 0x148 0x5 0x0 0x0 0x0 0x0'.

While Feebas' National Dex number is 349 (0x15D), its in-game designation is position 328 (0x148). This is because a lot of Hoenn Pokemon positions in the third gen games are mixed up (probably correlating to which Pokemon were inserted first) and the 25 empty slots between Celebi and Treecko.
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old August 23rd, 2014 (2:00 AM).
Codename Peace Codename Peace is offline
 
Join Date: May 2014
Location: Philippines
Gender: Male
Nature: Modest
Posts: 290
Quote:
Originally Posted by Magic View Post
Yes, just changed the hex number after the givepokemon (81) to Feebas' hex number: 148.

Of course there's also some mentions of MAGIKARP in the script - you could repoint and rewrite those parts of the script but the rest is exactly the same.
Quote:
Originally Posted by DrFuji View Post
Change the current givepokemon command to 'givepokemon 0x148 0x5 0x0 0x0 0x0 0x0'.

While Feebas' National Dex number is 349 (0x15D), its in-game designation is position 328 (0x148). This is because a lot of Hoenn Pokemon positions in the third gen games are mixed up (probably correlating to which Pokemon were inserted first) and the 25 empty slots between Celebi and Treecko.
Alright, thanks, for your awesome replies.
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old August 23rd, 2014 (2:12 AM).
Codename Peace Codename Peace is offline
 
Join Date: May 2014
Location: Philippines
Gender: Male
Nature: Modest
Posts: 290
Can you help me, again, I have a problem, I realized, if I plan to choose the Hoenn Starters, as starters, I need a National Pokedex, for their entries, so can anyone post a script, so when Prof. Oak give a Pokedex he will upgrade it??
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old August 23rd, 2014 (2:17 AM).
DrFuji's Avatar
DrFuji DrFuji is offline
Heiki Hecchara‌‌
 
Join Date: Sep 2009
Location: Aussie
Age: 30
Gender: Male
Nature: Jolly
Posts: 1,693
Quote:
Originally Posted by Codename Peace View Post
Can you help me, again, I have a problem, I realized, if I plan to choose the Hoenn Starters, as starters, I need a National Pokedex, for their entries, so can anyone post a script, so when Prof. Oak give a Pokedex he will upgrade it??
Posting an entire script is a bit much, but giving the player a National Dex in FireRed is pretty simple. Just include the command 'special 0x16F' in the script and that will activate the National Dex.
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old August 23rd, 2014 (2:19 AM).
TheCurryGuy's Avatar
TheCurryGuy TheCurryGuy is offline
 
Join Date: Sep 2013
Gender: Male
Posts: 105
Quote:
Originally Posted by Codename Peace View Post
Can you help me, again, I have a problem, I realized, if I plan to choose the Hoenn Starters, as starters, I need a National Pokedex, for their entries, so can anyone post a script, so when Prof. Oak give a Pokedex he will upgrade it??
Check diegoisawesome script tutorial in the flags and specials section there is a
Number for the national Dex use that in place of give pokedex
__________________


currently working on


Reply With Quote
  #8   Link to this post, but load the entire thread.  
Old August 23rd, 2014 (2:24 AM).
Codename Peace Codename Peace is offline
 
Join Date: May 2014
Location: Philippines
Gender: Male
Nature: Modest
Posts: 290
Quote:
Originally Posted by DrFuji View Post
Posting an entire script is a bit much, but giving the player a National Dex in FireRed is pretty simple. Just include the command 'special 0x16F' in the script and that will activate the National Dex.
Um.... where in the script exactly??
Reply With Quote
  #9   Link to this post, but load the entire thread.  
Old August 23rd, 2014 (2:32 AM). Edited August 29th, 2014 by DrFuji.
DrFuji's Avatar
DrFuji DrFuji is offline
Heiki Hecchara‌‌
 
Join Date: Sep 2009
Location: Aussie
Age: 30
Gender: Male
Nature: Jolly
Posts: 1,693
Quote:
Originally Posted by Codename Peace View Post
Um.... where in the script exactly??
Anywhere in the script, it doesn't matter at all. You could even use the special command at the start of the game before you leave your room and the National Dex will be active once you receive the regular Pokedex from Oak, that's how much it doesn't matter :P
__________________
Reply With Quote
  #10   Link to this post, but load the entire thread.  
Old August 23rd, 2014 (2:37 AM).
Codename Peace Codename Peace is offline
 
Join Date: May 2014
Location: Philippines
Gender: Male
Nature: Modest
Posts: 290
Quote:
Originally Posted by DrFuji View Post
Anywhere in the script, it doesn't matter at all. You could even use the special command at the start of the game before you leave your room and the National Dex will be active once you receive the regular Pokedex from Oak, that's how much it doesn't matter :P
So, the script will say, "National Pokedex Activated" or something??
Reply With Quote
  #11   Link to this post, but load the entire thread.  
Old August 23rd, 2014 (2:56 AM).
DrFuji's Avatar
DrFuji DrFuji is offline
Heiki Hecchara‌‌
 
Join Date: Sep 2009
Location: Aussie
Age: 30
Gender: Male
Nature: Jolly
Posts: 1,693
Quote:
Originally Posted by Codename Peace View Post
So, the script will say, "National Pokedex Activated" or something??
Only if you assign a textbox to your script or something. The command is silent, just try it out in a test ROM if you're not sure about how to use it.
Reply With Quote
  #12   Link to this post, but load the entire thread.  
Old August 23rd, 2014 (3:10 AM).
Codename Peace Codename Peace is offline
 
Join Date: May 2014
Location: Philippines
Gender: Male
Nature: Modest
Posts: 290
Quote:
Originally Posted by DrFuji View Post
Only if you assign a textbox to your script or something. The command is silent, just try it out in a test ROM if you're not sure about how to use it.
Already tested it, thanks!
Reply With Quote
  #13   Link to this post, but load the entire thread.  
Old August 25th, 2014 (2:01 AM).
Codename Peace Codename Peace is offline
 
Join Date: May 2014
Location: Philippines
Gender: Male
Nature: Modest
Posts: 290
Let me warn you, this is not related to scripts.

Do you know any patch/method so that you can run inside buildings?
Reply With Quote
  #14   Link to this post, but load the entire thread.  
Old August 25th, 2014 (2:04 AM).
Mana's Avatar
Mana Mana is offline
 
Join Date: Jan 2009
Location: UK
Age: 31
Gender: Male
Posts: 10,075
Hackmew made a thread on it.

tdlr:

FIRERED: Using a hex editor 'goto' 0xBD494. Replace the 08 byte with 00.
__________________
Reply With Quote
  #15   Link to this post, but load the entire thread.  
Old August 25th, 2014 (2:48 AM).
Codename Peace Codename Peace is offline
 
Join Date: May 2014
Location: Philippines
Gender: Male
Nature: Modest
Posts: 290
Quote:
Originally Posted by Magic View Post
Hackmew made a thread on it.

tdlr:

FIRERED: Using a hex editor 'goto' 0xBD494. Replace the 08 byte with 00.
I don't know how to do that :(
And, does anyone know how to insert HP bars?
Reply With Quote
  #16   Link to this post, but load the entire thread.  
Old August 25th, 2014 (2:53 AM).
Mana's Avatar
Mana Mana is offline
 
Join Date: Jan 2009
Location: UK
Age: 31
Gender: Male
Posts: 10,075
Get a hex editor and it's two steps! :) HxD is a good one.
__________________
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:09 AM.