VladYvhuce
Member
It seems like there should be a way for mafia to discard things like Pretty Flower, destroyed hellseal items, other things that have a discard link. Is there no way to do this, or is this an oversight?
foreach junk in $items[burst hellseal brain, shredded hellseal hide, torn hellseal sinew] {
while (item_amount(junk) > 0) {
visit_url("inventory.php?action=discard&whichitem=" + junk.id + "&pwd");
}
}
Thank you.Equipment can generally be smashed for powder/nuggets/wads, and many items can be autosold for meat. However, there are also items that can't be dealt with in either of those ways but that can just be deleted via a "discard" link in the inventory. As far as I'm aware, KoLmafia doesn't give access to that functionality, neither in ASH, nor in CLI command, nor in the item manager. The alternative right now is visit_url:
Code:foreach junk in $items[burst hellseal brain, shredded hellseal hide, torn hellseal sinew] { while (item_amount(junk) > 0) { visit_url("inventory.php?action=discard&whichitem=" + junk.id + "&pwd"); } }