--[[ AutoPotion --]] function OnLoad() PrintChat(">> AutoPotion Loaded.") APConfig = scriptConfig("AutoPotion", "AutoPotion") APConfig:addParam("autoPotions", "Use potions when HP < %", SCRIPT_PARAM_SLICE, 0, 1, 100, 0) end function OnTick() if APConfig.autoPotions then if tickPotions == nil or (GetTickCount() - tickPotions > 1000) then PotionSlot = GetInventorySlotItem(2003) if PotionSlot ~= nil then --we have potions if ((myHero.health/myHero.maxHealth)*100)