Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function checkRecklessness()
- if svo.affl.recklessness then --Svo thinks we have recklessness
- if tonumber(gmcp.Char.Vitals.hp) < tonumber(gmcp.Char.Vitals.maxhp) -- is current HP less than max HP?
- or tonumber(gmcp.Char.Vitals.mp) < tonumber(gmcp.Char.Vitals.maxmp) -- is current MP less than max MP?
- then
- otgSysEcho("Not reckless, removing") -- can't have recklessness
- svo.removeaff("recklessness")
- else
- oAction("CURING PREDICT RECKLESSNESS") -- got recklessness, make sure ServerSide knows
- echo("\n")
- end --if
- end --if
- end --function
- registerAnonymousEventHandler("svo got aff", "checkRecklessness")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement