Guest User

Untitled

a guest
May 23rd, 2013
38
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function autoSip()
  2. if tonumber(gmcp.Char.Vitals.hp) == 0 then return false end
  3. local pHP = (tonumber(gmcp.Char.Vitals.hp)/tonumber(gmcp.Char.Vitals.maxhp))*100
  4. local pMP = (tonumber(gmcp.Char.Vitals.mp)/tonumber(gmcp.Char.Vitals.maxmp))*100
  5.  
  6. if gmcp.Char.Vitals.class:lower() == "cabalist" then
  7. if (pHP < 70 or pMP < 70) and not checkLimiter("elix") and gmcp.Char.Vitals.elixir == "1" then
  8. resetLimiter("elix")
  9. send("eval")
  10. if gmcp.Char.Vitals.status:lower() == "living" then
  11. send("sip mana")
  12. else
  13. send("stick stimulant")
  14. end
  15. end
  16. else
  17. if pHP < 70 and not checkLimiter("elix") and gmcp.Char.Vitals.elixir == "1" then
  18. resetLimiter("elix")
  19. if gmcp.Char.Vitals.status:lower() == "living" then
  20. send("sip analeptic")
  21. else
  22. send("stick stimulant")
  23. end
  24. elseif pMP < 70 and not checkLimiter("elix") and gmcp.Char.Vitals.elixir == "1" then
  25. resetLimiter("elix")
  26. if gmcp.Char.Vitals.status:lower() == "living" then
  27. send("sip mana")
  28. else
  29. send("stick stimulant")
  30. end
  31. end
  32. end
  33.  
  34. if (pHP < 90 or pMP < 90) and not checkLimiter("moss") and gmcp.Char.Vitals.moss == "1" then
  35. resetLimiter("moss")
  36. if gmcp.Char.Vitals.status:lower() == "living" then
  37. send("outc moss")
  38. send("eat moss")
  39. else
  40. send("outc kidney")
  41. send("eat kidney")
  42. end
  43. end
  44. end
RAW Paste Data