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.
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 ?
just do a Lua.DoString /cancelaura Herbouflage its much easier then doing the Lua Equivalent. CancelUnitBuff("unit", index [, "filter"]) or CancelUnitBuff("unit", "name" [, "rank" [, "filter"]]) docs/api/CancelUnitBuff - World of Warcraft Programming: A Guide and Reference for Creating WoW Addons ...Yea
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.