Username: Password:

Author Topic: [Share] Drop unwanted items.  (Read 3010 times)

Offline =Mindee=

  • Commander Shepard
  • BOT Developer Administrator
  • Dragon
  • *****
  • Posts: 2,818
  • Cookies 9022
  • We'll bang, OKAY?
    • View Profile
    • http://mindee-bot.com
[Share] Drop unwanted items.
« on: April 11, 2020, 12:38:45 pm »
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:
Code: [Select]
# 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
« Last Edit: April 11, 2020, 12:49:58 pm by =Mindee= »




Mindee-BOT creator, founder and developer.