11-28-2020, 06:05 AM
I made a cavebot, and I would like a code that would check if there are X platinum coins in the backpack, when it reaches that value X it goes in the bank, deposits and goes back to the hunt.
I used in LUA SETUP:
Code:
SUPPLY_NAME = 'platinum coins'
SUPPLY_BP = 'backpack'
SUPPLY_MIN = 10
and on Action:
Code:
if itemcount (SUPPLY_NAME, SUPPLY_BP)> = SUPPLY_MIN then
gotolabel ('deposit')
return
end
and when he gets to that part, he misses, or he always goes to my 'start' label or always to the 'deposit' label, regardless of the number of platinum coins.
I used in LUA SETUP:
Code:
SUPPLY_NAME = 'platinum coins'
SUPPLY_BP = 'backpack'
SUPPLY_MIN = 10
and on Action:
Code:
if itemcount (SUPPLY_NAME, SUPPLY_BP)> = SUPPLY_MIN then
gotolabel ('deposit')
return
end
and when he gets to that part, he misses, or he always goes to my 'start' label or always to the 'deposit' label, regardless of the number of platinum coins.