added filter to just sell to npc's #21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Thanks for another contribution!
Unfortunately I think this one might have a bit of a logic bug, and could do with a couple of tweaks to neaten it up.
calcDataat ~line 279 also means the other checks, such as for unprofitable/unaffordable/manipulated items, are skipped. I'm not sure if this is what you intended? If not, I think a better way would be to remove thecalcData.push()at ~line 279, then further down where you haveif (npcDataOnly == false)instead beif (npcDataOnly == false || npcSellPrices.has(id)). That will still ensure that only NPC-sellable items are included whennpcDataOnlyis true, but all the other checks still get applied as well, and you'll see items that could have been sold at the Bazaar for more.i think its fixed now (hopefully) thanks for finding those errors
one thing i changed though was
if (npcDataOnly == false || npcSellPrices.has(id))will show items that are sellable to npcs but are better to sell to bazaar however i made itif (npcOnlyFilter == false || item.sellPrice == npcSellPrices.get(id))that way it will only show items that are better to sell to npcs than bazaarLooks good, thanks again!