Advertisement
sibble

Bandage Self Routine

Mar 22nd, 2015
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.92 KB | None | 0 0
  1.         public static void BandageSelf(Item Bandage)
  2.         {
  3.             Bandage.Use();
  4.             Stealth.Default.WaitTargetSelf();
  5.             Console.WriteLine("Bandaging self...");
  6.             Stealth.Default.WaitJournalLine(DateTime.Now, "You finish applying the bandages|You apply the bandages, but they barely help|You heal what little damage your patient had|You did not stay close enough to heal your patient|That is too far away", 15000);
  7.         }
  8.  
  9.         static void Main(string[] args)
  10.         {
  11.             List<Item> Bandages = Find.FindItems(3617, Self.Backpack.ID);
  12.  
  13.             if (Bandages.Count == 0)
  14.             {
  15.                 Console.WriteLine("No bandages found.");
  16.                 Environment.Exit(0);
  17.             }
  18.  
  19.             Item Bandage = Bandages[0];
  20.  
  21.  
  22.             while (Profile.IsConnected)
  23.                 if (Self.HP < Self.MaxHP)
  24.                     BandageSelf(Bandage);
  25.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement