Can't be sold item - Printable Version +- FF6 Hacking (https://www.ff6hacking.com/forums) +-- Forum: Discussion Forums (https://www.ff6hacking.com/forums/forum-5.html) +--- Forum: Magitek Research Facility (https://www.ff6hacking.com/forums/forum-9.html) +--- Thread: Can't be sold item (/thread-2803.html) |
Can't be sold item - tsushiy - 02-17-2015 Hello, everyone. In FF6, I can sell all the items. Is it possible to not sell a particular item?(For example, Such as those you have set the price to 0) If, if some people can be seen, please lend force. Thank you. RE: Can't be sold item - SSJ Rick - 02-17-2015 wow I honestly wanted something like this myself, but I personally wouldn't know how to go about it sorry RE: Can't be sold item - abyssonym - 02-17-2015 The ASM hack wouldn't be too difficult. The "sell" function is at C3/B708, you'd need to insert a check to see if the value is zero, and abort if so. EDIT: Actually, in the Japanese version, it appears to be at C3/C65F, rather than C3/B708... RE: Can't be sold item - tsushiy - 02-18-2015 >>pocoloco thank you! Sale impossible setting Why to FF6 is, I Would do was not originally... >>abyssonym Address of the information, thank you! Based on the information, I will try to trial and error. RE: Can't be sold item - SSJ Rick - 02-18-2015 good luck man RE: Can't be sold item - Catone - 02-18-2015 Just glancing at it I think your gonna have to go a little earlier in the process than that. By the time you reach B708 you've already selected the item and set the number to sell, there is already a BEQ command (branch if equal to zero) at C3/B63F that jumps to a line to "make buzzer sound". Point being, I think that might be a check for item amount owned? (When would an item be listed with a count of 0 though? Or is that loading the item list and buzzing if you have 0 items at all?) Maybe could tell that to check price instead and buzz if value zero value. Still I THINK C3/B708 is to late in the process to block selling(I admit I would never have thought of using a 0 price to check against either but I agree good idea). The JSR command at line C3/B63A tht looks to load your item list might be a good place to grey out zero value items though. Sorry if I'm completely off track here and just causing confusion, but thats what I see it doing. Just dont put to much faith in my assumptions for your own sake. RE: Can't be sold item - GrayShadows - 02-18-2015 What it's actually checking for there with that BEQ at B63F is if it's a null item -- FFh -- aka an empty slot. You're absolutely right that /B708 is (probably) too late in the process; I'm trying to find where it loads item information so I can find where the item price is stored. Looking at it, the code doesn't actually load the item price until the start of the function at /B708, with a jump to C3/BB65, which makes it difficult to check against it; I haven't tracked down where it actually draws the sell menu yet, which is where we'd need to look at greying out items. RE: Can't be sold item - abyssonym - 02-18-2015 The hack I was thinking of would allow you to select the item and set the amount sold, it would just cancel (with a buzzer noise or something) before actually selling it. For this kind of implementation, /B708 isn't too late, because the item only gets removed from your inventory at /B72D. It's not the most user-friendly implementation but it gets the job done. RE: Can't be sold item - Catone - 02-18-2015 The values here seem to point to where it goes after selecting "Buy" "Sell" or ... Exit (Not sure on the last one, B7A0 seems to take a long path for an "exit" choice) Code: C3/B79A: A3B7 If you replace C7B7 with A3B7 it will open the shop's item list when you select sell. Which seems to point to C7B7 (or C3/B7C7) as being the start of the "Sell" process. Which goes through a ton of jumping in circles. Eventually leads to this (Every Jump seems start at a different LDX command though): Code: C3/6A15: A600 LDX $00 I can't read well enough to tell exactly, but looks like a list being loaded. Maybe? On another note, depending on what kinda item you wanted to block the selling of, couldn't you mimic the "is a tool" check at C3/B7E6? (This is the check to stop you from buying more than one of a tool btw). Sure you'd be limited to one type of item being blocked but would get around having to check the price at a strange location. Of course, I'm not sure just how easy a price check would be so, that might be a worse idea. And yes, stopping it at /B708 would stop the sale, based on price, effectively for the very reason you said... but its more fun to do it the hard way, and maybe not to difficult other than finding where to stop it. I have to wonder, in a not directly related subject, if it would be possible to influence price based on a timer? Refering to Lockirby's day/night project. There are alread checks for who's leading the party, why would it be much different? |