Page 1 of 8 123 ... LastLast
Results 1 to 10 of 72
  1. #1
    Community Developer
    Reputation
    Join Date
    12.12.2011
    Posts
    1,170

    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.

    SVN : timelessbuffs - Revision 33: /trunk
    Last edited by Pasterke; 11.04.2015 at 20:28.

  2. #2
    Buddy
    Reputation
    Join Date
    22.04.2010
    Posts
    519

    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
    Reputation
    Join Date
    22.04.2010
    Posts
    519

    Default

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

  4. #4
    Community Developer
    Reputation
    Join Date
    12.12.2011
    Posts
    1,170

    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
    Buddy
    Reputation
    Join Date
    25.10.2010
    Location
    Inside my garrison castle mulling over my blueprints.
    Age
    34
    Posts
    3,437

    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.
    [SIZE=3]No longer playing World of Warcraft or using HB. May return at some point.

  6. #6
    Community Developer
    Reputation
    Join Date
    12.12.2011
    Posts
    1,170

    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
    Buddy
    Reputation
    Join Date
    25.10.2010
    Location
    Inside my garrison castle mulling over my blueprints.
    Age
    34
    Posts
    3,437

    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.
    [SIZE=3]No longer playing World of Warcraft or using HB. May return at some point.

  8. #8
    Community Developer
    Reputation
    Join Date
    12.12.2011
    Posts
    1,170

    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
    Buddy
    Reputation
    Join Date
    25.10.2010
    Location
    Inside my garrison castle mulling over my blueprints.
    Age
    34
    Posts
    3,437

    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.
    [SIZE=3]No longer playing World of Warcraft or using HB. May return at some point.

  10. #10
    Banned
    Reputation
    Join Date
    10.12.2011
    Posts
    332

    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 8 123 ... LastLast

Posting Permissions

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