Demonbuddy for Season 16 released, updates.buddyauth.com !
  • Visit Rebornbuddy
  • Visit Demonbuddy

[Idea] Using Lifegiving Seed as food and drink

Discussion in 'Archives' started by radek, Feb 26, 2011.

  1. radek

    radek New Member

    Joined:
    Jan 15, 2010
    Messages:
    80
    Likes Received:
    0
    Trophy Points:
    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.
     
  2. ru812

    ru812 New Member

    Joined:
    Jan 15, 2010
    Messages:
    102
    Likes Received:
    0
    Trophy Points:
    0
    I'd love a plugin that used lifegiving seed.
     
  3. CodenameG

    CodenameG New Member

    Joined:
    Jan 15, 2010
    Messages:
    38,397
    Likes Received:
    230
    Trophy Points:
    0
    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.
     
  4. sm0k3d

    sm0k3d Member

    Joined:
    Sep 27, 2010
    Messages:
    466
    Likes Received:
    12
    Trophy Points:
    18
    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
     
  5. ru812

    ru812 New Member

    Joined:
    Jan 15, 2010
    Messages:
    102
    Likes Received:
    0
    Trophy Points:
    0
    Ya either way I'd use the hell out of it.
     
  6. CodenameG

    CodenameG New Member

    Joined:
    Jan 15, 2010
    Messages:
    38,397
    Likes Received:
    230
    Trophy Points:
    0
    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.
     
  7. sm0k3d

    sm0k3d Member

    Joined:
    Sep 27, 2010
    Messages:
    466
    Likes Received:
    12
    Trophy Points:
    18
    Nice thanks for the code I'll be putting it in my CC, free drinks! Haha
     
  8. ru812

    ru812 New Member

    Joined:
    Jan 15, 2010
    Messages:
    102
    Likes Received:
    0
    Trophy Points:
    0
    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 ?
     
  9. CodenameG

    CodenameG New Member

    Joined:
    Jan 15, 2010
    Messages:
    38,397
    Likes Received:
    230
    Trophy Points:
    0
  10. laria

    laria Well-Known Member

    Joined:
    Jan 15, 2010
    Messages:
    5,387
    Likes Received:
    32
    Trophy Points:
    48
    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.
     

Share This Page