Results 1 to 7 of 7

Thread: Why doe mafia fail to buy items from the mall sometimes?

  1. #1

    Default Why doe mafia fail to buy items from the mall sometimes?

    For example:

    Code:
    Searching for "drive-by shooting"...
    Search complete.
    Desired purchase quantity not reached (wanted 1, got 0)
    You need 1 more drive-by shooting to continue.
    ???

    This keeps messing up my scripts and it's a real pain in the ass. It doesn't explain anywhere why it failed...

  2. #2
    Developer
    Join Date
    Aug 2009
    Posts
    2,820

    Default

    get autoBuyPriceLimit

  3. #3
    Senior Member
    Join Date
    Apr 2009
    Posts
    1,820

    Default

    acquire/obtain (and all related automated retrieval) has a price limit above which it won't buy anything.
    There are some edge cases around items that cost more than the limit, but can be created from ingredients that individually cost less than the limit.

    "buy" doesn't, but it can fail if that item isn't available at all (or if you don't have enough money)

  4. #4

    Default

    I see. Thank you.

    I think it would be really helpful if it would display that reason in the CLI, though.

  5. #5
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    Central Virginia, USA
    Posts
    4,182

    Default

    I see. Thank you.

    I think it would be really helpful if it would display that reason in the CLI, though.
    Originally Posted by Malurth View Post
    I looked at that and while it is trivial to add some kind of hint about autoBuyPriceLimit in the message, there are numerous ways a purchase could fail and it might be misleading to change the message. AFAIK the message would also be generated if there were not enough of the requested item available in the mall or if there were, but you were on ignore lists. You can also run out of meat and generate that message. If the choice is between an incomplete message and a misleading one I'm inclined to leave this alone until someone does the work to determine for sure why a purchase request fails. For starters it needs to distinguish between failure because of autoBuyPriceLimit and failure due to the limit passed in with the (ash) buy command.
    You just vehemently agreed with me
    Originally Posted by Veracity View Post
    I agree with frono.
    Originally Posted by Veracity View Post

  6. #6
    Senior Member Pazleysox's Avatar
    Join Date
    Feb 2009
    Posts
    366

    Default

    I looked at that and while it is trivial to add some kind of hint about autoBuyPriceLimit in the message, there are numerous ways a purchase could fail and it might be misleading to change the message. AFAIK the message would also be generated if there were not enough of the requested item available in the mall or if there were, but you were on ignore lists. You can also run out of meat and generate that message. If the choice is between an incomplete message and a misleading one I'm inclined to leave this alone until someone does the work to determine for sure why a purchase request fails. For starters it needs to distinguish between failure because of autoBuyPriceLimit and failure due to the limit passed in with the (ash) buy command.
    Originally Posted by fronobulax View Post
    I personally don't see a problem with this. If mafia fails to buy something like that (and it has for me also), there's usually a good reason.

    There's times when I'm running the maximizer to do a one time thing and it would have cost me millions of meat to purchase something that wouldn't give me a great stat boost. It prompts me to look into why it failed, and figure out if I really need to buy that item or not.

    If the script, or area requires you to have that specific item to complete a specific part of a quest, then maybe the author of the script should code into the script that you don't have enough meat, and it's aborting (I do that)
    Scripts I have written:
    Unlock Dread A Script to save you a bunch of clicks.
    Standard Rollover Bonus A Script that shows best items to pull/equip for bonus turns.
    Standard PVP Bonus A Script that shows the best items to pull/equip for bonus PVP Fights.
    Rollover Management A Script that does all the daily deeds you might have forgotten, or might have missed.
    Chatbot A Chatbot script. Simple start for those who want/need one for their clan.
    Zap Wand A Dungeon of Doom ZAP WAND getting script.

  7. #7

    Default

    I looked at that and while it is trivial to add some kind of hint about autoBuyPriceLimit in the message, there are numerous ways a purchase could fail and it might be misleading to change the message. AFAIK the message would also be generated if there were not enough of the requested item available in the mall or if there were, but you were on ignore lists. You can also run out of meat and generate that message. If the choice is between an incomplete message and a misleading one I'm inclined to leave this alone until someone does the work to determine for sure why a purchase request fails. For starters it needs to distinguish between failure because of autoBuyPriceLimit and failure due to the limit passed in with the (ash) buy command.
    Originally Posted by fronobulax View Post
    Yeah, ideally it would display an error based on why it failed, but in the meantime perhaps you could add a hint with all of those reasons? Something like "(autoBuyPriceLimit may be too low, or you're out of meat, or that amount isn't available for you to buy in the mall)," if those are indeed all the reasons.

    I mean, doesn't really matter to me since now I know, but I imagine it'd be helpful for others.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •