What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[Plugin] Auto Bladebone Hook buff

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 => 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(0, 0, 0, 20, 0)))) //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 {}
}
}
 
ty but any File i put in?
and it's work with AutoAngler2?
sorry for that im new here :)
 
Back
Top