Mabinogi World Wiki is brought to you by Coty C., 808idiotz, our other patrons, and contributors like you!!
Want to make the wiki better? Contribute towards getting larger projects done on our Patreon!

Forum - NPC Resell glitch?

Overview > Mabinogi World Wiki > Help & Reports > NPC Resell glitch?
[#1273]

I've noticed that when I add a BuyPrice value that is less than 10000, the automatic NPC Resell value does not calculate and outputs as "? G".
Because of this, most of the items in NeedMarket actually do have a market value on their data page, even though on their main page it seems like they don't.
I'm wondering if it has to do with the lack of a comma? Since it will auto-input 1,000 but not anything below that... just a guess, though.

Posted by Kiwibasket on 24 February 2019 at 19:09.
Edited by Kiwibasket on 24 February 2019 at 19:11.

We don't know the formula of sale prices under 10k (I think it's between 1k and 10k or something like that), because it's some sort of curved scale up to 10k where 10k+ is just price/10.

For that reason, the sale price for such items has to be entered manually. If someone wants to figure out the formula that would definitely be awesome (I can add it to the template if they're uncomfortable doing so).

Posted by Kadalyn (administrator) on 26 February 2019 at 11:40.

Oooh, that's weird. So would that mean for under 10k items, we'd have to check in-game for the sale prices?

Posted by Kiwibasket on 27 February 2019 at 09:16.

Simply put, yes. You can attempt to sell it then cancel the transaction to get the price.

I took a look to double-check, this is what we have currently:

{{MouseoverBox|{{#if:{{{SellPrice|}}}|{{formatnum:{{{SellPrice}}} G}}|{{#if:{{{BuyPrice|}}}|{{#ifexpr:{{{BuyPrice}}}>=10000|{{formatnum:{{#expr:{{{BuyPrice}}}/10}}}} G|{{#ifexpr:{{{BuyPrice}}}=0|0 G|{{#iferror:{{#expr:{{#if:{{{Resell|}}}|{{{Resell}}}|?}}}}|? G[[Category:NeedMarket]]|{{formatnum:{{{Resell}}}}} G}}}}}}|}}}}|BuyPrice: {{ifempty|{{{BuyPrice|}}}|-}} G<br />SellPrice: {{ifempty|{{{SellPrice|}}}|-}} G<br />Predicted SellPrice: {{formatnum:{{#ifexpr:{{{BuyPrice}}}<=100|{{#expr:{{{BuyPrice}}}/2}}}}{{#ifexpr:(100<{{{BuyPrice}}}) and ({{{BuyPrice}}}<=1000)|{{#expr:({{{BuyPrice}}} / (2 + ({{{BuyPrice}}} - 100) * 2 / 900))}}}}{{#ifexpr:(1000<{{{BuyPrice}}}) and ({{{BuyPrice}}}<=10000)|{{#expr:({{{BuyPrice}}} / (4 + ({{{BuyPrice}}} - 1000) * 6 / 9000))}}}}{{#ifexpr:{{{BuyPrice}}}>10000|{{#expr:{{{BuyPrice}}}/10}}}} G}}}}

This says (BP = BuyPrice):

  • If the BP is over 10000; resell price is BP/10
  • If the BP is 0 so is the resell price
  • If the BP is under 100; we think the resell price is BP/2
  • If the BP is between 100 and 1000; we think the resell price is BP / (2 + (BP - 100) * 2 / 900))
  • If the BP is between 1000 and 10000; we think the resell price is BP / (4 + (BP - 1000) * 6 / 9000))

I believe these latter parts are just approximations rather than attempts at the real formula.

Posted by Kadalyn (administrator) on 3 March 2019 at 18:00.