Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function autoSip()
- if tonumber(gmcp.Char.Vitals.hp) == 0 then return false end
- local pHP = (tonumber(gmcp.Char.Vitals.hp)/tonumber(gmcp.Char.Vitals.maxhp))*100
- local pMP = (tonumber(gmcp.Char.Vitals.mp)/tonumber(gmcp.Char.Vitals.maxmp))*100
- if gmcp.Char.Vitals.class:lower() == "cabalist" then
- if (pHP < 70 or pMP < 70) and not checkLimiter("elix") and gmcp.Char.Vitals.elixir == "1" then
- resetLimiter("elix")
- send("eval")
- if gmcp.Char.Vitals.status:lower() == "living" then
- send("sip mana")
- else
- send("stick stimulant")
- end
- end
- else
- if pHP < 70 and not checkLimiter("elix") and gmcp.Char.Vitals.elixir == "1" then
- resetLimiter("elix")
- if gmcp.Char.Vitals.status:lower() == "living" then
- send("sip analeptic")
- else
- send("stick stimulant")
- end
- elseif pMP < 70 and not checkLimiter("elix") and gmcp.Char.Vitals.elixir == "1" then
- resetLimiter("elix")
- if gmcp.Char.Vitals.status:lower() == "living" then
- send("sip mana")
- else
- send("stick stimulant")
- end
- end
- end
- if (pHP < 90 or pMP < 90) and not checkLimiter("moss") and gmcp.Char.Vitals.moss == "1" then
- resetLimiter("moss")
- if gmcp.Char.Vitals.status:lower() == "living" then
- send("outc moss")
- send("eat moss")
- else
- send("outc kidney")
- send("eat kidney")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement