View Full Version : If i dont have mana potions log! or exit client
Super Toon
01-24-2016, 11:24 PM
what is the lua? please ajaja i die training my seconds :/! why the slimes hits strong? :(
Oscagi
01-25-2016, 08:06 AM
Write Module.Stop('NoPotsExit') --- When u start the script
Write Module.Start('NoPotsExit') -- Label on the cave
ManaPot = "Mana Potion"
ManaMin = 15
Module.New('NoPotsExit' function()
if Self.ItemCount(ManaPot) < ManaMin then
os.exit()
else
return
end
end)
Idk if it should work but u can do it with label too.
KeepSkilling
Stand
CheckPotions
ManaPot = "Mana Potion"
ManaMin = 15
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
if (labelName == "CheckPotions") then
if Self.ItemCount(Item.GetID(ManaPot) < ManaMin) then
os.exit()
else
gotoLabel("KeepSkilling")
end
end
end
jarrejarre
03-22-2016, 12:16 PM
it only closes? that shit dont work perfect
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.