Page 1 of 6 123 ... LastLast
Results 1 to 10 of 54
Like Tree15Likes

Thread: [Plugin] Use item buffs on Timeless Isle

  1. #1
    Buddy
    Join Date
    12.12.2011
    Posts
    886

    Default [Plugin] Use item buffs on Timeless Isle

    Auto use the buffs you get from loot items on Timeless Isle.

    Unpack in your Plugin folder.

    Start HB, choose the plugin and if newer version exists, he will auto update.

    Last Update : 12 Mar 2014

    Never use SVN Checkout. If a newer version exists, the plugin wil auto update.
    Attached Files Attached Files
    Last edited by Pasterke; 12.03.2014 at 09:53.
    boolangnet likes this.

  2. #2
    Buddy
    Join Date
    22.04.2010
    Posts
    483

    Default

    Quote Originally Posted by Pasterke View Post
    Auto use the buffs you get from loot items on Timeless Isle.

    Unpack in your Plugin folder.

    SVN : timelessbuffs
    Fuck yea buddy

  3. #3
    Buddy
    Join Date
    22.04.2010
    Posts
    483

    Default

    Quote Originally Posted by Beast View Post
    Fuck yea buddy
    SVN isnt working though

  4. #4
    Buddy
    Join Date
    12.12.2011
    Posts
    886

    Default

    Quote Originally Posted by Beast View Post
    SVN isnt working though
    If I click on the link, I see the plugin. Download the zip file and unpack in your plugin folder.

    The only thing to do after is right clicking on the folder and choose svn checkout.

  5. #5
    Lifetimer
    Join Date
    25.10.2010
    Location
    Mists of Pandaria
    Age
    33
    Posts
    2,730

    Default

    Pasterke --
    It seems that this plugin uses the items too quickly. I'm using a profile right now that grinds, and I had 15 singing crystals in my bag before I used this plugin. After using this plugin all my singing crystals are gone, as well as my other buff items. I had between 10-20 of each one, but now I have none. The only thing different that I did was install this plugin to use my buff items.
    Eleven botted toons from 1 to 90 using Honorbuddy!

  6. #6
    Buddy
    Join Date
    12.12.2011
    Posts
    886

    Default

    Quote Originally Posted by zeldrak View Post
    Pasterke --
    It seems that this plugin uses the items too quickly. I'm using a profile right now that grinds, and I had 15 singing crystals in my bag before I used this plugin. After using this plugin all my singing crystals are gone, as well as my other buff items. I had between 10-20 of each one, but now I have none. The only thing different that I did was install this plugin to use my buff items.
    Trying to fix the problem, now I ckecked on buff int, instead of buff string. I had the same problem. Try latest svn.

  7. #7
    Lifetimer
    Join Date
    25.10.2010
    Location
    Mists of Pandaria
    Age
    33
    Posts
    2,730

    Default

    Quote Originally Posted by Pasterke View Post
    Trying to fix the problem, now I ckecked on buff int, instead of buff string. I had the same problem. Try latest svn.
    Trying it out now. Don't have anything to test with anymore, but we'll see if I build up a reserve of items again, lol. No worries, I just thought it was because of the aura detection issues HB was having.
    Eleven botted toons from 1 to 90 using Honorbuddy!

  8. #8
    Buddy
    Join Date
    12.12.2011
    Posts
    886

    Default

    Quote Originally Posted by zeldrak View Post
    Trying it out now. Don't have anything to test with anymore, but we'll see if I build up a reserve of items again, lol. No worries, I just thought it was because of the aura detection issues HB was having.
    AH, didn't know HB had that problem. That can be the source then

  9. #9
    Lifetimer
    Join Date
    25.10.2010
    Location
    Mists of Pandaria
    Age
    33
    Posts
    2,730

    Default

    Quote Originally Posted by Pasterke View Post
    AH, didn't know HB had that problem. That can be the source then
    Yeah, aura detection in this release of HB seems to be broken, or spotty, at best.
    Eleven botted toons from 1 to 90 using Honorbuddy!

  10. #10
    Buddy
    Join Date
    10.12.2011
    Posts
    208

    Default

    Quote Originally Posted by Pasterke View Post
    Auto use the buffs you get from loot items on Timeless Isle.

    Unpack in your Plugin folder.

    SVN : timelessbuffs
    You beat me posting this... lol. Just finished mine, but I've got errors. Anyway +rep.


    Ah, no Crystal of Insanity 86569 in your file



    Added
    Code:
    using Styx;
    using Styx.Common;
    using Styx.CommonBot;
    using Styx.CommonBot.POI;
    using Styx.CommonBot.Profiles;
    using Styx.CommonBot.AreaManagement;
    using Styx.Pathing;
    using Styx.Helpers;
    using Styx.WoWInternals;
    using Styx.WoWInternals.WoWObjects;
    using Styx.Plugins;
    
    using System;
    using System.Collections.Generic;
    using System.Diagnostics;
    using System.IO;
    using System.Linq;
    using System.Net;
    using System.Threading;
    using System.Windows.Media;
    
    namespace TimelessBuffs
    {
    
        public class FightHere : HBPlugin
        {
    
            public override string Name { get { return "Timeless Buffs"; } }
            public override string Author { get { return "Pasterke"; } }
            public override bool WantButton { get { return false; } }
            public override Version Version { get { return _version; } }
            private readonly Version _version = new Version(1, 0, 0, 0);
            private static LocalPlayer Me { get { return StyxWoW.Me; } }
            public string LastSpell { get; set; }
            public Stopwatch checkingBuffsTimer = new Stopwatch();
    
            public override void Initialize()
            {
                if (Me.ZoneId == 6757) { LogMsg("Good, we are on Timeless Isle"); }
                else { LogMsg("We are not on Timeless Isle, no use use of buffs"); }
            }
    
            public override void Pulse()
            {
                try
                {
                    if (Me.ZoneId == 6757)
                    {
                        if (StyxWoW.Me.IsActuallyInCombat
                            || StyxWoW.Me.Mounted
                            || StyxWoW.Me.IsDead
                            || StyxWoW.Me.IsGhost
                            )
                        {
                            return;
                        }
                        checkBuffs();
                        return;
                    }
                }
                catch { }
            }
            public void checkBuffs()
            {
    
                if (!buffExists(147476, Me)
                    && LastSpell != "Dew of Eternal Morning" )
                {
                    applyBuffs("Dew of Eternal Morning");
                }
                if (!buffExists(147226, Me)
                    && LastSpell != "Book of the Ages")
                {
                    applyBuffs("Book of the Ages");
                }
                if (!buffExists(147055, Me)
                    && LastSpell != "Singing Crystal")
                {
                    applyBuffs("Singing Crystal");
                }
    	    if (!buffExists(86569, Me)
                    && LastSpell != "Crystal of Insanity")
                {
                    applyBuffs("Crystal of Insanity");
                }
                if (Me.Combat
                    && Me.HealthPercent <= 40
                    && !buffExists(104289, Me))
                {
                    applyBuffs("Faintly-Glowing Herb");
                }
                return;
            }
            public void applyBuffs(string buffName)
            {
                if (!buffExists(buffName, Me))
                {
                    WoWItem potion = Me.BagItems.FirstOrDefault(h => h.Name == buffName);
    
                    if (potion == null)
                    {
                        return;
                    }
                    if (potion != null && potion.CooldownTimeLeft.TotalMilliseconds <= 0 && LastSpell != buffName)
                    {
                        potion.Use();
                        LogMsg("Using " + potion.Name);
                        LastSpell = buffName;
                    }
                }
            }
            #region logs
            public void LogMsg(string msg)
            {
                Logging.Write(Colors.CornflowerBlue, msg);
            }
            #endregion logs
            #region Buff Checks
    
            public bool buffExists(int Buff, WoWUnit onTarget)
            {
                if (onTarget != null)
                {
                    var Results = onTarget.GetAuraById(Buff);
                    if (Results != null)
                        return true;
                }
                return false;
            }
    
            public double buffTimeLeft(int Buff, WoWUnit onTarget)
            {
                if (onTarget != null)
                {
                    var Results = onTarget.GetAuraById(Buff);
                    if (Results != null)
                    {
                        if (Results.TimeLeft.TotalMilliseconds > 0)
                            return Results.TimeLeft.TotalMilliseconds;
                    }
                }
                return 0;
            }
    
            public bool buffExists(string Buff, WoWUnit onTarget)
            {
                if (onTarget != null)
                {
                    var Results = onTarget.GetAuraByName(Buff);
                    if (Results != null)
                        return true;
                }
                return false;
            }
    
            public double buffTimeLeft(string Buff, WoWUnit onTarget)
            {
                if (onTarget != null)
                {
                    var Results = onTarget.GetAuraByName(Buff);
                    if (Results != null)
                    {
                        if (Results.TimeLeft.TotalMilliseconds > 0)
                            return Results.TimeLeft.TotalMilliseconds;
                    }
                }
                return 0;
            }
    
    
    
            public uint buffStackCount(int Buff, WoWUnit onTarget)
            {
                if (onTarget != null)
                {
                    var Results = onTarget.GetAuraById(Buff);
                    if (Results != null)
                        return Results.StackCount;
                }
                return 0;
            }
            public uint buffStackCount(string Buff, WoWUnit onTarget)
            {
                if (onTarget != null)
                {
                    var Results = onTarget.GetAuraByName(Buff);
                    if (Results != null)
                        return Results.StackCount;
                }
                return 0;
            }
            #endregion buffchecks
            //the end
        }
    }

 

 
Page 1 of 6 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •