Guys, can you see anything wrong in this action?
It should check if the amount of Health Potions and Mana Potions (both are Category 's') is below the amount to buy. If it is, then the script will Resupply. If it's not, then it will skip the resupply.Code:foreach supplyitem s do if itemcount(s.id, getlootingdestination(main)) < s.uptocount then gotolabel('Go Supply') end end if islocation(5) then gotolabel('Supplies end') end
However, it keeps skiping the resupply, even if it has less supplies than it needs.
I've tried two different versions too. One with "Else" and another one with "elseif" (to include the 'Is Location' condition).
Do you guys know what could be wrong with this action?