Advertisement
Guest User

Untitled

a guest
Mar 5th, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. ==Script==
  2.  
  3. function CharVitals()
  4. max_health = tonumber(gmcp.Char.Vitals.maxhp/11)
  5. max_mana = tonumber(gmcp.Char.Vitals.maxmp/11)
  6. current_health = tonumber(gmcp.Char.Vitals.hp/11)
  7. current_mana = tonumber(gmcp.Char.Vitals.mp/11)
  8. end
  9.  
  10.  
  11. ==Triggers==
  12.  
  13. Name: GMCP Read
  14. 0 Line: return isPrompt() -Lua Function
  15.  
  16. CharVitals()
  17.  
  18.  
  19.  
  20. Name: Auto-hunting
  21. 0 Line: You have regained your mental equilibrium. -exact match
  22.  
  23. if gmcp.Char.Status.prof == "Mage" then
  24. if current_health < (max_health - 300) and gmcp.Char.Vitals.bal == "1" and autoAttack and not Prone then
  25. useShield()
  26. elseif current_health > (max_health - 300) and autoAttack and gmcp.Char.Vitals.bal == "1" and not Prone and huntClum then
  27. send("cast sidesmash batter " .. target)
  28. elseif current_health > (max_health - 300) and autoAttack and gmcp.Char.Vitals.bal == "1" and not Prone and not huntClum then
  29. send("attack " .. target)
  30. end
  31. elseif gmcp.Char.Status.prof ~= "Mage" then
  32. if current_health < (max_health - 300) and gmcp.Char.Vitals.bal == "1" and autoAttack and not Prone then
  33. useShield()
  34. elseif current_health > (max_health - 300) and autoAttack and gmcp.Char.Vitals.bal == "1" and not Prone then
  35. send("attack " .. target)
  36. end
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement