Advertisement
OTG

Svo / serverside recklessness

OTG
May 21st, 2014
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. function checkRecklessness()
  2.  
  3. if svo.affl.recklessness then --Svo thinks we have recklessness
  4.  
  5. if tonumber(gmcp.Char.Vitals.hp) < tonumber(gmcp.Char.Vitals.maxhp) -- is current HP less than max HP?
  6. or tonumber(gmcp.Char.Vitals.mp) < tonumber(gmcp.Char.Vitals.maxmp) -- is current MP less than max MP?
  7. then
  8.  
  9. otgSysEcho("Not reckless, removing") -- can't have recklessness
  10. svo.removeaff("recklessness")
  11.  
  12. else
  13.  
  14. oAction("CURING PREDICT RECKLESSNESS") -- got recklessness, make sure ServerSide knows
  15. echo("\n")
  16.  
  17. end --if
  18.  
  19. end --if
  20. end --function
  21.  
  22. registerAnonymousEventHandler("svo got aff", "checkRecklessness")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement