The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Script Fire Red Pokemart wrong item shown (https://www.pokecommunity.com/showthread.php?t=464411)

Naglu January 19th, 2022 8:46 AM

Fire Red Pokemart wrong item shown
 
Hello everybody, i have a small issue with a new vendor in the pokemart
i added a new guy in a pokemart and it works perfectly beside...him not showing one item but another

what i mean

this is the code

Spoiler:
'---------------
#org 0x810000
special 0x187
compare LASTRESULT 0x2
if 0x1 goto 0x8810026
lock
faceplayer
preparemsg 0x8810029 '"Hi, there!\nMay I help you?"
waitmsg
pokemart 0x881005B
msgbox 0x8810046 MSG_KEEPOPEN '"Please come again!"
release
end

'---------------
#org 0x810026
release
end


'---------
' Strings
'---------
#org 0x810029
= Hi, there!\nMay I help you?

#org 0x810046
= Please come again!


'-----------
' MartItems
'-----------
#org 0x81005B
#raw word 0xCA
#raw word 0xD0
#raw word 0x149
#raw word 0x56
#raw word 0x85
#raw word 0x0


the issue lies in the item 0x149 (TM41)
the game shows me the item 0x49 (Guard Spec)

i tried with other items like 0x151 and it shows me the 0x51 (TM 49 and fluffy tail)

for some reason it doesn't read the 1 before
why does this happen? i rewrote the code multiple times and it always does this
BUT
if i just add the 0x149 to another mart it works
or at least...it shows the item but all the other items have their description messed up
they work...but it's all messed up

i need the new vendor to work too because i need to add a lot of items and if i do to a pre-existing one it bugs very badly

thanks in advance


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


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.