Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.71 KB | None | 0 0
  1.         private static readonly Dictionary<uint, int> Baits =   new Dictionary<uint, int>
  2.         {
  3.             {110291,158036},
  4.             {110290,158035},
  5.             {110292,158037},
  6.             {110274,158031},
  7.             {110289,158034},
  8.             {110294,158039},
  9.             {110293,158038},                                           
  10.         };
  11.  
  12.         public async static Task<bool> ApplyBait()
  13.         {
  14.             if (StyxWoW.Me.IsCasting)
  15.                 return false;
  16.  
  17.             foreach (var bait in Baits)
  18.             {
  19.                 WoWItem baitInBag = Utility.GetItemInBag(bait.Key);
  20.                 if(baitInBag != null && !StyxWoW.Me.HasAura(bait.Value) && baitInBag.Use()){
  21.                     AutoAnglerBot.Log(System.String.Format("Appling {0}",baitInBag.GetItemName()));
  22.                     await CommonCoroutines.SleepForLagDuration();
  23.                     return true;
  24.                 }
  25.             }
  26.             return false;
  27.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement