Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.72 KB | None | 0 0
  1. --Change rage affs to proper priorities.
  2. function offRageBal(event, bal)
  3.   if event == "lost bal" and bal == "rage" then
  4.     switchPrios( "lovers", 13 )
  5.     switchPrios( "pacified", 13 )
  6.     switchPrios( "peace", 15 )
  7.     switchPrios( "justice", 15 )
  8.     switchPrios( "generosity", 19 )
  9.   end
  10. end --func
  11.  
  12. registerAnonymousEventHandler("lost bal", "offRageBal")
  13.  
  14. --Change rage affs back to 26 (ignored)
  15. function onRageBal(event, bal)
  16.   if event == "got bal" and bal == "rage" then
  17.     affPrioRestore( "lovers" )
  18.     affPrioRestore( "pacified" )
  19.     affPrioRestore( "peace" )
  20.     affPrioRestore( "justice" )
  21.     affPrioRestore( "generosity" )
  22.   end
  23. end --func
  24.  
  25. registerAnonymousEventHandler("got bal", "onRageBal")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement