This script will drop unwanted items from your backpack when bot loots them.
For example you want to loot only "Ruby", but bot also loots "Hell crystal", because "Ruby" and "Hell crystal" have same id and look.
Script will drop "Hell crystal" from your backpack.
Script:
# List of items which should be dropped if looted.
dropItemsList = (
'Hell crystal', 'Twinkling emerald'
)
def onReceiveItemDescription(itemId, name):
if name in dropItemsList:
script.StatusMessage('Dropping item: ' + name)
return 1 # Drop this item.
return 0 # Don't drop this item.
You just need to edit dropItemsList