示例#1
0
 public AutoHeal()
 {
     CastPause        = false;
     Healedplayers    = null;
     MinimalPlayerHP  = 80;
     MinimalPatientHP = 87;
     CrystalState     = false;
     CleanBandage     = true;
     CrystalCmd       = ".enlightment";
     HealRun          = false;
     Automat          = new System.Timers.Timer(200);
     Automat.Start();
 }
示例#2
0
 public void heal()
 {
     if (HealRun)
     {
         HealRun           = false;
         Automat.Elapsed  -= Automat_Elapsed;
         Other.OnParalyze -= Other_OnParalyze;
         UO.PrintError("Healing Off");
     }
     else
     {
         HealRun = true;
         if (Healedplayers == null)
         {
             Healedplayers = new HealedPlayers();
         }
         Automat.Elapsed  += Automat_Elapsed;
         Other.OnParalyze += Other_OnParalyze;
         UO.PrintInformation("Healing On");
     }
 }
示例#3
0
 public void healclear()
 {
     Healedplayers = new HealedPlayers();
 }