示例#1
0
文件: AutoUse.cs 项目: Lat0ur/Ensage-
 public static void Sphere()
 {
     if (CanUse("item_sphere") && MenuVar.ItemArcaneBootsUse && Utils.SleepCheck("AutoUse.item_sphere"))
     {
         MyHeroInfo.GetItem("item_sphere").UseAbility(false);
         Utils.Sleep(500, "AutoUse.item_sphere");
     }
 }
示例#2
0
文件: AutoUse.cs 项目: Lat0ur/Ensage-
 public static void Arcane_boots()
 {
     if (CanUse("item_arcane_boots") && (double)Var.Me.Mana / Var.Me.MaximumMana < MenuVar.PercentArcaneUse &&
         MenuVar.ItemArcaneBootsUse && Utils.SleepCheck("AutoUse.item_arcane_boots"))
     {
         MyHeroInfo.GetItem("item_arcane_boots").UseAbility(false);
         Utils.Sleep(500, "AutoUse.item_arcane_boots");
     }
 }
示例#3
0
文件: AutoUse.cs 项目: Lat0ur/Ensage-
 public static void Bottle()
 {
     if (CanUse("item_bottle") && Var.Me.Modifiers.Any(x => x.Name == "modifier_fountain_aura_buff") &&
         MenuVar.ItemBottleUse && Utils.SleepCheck("AutoUse.item_bottle"))
     {
         MyHeroInfo.GetItem("item_bottle").UseAbility(Var.Me, false);
         Utils.Sleep(500, "AutoUse.item_bottle");
     }
 }
示例#4
0
文件: AutoUse.cs 项目: Lat0ur/Ensage-
 public static void Cheese()
 {
     if (CanUse("item_cheese") && (double)Var.Me.Health / Var.Me.MaximumHealth < MenuVar.PercentCheeseUse &&
         MenuVar.ItemCheeseUse && Utils.SleepCheck("AutoUse.item_cheese"))
     {
         MyHeroInfo.GetItem("item_cheese").UseAbility(false);
         Utils.Sleep(500, "AutoUse.item_cheese");
     }
 }
示例#5
0
文件: AutoUse.cs 项目: Lat0ur/Ensage-
 public static void Phase_boots()
 {
     if (CanUse("item_phase_boots") &&
         Var.Me.NetworkActivity == NetworkActivity.Move && MenuVar.ItemPhaseBootsUse &&
         Utils.SleepCheck("AutoUse.item_phase_boots"))
     {
         MyHeroInfo.GetItem("item_phase_boots").UseAbility(false);
         Utils.Sleep(500, "AutoUse.item_phase_boots");
     }
 }
示例#6
0
文件: AutoUse.cs 项目: Lat0ur/Ensage-
 public static void Magic_wand()
 {
     if (CanUse("item_magic_wand") && (double)Var.Me.Health / Var.Me.MaximumHealth < MenuVar.PercentStickUse &&
         MenuVar.ItemMagicWandUse && Utils.SleepCheck("AutoUse.item_magic_wand"))
     {
         if (MyHeroInfo.GetItem("item_magic_wand").CurrentCharges > 0)
         {
             MyHeroInfo.GetItem("item_magic_wand").UseAbility(false);
         }
         Utils.Sleep(500, "AutoUse.item_magic_wand");
     }
 }