Hello i need some help with a action line, the script works fine except that it doesn't go back to refill when it have below the amount of mana potions to stop hunt.
First of all this is my setup
And this is the line that's failing
mainBp = "Backpack of holding"
lootBp = "Orange backpack"
supplyBp = "Jewelled backpack"
goldBp = "Blue backpack"
stashBp = "Backpack" -- BP som andrar bp ska ligga i DP
nonstackableBp = "Brocade backpack"
stackableBp = "purple backpack"
nameMp = "Strong Mana potion" -- Mana potion to use
maxMp = 260 -- Number of Mana potions to buy
minMp = 40 -- Number of Mana potions to stop hunting
priceMp = 80 -- Mana potions price
nameSpear = "Royal spear" -- Spear to use
maxSpear = 6 -- Number of Spears to buy
minSpear = 5 -- Number of Spears to stop hunting
priceSpear = 25 -- Spear price
nameHp = "Great Spirit Potion" -- Health/Spirit potion to use
maxHp = 1 -- Number of Health/Spirit potions to buy
minHp = 0 -- Number of Health/Spirit potions to stop hunting
priceHp = 190 -- Health/Spirit potions price
dropVials = 30 -- Minimum number of vials to drop if you're cap is less than minCap+50 (Turn off the VialDropper action to disable)
minCap = 100 -- Minimum Capacity to have to stop hunting
extraGp = 1000 -- Extra gold to withdraw when resupplying (For travel, ect)
useSoftboots = true -- Will use and refill softboots if true (True or False)
otherBoots = "boots of haste" -- What to wear instead of Soft Boots (Only matters if useSoftboots is true)
minMana = 90 -- Minimum mana to equip Soft Boots(Only matters if useSoftboots is true)
pvpServer = true -- Is this a PvP server? (true or false)
as i said it works fine when you have below the amount of spear that you wanna go refill to, only the part with manas is not working.
if (itemcount(nameSpear) < minSpear or (itemcount(nameMp) < minMp or itemcount(nameHp) < minHp or cap < minCap) then gotolabel("leaveblue") end
anyone has a suggestion to what i could replace that line with so it works??