It exists, but I don't know where that is. It is tagged for the items Ether1, Ether2, and Elixir (and Megalixir in FF4A).
I've been looking for that bit FOR-FREAKIING-EVER. I hope someone finds it. I'm willing to bet since Square coded this game retarded that there is a 256 byte table that signifies which item sells for 1GP. Yes, no
Title: Re: 1GP Sell Price Bit
Post by: Phoenix on March 12, 2008, 05:13:46 PM
It's possible that this is similar to the hard-coded magic spells (summon spells, Life2). I think that the subroutines (in ASM) that run through those do a specific check for the spell number, and if it matches, do something special. Since there's only three items, the subroutine called when selling might also run through a check to see whether the item being sold is one of those three. If that's the case, it makes it a whole heck of a lot harder to find and change, so I hope there's a table somewhere.
Title: Re: 1GP Sell Price Bit
Post by: Deathlike2 on March 12, 2008, 05:22:59 PM
Well, that makes me kinda wonder about Summon spells and if they use a bit or a hardcoded range to determine it is a summon (for the internal value multiplier)... although, it's curious how they are listed twice in the spell list.. maybe that's producing the x8 spell base instead of the x4 that all normal spells go through...
Title: Re: 1GP Sell Price Bit
Post by: Phoenix on March 12, 2008, 06:39:26 PM
It's possible, although I think the first spell (the one that's actually added to Rydia's list) is just hard-coded to call upon the second one (which is counted as an "enemy attack"). I think it's hard-coded because there's no bit that I can see that would determine which calls which. I guess it would be clever to do that just to produce the x8 base, but it seems awfully convoluted just to get that effect.
Title: Re: 1GP Sell Price Bit
Post by: JCE3000GT on September 08, 2009, 09:53:14 PM
Anyone ever find that 1GP bit?
Title: Re: 1GP Sell Price Bit
Post by: Dragonsbrethren on September 08, 2009, 10:12:57 PM
I don't have a decent hacking setup here, but try running Geiger's tracer when you try to sell one of those items in the shop. Open the output file and look for CMP, CPX, or CPY instructions comparing to the value of any of the items that sell for 1 gil. As Phoenix said, that's likely how they're stored.
Title: Re: 1GP Sell Price Bit
Post by: Lenophis on September 09, 2009, 02:29:07 AM
$01/C97D A5 5D LDA $5D ($015D) (Item index) $01/C97F C9 D4 CMP #$D4 (Compare to D4) $01/C981 B0 0A BCS $C98D (Branch if equal or greater) $01/C983 C9 D1 CMP #$D1 (Compare to D1) $01/C985 90 06 BCC $C98D (Branch if smaller) $01/C987 A9 01 LDA #$01 (Only items D1 (Ether1), D2 (Ether2), and D3 (Elixir) will make it here) $01/C989 85 5A STA $5A ($015A) (Set price to one) $01/C98B 64 5B STZ $5B ($015A) Courtesy of Novalia Spirit.
Title: Re: 1GP Sell Price Bit
Post by: Deathlike2 on September 09, 2009, 09:37:56 AM
Heh, it's all about relative location. Figures it's that silly.
I think FF4A has a bit for those items though.
Title: Re: 1GP Sell Price Bit
Post by: Dragonsbrethren on September 09, 2009, 12:18:04 PM
I wouldn't call it silly; that's exactly how I would've done it. It's three items, no sense in dedicating a piece of item data to them (of course, there are a few unused/seemingly useless used bits that could be repurposed), it's not like this code is bogging down the shop or anything. There should be something for key items around there too; probably everything below the Gysahl Whistle, plus the Legend (probably its own exception). Key items might have a table somewhere, but I still doubt it; they are a bit more involved than the ethers though (yellow in the treasure/shop menu).
Title: Re: 1GP Sell Price Bit
Post by: Deathlike2 on September 09, 2009, 09:53:25 PM
I know its practicality in this game (and many others), so :P.
I suspect it's not a table that is used to determine key items, but a similar check with an extra special check for the Legend Sword. IIRC, all of the key items are lumped at the end of the item list, it just happens that the Legend Sword is not.
Title: Re: 1GP Sell Price Bit
Post by: Dragonsbrethren on September 10, 2009, 10:57:09 AM
I forget, can you sell the Pass/Member's Writ? That falls between the two Gysahl items, so there might be a check for that one as well.
Title: Re: 1GP Sell Price Bit
Post by: Deathlike2 on September 10, 2009, 12:12:28 PM
Yes, the Pass is the only special key item that you can buy or sell. I was hoping for more than a dance there....
Title: Re: 1GP Sell Price Bit
Post by: Dragonsbrethren on September 10, 2009, 12:31:16 PM
Yes, the Pass is the only special key item that you can buy or sell. I was hoping for more than a dance there....
You get an augment in the dressing room that doubles the gil you get from battle in the DS version.
The After Years mixed it up a bit, it's a little more amusing:
[spoiler]Evidently, the original dancers are still employed, since a bunch of old women run out and steal Palom. The screen then blanks out, which is slightly disturbing. Afterward, you can go into the dressing room and buy a Member's Card, which lets you go down another level. In there, you get normal dancers, who force Leonora to dance with them. You can buy a whole set of status blocking (but awful stats) Queen's equipment for Leonora in here, and a VIP Card, which costs you all of your money (you're capped at 99999 in the tales). This gets you into the bottom level, where the dancers spell out Palom's name. After that, you get a black tail as your reward for wasting so much gil.[/spoiler]
Title: Re: 1GP Sell Price Bit
Post by: Phoenix on September 10, 2009, 05:54:28 PM
If anyone finds the check on the Legend sword, can they post it? I just realized I changed my items and it's not really a key item in my hack.