Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ==Script==
- function CharVitals()
- max_health = tonumber(gmcp.Char.Vitals.maxhp/11)
- max_mana = tonumber(gmcp.Char.Vitals.maxmp/11)
- current_health = tonumber(gmcp.Char.Vitals.hp/11)
- current_mana = tonumber(gmcp.Char.Vitals.mp/11)
- end
- ==Triggers==
- Name: GMCP Read
- 0 Line: return isPrompt() -Lua Function
- CharVitals()
- Name: Auto-hunting
- 0 Line: You have regained your mental equilibrium. -exact match
- if gmcp.Char.Status.prof == "Mage" then
- if current_health < (max_health - 300) and gmcp.Char.Vitals.bal == "1" and autoAttack and not Prone then
- useShield()
- elseif current_health > (max_health - 300) and autoAttack and gmcp.Char.Vitals.bal == "1" and not Prone and huntClum then
- send("cast sidesmash batter " .. target)
- elseif current_health > (max_health - 300) and autoAttack and gmcp.Char.Vitals.bal == "1" and not Prone and not huntClum then
- send("attack " .. target)
- end
- elseif gmcp.Char.Status.prof ~= "Mage" then
- if current_health < (max_health - 300) and gmcp.Char.Vitals.bal == "1" and autoAttack and not Prone then
- useShield()
- elseif current_health > (max_health - 300) and autoAttack and gmcp.Char.Vitals.bal == "1" and not Prone then
- send("attack " .. target)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement