• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • [Plugin] Auto Bladebone Hook buff

    Discussion in 'Plugins' started by sogat, May 1, 2015.

    1. sogat

      sogat New Member

      Joined:
      Jun 24, 2014
      Messages:
      1
      Likes Received:
      0
      Trophy Points:
      0
      Hello,

      It's the simple auto Bladebone Hook buff plugin.

      Know bug:
      Duble usage, but I don't know why. Sorry.


      View attachment csali.zip
       
    2. Opply

      Opply Community Developer

      Joined:
      Feb 28, 2013
      Messages:
      328
      Likes Received:
      29
      Trophy Points:
      0
      hehe, source looks familiar.. :p

      add a stopwatch or something to use the item, you can get two pulses before wow is able to catch up and set the correct aura on you. Should remove the double cast.. something like..

      PHP:
      public int BUFF 182226;
      public 
      int ITEMID 122742;

      public static 
      DateTime lastHookUsed DateTime.Now;

      public 
      override void Pulse()
      {
          try
          {
              if (!
      Me.Mounted
                      
      && !Me.IsFlying
                      
      && !Me.IsDead
                      
      && !Me.IsGhost
                      
      && !Me.OnTaxi
                      
      && !Me.IsOnTransport)
              {
                  if (!
      Me.HasAura(BUFF))
                  {
                      
      WoWItem potion Me.BagItems.FirstOrDefault(=> h.Entry == ITEMID);

                      if (
      potion == null)
                      {
                          return;
                      }
                      if ((
      potion != null) && //has item
                                 
      (potion.CooldownTimeLeft.TotalMilliseconds <= 0) && //item not on cooldown
                                 
      (lastHookUsed < (DateTime.Now + new TimeSpan(000200)))) //we are not on internal cooldown from applying last hook
                      
      {
                          
      Logging.Write(Colors.LightCoral"Csali felrakva!!");
                          
      potion.Use();
                          
      lastHookUsed DateTime.Now//update time
                      
      }
                  }
              }
              return;
          }
          catch {}
      }
      }
       
    3. master yi

      master yi New Member

      Joined:
      May 2, 2015
      Messages:
      5
      Likes Received:
      0
      Trophy Points:
      0
      ty but any File i put in?
      and it's work with AutoAngler2?
      sorry for that im new here :)
       

    Share This Page