Mindee-BOT

Mindee-BOT Community => Share => Scripting => Useful Parts => Topic started by: =Mindee= on February 25, 2020, 10:59:32 pm

Title: [Share] Drop items not in autoloot.
Post by: =Mindee= on February 25, 2020, 10:59:32 pm
Sometimes bot autoloots wrong items by accident (lag).

You can fix it by using this callback:

Code: [Select]
def onReceiveAddItemToBackpack(slot, itemId):
if not script.IsInLoot(itemId): # Drop items not in autoloot list.
script.DropItem(slot)

This will work in 1.9.63 and higher versions.

BOT will drop item on free spot.
Title: Re: [Share] Drop items not in autoloot.
Post by: rocketm2 on February 29, 2020, 07:04:03 am
not risk of dropping another items?  [ohhbitch] [hmmm] [what?]
Title: Re: [Share] Drop items not in autoloot.
Post by: =Mindee= on February 29, 2020, 03:45:19 pm
Of course there is a risk. But not for items already in backpack.