I have it checking for Soul points, but for some reason it just leaves and won't check and hunt what it is supposed to.
if (itemcount('mana potion') <= minMp) or (cap < minCap) or (Soul >= maxSP) then
nameMp = "Mana Potion" -- Mana potion to use
maxMp = 400 -- Number of Mana potions to buy
minMp = 50 -- Number of Mana potions to stop hunting
priceMp = 50 -- Mana potions price
nameSd = "Sudden Death Rune"
maxSd = 50
minSd = 10
priceSd = 108
-- General Setup
minCap = 30 -- Minimum Capacity to have to stop hunting
alertCap = 0 -- Alert on low Cap
maxSP = 199 -- Maximun SoulPoints to leave hunt