@Eslu
Code:
local potion = "Strong Mana Potion" -- name of potion
local amountPotion = 30 -- amount to trigger logout function
local ammo = "Crystaline Arrow" -- name of ammunition
local amountAmount = 500 -- amount to trigger logout function
Module.New('PotionCheck', function(safeXlog)
local potid = Item.GetID(potion)
local ammoid = Item.GetID(ammo)
if (Self.ItemCount(potid) < amountPotion) or (Self.ItemCount(ammoid) < amountAmount) then
if Self.isInFight() then
Walker.Stop()
wait(4000)
else
wait(500)
os.exit()
end
end
safeXlog:Delay(5000)
end)