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

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[Plugin] Use item buffs on Timeless Isle

Pasterke

Well-Known Member
Joined
Dec 12, 2011
Messages
1,228
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:
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.
 
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.
 
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.
 
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.
 
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 :)
 
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
    }
}
 
Trying to fix the problem, now I ckecked on buff int, instead of buff string. I had the same problem. Try latest svn.
This appears to have fixed the issue. I was stockpiling items once again, and it was using them as they wore off instead of all at once. Seems pretty good so far.
 
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 :(

I wil add it. In the meanwhile got some new items to add.
 
I was just about to make this.. How good of you, now I do not have to. This will kick ass for the new Multi-Pull and Combat Looter Plugin I just used. Nothing like always having 4+ mobs on you at all times. I grind better than most people with my DK -=)

Edit:

Hey Cisem, why is a plugin I made under your "My Plugins" area on your blog? Not that I care all that much, but at least say who made it and maybe rename the "My Plugins" part to "My Favorite Plugins"? -=)

Where is this addon you speak of that multi pulls
 
Whould be perfect if you could add USE Sand-Covered Egg when you have x% health!

That's not the purpose of this Plugin. To realise that, I have to make a search function and then let it move to the location, what surely will conflict with the CR you use. And I don't mention the part that those eggs only appears on beaches.

The goal of this plugin is to use the buffs from items that you have in your bags.
 
There is already a plug in that collects the eggs. Use the search button for Objectgather
 
Error loading plugin. Plugin doesn't display as an option.

PHP:
[22:37:41.764 N] Compiler Error: g:\HB_PROD\Plugins\TimelessBuffs\TimelessBuffs.cs(97,1) : error CS1525: Invalid expression term '<<'
[22:37:41.764 N] Compiler Error: g:\HB_PROD\Plugins\TimelessBuffs\TimelessBuffs.cs(97,5) : error CS1525: Invalid expression term '<<'
[22:37:41.764 N] Compiler Error: g:\HB_PROD\Plugins\TimelessBuffs\TimelessBuffs.cs(97,9) : error CS1525: Invalid expression term '.'
[22:37:41.764 N] Compiler Error: g:\HB_PROD\Plugins\TimelessBuffs\TimelessBuffs.cs(97,10) : error CS1002: ; expected
[22:37:41.764 N] Compiler Error: g:\HB_PROD\Plugins\TimelessBuffs\TimelessBuffs.cs(97,14) : error CS1002: ; expected
[22:37:41.764 N] Compiler Error: g:\HB_PROD\Plugins\TimelessBuffs\TimelessBuffs.cs(106,1) : error CS1525: Invalid expression term '=='
[22:37:41.764 N] Compiler Error: g:\HB_PROD\Plugins\TimelessBuffs\TimelessBuffs.cs(106,5) : error CS1525: Invalid expression term '=='
[22:37:41.764 N] Compiler Error: g:\HB_PROD\Plugins\TimelessBuffs\TimelessBuffs.cs(107,13) : error CS1525: Invalid expression term 'if'
[22:37:41.764 N] Compiler Error: g:\HB_PROD\Plugins\TimelessBuffs\TimelessBuffs.cs(109,1) : error CS1525: Invalid expression term '>'
[22:37:41.764 N] Compiler Error: g:\HB_PROD\Plugins\TimelessBuffs\TimelessBuffs.cs(109,4) : error CS1525: Invalid expression term '>'
[22:37:41.764 N] Compiler Error: g:\HB_PROD\Plugins\TimelessBuffs\TimelessBuffs.cs(109,7) : error CS1525: Invalid expression term '>'
[22:37:41.764 N] Compiler Error: g:\HB_PROD\Plugins\TimelessBuffs\TimelessBuffs.cs(109,12) : error CS1002: ; expected
 
Back
Top