Purchase availability command?

Theraze

Active member
I'm wondering if there's any command to check about the amount of an item you can currently purchase, similar to item_amount and the other such commands. If not, should I make a FReq or is this an impossible dream? :)

I'm thinking that if I need to make a FReq, this is what to request:
For is_npc_item objects, it would need to validate their actual availability, for those items that mafia tracks... hippy store being open, either in muscle sign or have the bugbear outfit, etc.
For malled items, it would be simpler... just need to compare (can_interact && (my_ascensions > 0 || my_level > 4)) and then divide my_meat by cheapest...
 
Seems pointless for the mall, except for those items that have thousands in the mall at 2 * autosell. If you have 5 in the mall at 5,000 and 5 at 10,000, and you have 50,000 Meat, what is purchase amount? 10, since 5,000 * 10 is 50,000? Or 7, which is the real number you can purchase. You want the latter - an accurate count? Hello mallbot!

Please do not make an FR. I don't REALLY like marking them Rejected.
 
I'm mostly just wondering for NPC items, if there's a way of quickly finding if an item is available. I'd like to avoid using retrieve_item to find out if items are available, since that gets a touch expensive.

My initial thought was a boolean similar to retrieve_item that just tells you whether or not the request is possible, and then I started to think about possibilities like burning down all your meat trying to get the ingredients and not actually being able to afford something else, and then...

A similar desire (less useless, maybe) would be returning the meat that it should need to retrieve the amount of the item you're requesting, and -1 if it's actually impossible/fails.
 
Last edited:
Back
Top