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

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

Delete your TimelessBuffs folder and reinstall. You get that error if you merge svn's and not doing an update like you should.

Just copy the svn link, open your plugins folder, right click anywhere in that folder and choose svn checkout.

Once installed, if you want to check for new version, just right clik the folder and choose svn update.
 
Delete your TimelessBuffs folder and reinstall. You get that error if you merge svn's and not doing an update like you should.

Just copy the svn link, open your plugins folder, right click anywhere in that folder and choose svn checkout.

Once installed, if you want to check for new version, just right clik the folder and choose svn update.

Like I should?! Whatever. This was the error after deleting and downloading again and after a cleanup. Besides your negative comment; a "Cleanup" > Select "Clean up working copy status" , "Include externals" , "Delete unversioned files and folders" does the same thing as what you just said without wasting tons of time.
 
Like I should?! Whatever. This was the error after deleting and downloading again and after a cleanup. Besides your negative comment; a "Cleanup" > Select "Clean up working copy status" , "Include externals" , "Delete unversioned files and folders" does the same thing as what you just said without wasting tons of time.

Open once with Notepad the file Timeless.cs and paste line 97. Use Notepad or Notepad++ but not Word or Wordpad.
 
If I use the Chinese version of wow, I need to modify anything?

I need to modify the buff name??


if (!buffExists(147476, Me)
&& LastSpell != "Dew of Eternal Morning" )
{
applyBuffs("Dew of Eternal Morning");
}
 
If I use the Chinese version of wow, I need to modify anything?

I need to modify the buff name??


if (!buffExists(147476, Me)
&& LastSpell != "Dew of Eternal Morning" )
{
applyBuffs("Dew of Eternal Morning");
}

here is the solutions for you...
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 int LastSpellID { 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;
                    }
                    if (Me.Combat
                        && Me.HealthPercent <= 85
                        && !buffExists(104312, Me)
                        && LastSpellID != 104312)
                    {
                        applyBuffs("Strange Glowing Mushroom");
                        return;
                    }
                    if (Me.Combat
                        && Me.HealthPercent <= 40
                        && !buffExists(104289, Me))
                    {
                        applyBuffs("Faintly-Glowing Herb");
                        return;
                    }
                    checkBuffs();
                    return;
                }
            }
            catch { }
        }
        public void checkBuffs()
        {

            if (!buffExists(147476, Me)
                && LastSpell != "永恆晨露" )
            {
                applyBuffs("永恆晨露");
            }
            if (!buffExists(147226, Me)
                && LastSpell != "世代之書")
            {
                applyBuffs("世代之書");
            }
            if (!buffExists(147055, Me)
                && LastSpell != "歌唱水晶")
            {
                applyBuffs("歌唱水晶");
            }
            if (!buffExists(86569, Me)
                && LastSpellID != 86569)
            {
                applyBuffs("精神錯亂水晶");
            }
            if (!buffExists(104287, Me)
                && LastSpellID != 104287)
            {
                applyBuffs("風鶴之羽");
            }
            if (!buffExists(104335, Me)
                && LastSpellID != 104335)
            {
                dropBuffs("濃醇老埤周啤酒");
            }
            if (!buffExists(104334, Me)
                && LastSpellID != 104334)
            {
                dropBuffs("混濁老埤周啤酒");
            }
            if (!buffExists(104336, Me)
                && LastSpellID != 104336)
            {
                dropBuffs("泡沫老埤周啤酒");
            }
            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;
                }
            }
        }
        public void dropBuffs(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();
                    SpellManager.ClickRemoteLocation(Me.Location);
                    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
    }
}
 
here is the solutions for you...
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 int LastSpellID { 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;
                    }
                    if (Me.Combat
                        && Me.HealthPercent <= 85
                        && !buffExists(104312, Me)
                        && LastSpellID != 104312)
                    {
                        applyBuffs("Strange Glowing Mushroom");
                        return;
                    }
                    if (Me.Combat
                        && Me.HealthPercent <= 40
                        && !buffExists(104289, Me))
                    {
                        applyBuffs("Faintly-Glowing Herb");
                        return;
                    }
                    checkBuffs();
                    return;
                }
            }
            catch { }
        }
        public void checkBuffs()
        {

            if (!buffExists(147476, Me)
                && LastSpell != "永恆晨露" )
            {
                applyBuffs("永恆晨露");
            }
            if (!buffExists(147226, Me)
                && LastSpell != "世代之書")
            {
                applyBuffs("世代之書");
            }
            if (!buffExists(147055, Me)
                && LastSpell != "歌唱水晶")
            {
                applyBuffs("歌唱水晶");
            }
            if (!buffExists(86569, Me)
                && LastSpellID != 86569)
            {
                applyBuffs("精神錯亂水晶");
            }
            if (!buffExists(104287, Me)
                && LastSpellID != 104287)
            {
                applyBuffs("風鶴之羽");
            }
            if (!buffExists(104335, Me)
                && LastSpellID != 104335)
            {
                dropBuffs("濃醇老埤周啤酒");
            }
            if (!buffExists(104334, Me)
                && LastSpellID != 104334)
            {
                dropBuffs("混濁老埤周啤酒");
            }
            if (!buffExists(104336, Me)
                && LastSpellID != 104336)
            {
                dropBuffs("泡沫老埤周啤酒");
            }
            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;
                }
            }
        }
        public void dropBuffs(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();
                    SpellManager.ClickRemoteLocation(Me.Location);
                    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
    }
}




Thank you, though this is Taiwan server, but I know how to modify it
 
For russia

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
{
snip
}

SVN to latest version, it should work with every wow client :)
 
Awesome, can make it use Battle Standard of Coordination every 15min, all this kind of plugin i used is not updated, farming for shaopan REP...
 
Runs perfect on my blood DK 561ilvl :) No problem at all.. Im Honored in 6h from friendly
 
Back
Top