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

[Idea] Using Lifegiving Seed as food and drink

radek

New Member
Joined
Jan 15, 2010
Messages
80
Reaction score
0
So, basically character will use Lifegiving Seed, which is pain in the ass for any boting herbalist, instead of any food or drink if there's a LS in inventory. When character gain full hp or/and mana, plugin cancels Herbouflage effect and gets back to botting.
 
it wouldnt be hard to make a plugin that does that when the bot hits a certain HP%, but also this should be something that should be handled by the CC's Rest Routine for best presentation.
 
Well maybe it could be implemented in the same function of the UseBestFood(). I know that's not the real function but I can't think off the top of my head what it's called where it uses the food/water in your bag
 
Code:
public void UseLifeGivingSeed()
{
if(Me.HealthPercent <= 50 && HaveLivingSeed() && LivingSeed != null)
{
LivingSeed.Use();
While (Me.ActiveAuras.ContainsKey("[B]Herbouflage") )
{
[/B]if (Me.HealthPercent >= 99)
}
break;
}
Thread.Sleep(100);
[B]} [/B]
}
Private WoWItem LivingSeed;
Public bool HaveLivingSeed()
{
if (LivingSeed == null)
{
foreach (WoWItem Items in Me.BagItems)
{
if (Items.Name == "Living Seed")
{
LivingSeed = Items;
return true;
}
}
}
return false;
}
theres all the code needed, its going to need to be cleaned up but that will do it.
 
Nice thanks for the code I'll be putting it in my CC, free drinks! Haha
 
Does that code remove the Aura? I'm a bit of an amature but , I didnt see anything in there that would cancelaura. Am I missing it ?
 
I apologize but i have to object to this simple way in favor of localeindependent solutions.
The translationteams didn't leave that spellname the way it is in english.
Unfortunately Cancelaura doesn't take spellids, so it is slightly more complicated.
 
Back
Top