Overweight Scavenger by oakman8490
Description from the author:
## This Section goes at the top, before the looping part of your background script ##
@setvar! goldAmountToDrop 2000
## This Section goes in the looping part of your background script ##
if weight > maxweight
clearall
hotkey "Scavenger Enable/Disable"
if insysmsg "Scavenger Agent Disabled"
// Scavenger Off
elseif insysmsg "Scavenger Agent Enabled"
wait 500
hotkey "Scavenger Enable/Disable"
endif
while weight > maxweight
if findtype "gold coin" backpack as item
lift item goldAmountToDrop
droprelloc 0 0
wait 200
if insysmsg "cannot drop anything"
drop backpack -1 -1 -1
endif
wait 650
replay
else
overhead "We are overweight but cannot drop anything" 34
endif
endwhile
endif If you use a Scavenger Agent (namely for picking up gold). This snippet should be added into your background script to drop gold when overweight, and switch off the Scavenger.








