Advertisement
kolton

Untitled

Dec 18th, 2011
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     function LifeWatch(life) {
  2.         if (NTConfig_LifeThresh > 0 && life < Math.floor(me.hpmax * NTConfig_LifeThresh / 100)) {
  3.             NTLW_DrinkPotInt(0);
  4.         }
  5.        
  6.         if (NTConfig_LifeRejuvThresh > 0 && life < Math.floor(me.hpmax * NTConfig_LifeRejuvThresh / 100)) {
  7.             NTLW_DrinkPotInt(2);
  8.         }
  9.        
  10.         if (NTConfig_LifeChicken > 0 && !NTC_InTown() && life <= Math.floor(me.hpmax * NTConfig_LifeChicken / 100)) {
  11.             scriptBroadcast("chicken");
  12.         }
  13.     }
  14.    
  15.     addEventListener("melife", LifeWatch);
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.     function ScriptMsg(msg) {
  25.         if (msg === "chicken") {
  26.             quit();
  27.         }
  28.     }
  29.    
  30.     addEventListener("scriptmsg", ScriptMsg);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement