Olá, preciso de uma action que checka as drill bolts e as strong mana! ja testei 2 e nao esta funcionando, as 2 bugaram quando nao tem potion ele só para em vez de ir no refill, alguem pode me ajudar?

as action que eu sei:
if itemcount(BoltsType) <= BoltsMin or itemcount(MPtype) <= MPmin or cap <= CapToLeave then
gotolabel("Refill")
end
else
gotolabel("Hunt")
end

e essa:

local minimumAmmunition = 200 -- amount of bolts to leave on
local minimumManas = 80 -- amount of manas to leave on
local minimumCapacity = 80 -- cap that you want to leave on
local

if itemcount("drill bolt") > minimumAmmunition and
itemcount("strong mana potion") > minimumManas and
cap > minimumCapacity then
gotolabel("Refill") else
gotolabel("Hunt")
end

______________________________


Hello, I need an action that check drill bolts and strong mana! already tested 2 and this is not working, the 2 action have a bug, potion when he has not only instead of going for the refill, can someone help me?

I know the action:
if itemcount (BoltsType) <= BoltsMin or itemcount (MPtype) <= MPmin or cap <= CapToLeave then
gotolabel ("Refill")
end
else
gotolabel ("Hunt")
end

and this:

Local minimumAmmunition = 200 - amount of bolts to leave on
Local minimumManas = 80 - amount of mana to leave on
Local minimumCapacity = 80 - ch That You want to leave on
local

if itemcount ("drill bolt")> and minimumAmmunition
itemcount ("strong mana potion")> and minimumManas
cap> then minimumCapacity
gotolabel ("Refill") else
gotolabel ("Hunt")
end





Thanks all