• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • [Plugin] Use item buffs on Timeless Isle

    Discussion in 'Uncataloged' started by Pasterke, Sep 16, 2013.

    1. Pasterke

      Pasterke Well-Known Member Buddy Store Developer

      Joined:
      Dec 12, 2011
      Messages:
      1,228
      Likes Received:
      48
      Trophy Points:
      48
      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: Apr 11, 2015
      powa and kravitz like this.
    2. Beast

      Beast Member

      Joined:
      Apr 22, 2010
      Messages:
      618
      Likes Received:
      6
      Trophy Points:
      18
      Fuck yea buddy
       
    3. Beast

      Beast Member

      Joined:
      Apr 22, 2010
      Messages:
      618
      Likes Received:
      6
      Trophy Points:
      18
      SVN isnt working though
       
    4. Pasterke

      Pasterke Well-Known Member Buddy Store Developer

      Joined:
      Dec 12, 2011
      Messages:
      1,228
      Likes Received:
      48
      Trophy Points:
      48
      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. zeldrak

      zeldrak Well-Known Member

      Joined:
      Oct 25, 2010
      Messages:
      3,516
      Likes Received:
      25
      Trophy Points:
      48
      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.
       
    6. Pasterke

      Pasterke Well-Known Member Buddy Store Developer

      Joined:
      Dec 12, 2011
      Messages:
      1,228
      Likes Received:
      48
      Trophy Points:
      48
      Trying to fix the problem, now I ckecked on buff int, instead of buff string. I had the same problem. Try latest svn.
       
    7. zeldrak

      zeldrak Well-Known Member

      Joined:
      Oct 25, 2010
      Messages:
      3,516
      Likes Received:
      25
      Trophy Points:
      48
      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.
       
    8. Pasterke

      Pasterke Well-Known Member Buddy Store Developer

      Joined:
      Dec 12, 2011
      Messages:
      1,228
      Likes Received:
      48
      Trophy Points:
      48
      AH, didn't know HB had that problem. That can be the source then :)
       
    9. zeldrak

      zeldrak Well-Known Member

      Joined:
      Oct 25, 2010
      Messages:
      3,516
      Likes Received:
      25
      Trophy Points:
      48
      Yeah, aura detection in this release of HB seems to be broken, or spotty, at best.
       
    10. kravitz

      kravitz New Member

      Joined:
      Dec 9, 2011
      Messages:
      376
      Likes Received:
      6
      Trophy Points:
      0
      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
          }
      }
      
      
       
    11. zeldrak

      zeldrak Well-Known Member

      Joined:
      Oct 25, 2010
      Messages:
      3,516
      Likes Received:
      25
      Trophy Points:
      48
      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.
       
    12. Pasterke

      Pasterke Well-Known Member Buddy Store Developer

      Joined:
      Dec 12, 2011
      Messages:
      1,228
      Likes Received:
      48
      Trophy Points:
      48
      I wil add it. In the meanwhile got some new items to add.
       
    13. Cisem

      Cisem Member

      Joined:
      Dec 31, 2012
      Messages:
      252
      Likes Received:
      1
      Trophy Points:
      18
      Whould be perfect if you could add USE Sand-Covered Egg when you have x% health!
       
    14. Beast

      Beast Member

      Joined:
      Apr 22, 2010
      Messages:
      618
      Likes Received:
      6
      Trophy Points:
      18
    15. Beast

      Beast Member

      Joined:
      Apr 22, 2010
      Messages:
      618
      Likes Received:
      6
      Trophy Points:
      18
      Where is this addon you speak of that multi pulls
       
    16. ksmaze

      ksmaze Member

      Joined:
      Sep 4, 2012
      Messages:
      239
      Likes Received:
      1
      Trophy Points:
      18
      Yeah, I am interest in it, too. can you share with us?

      Sent from my Nexus 4 using TheBuddyForum mobile app
       
    17. Pasterke

      Pasterke Well-Known Member Buddy Store Developer

      Joined:
      Dec 12, 2011
      Messages:
      1,228
      Likes Received:
      48
      Trophy Points:
      48
    18. Pasterke

      Pasterke Well-Known Member Buddy Store Developer

      Joined:
      Dec 12, 2011
      Messages:
      1,228
      Likes Received:
      48
      Trophy Points:
      48
      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.
       
    19. floppydrive

      floppydrive New Member

      Joined:
      Jan 10, 2012
      Messages:
      263
      Likes Received:
      1
      Trophy Points:
      0
      There is already a plug in that collects the eggs. Use the search button for Objectgather
       
    20. kravitz

      kravitz New Member

      Joined:
      Dec 9, 2011
      Messages:
      376
      Likes Received:
      6
      Trophy Points:
      0
      Error loading plugin. Plugin doesn't display as an option.

      PHP:
      [22:37:41.764 NCompiler Errorg:\HB_PROD\Plugins\TimelessBuffs\TimelessBuffs.cs(97,1) : error CS1525Invalid expression term '<<'
      [22:37:41.764 NCompiler Errorg:\HB_PROD\Plugins\TimelessBuffs\TimelessBuffs.cs(97,5) : error CS1525Invalid expression term '<<'
      [22:37:41.764 NCompiler Errorg:\HB_PROD\Plugins\TimelessBuffs\TimelessBuffs.cs(97,9) : error CS1525Invalid expression term '.'
      [22:37:41.764 NCompiler Errorg:\HB_PROD\Plugins\TimelessBuffs\TimelessBuffs.cs(97,10) : error CS1002: ; expected
      [22:37:41.764 NCompiler Errorg:\HB_PROD\Plugins\TimelessBuffs\TimelessBuffs.cs(97,14) : error CS1002: ; expected
      [22:37:41.764 NCompiler Errorg:\HB_PROD\Plugins\TimelessBuffs\TimelessBuffs.cs(106,1) : error CS1525Invalid expression term '=='
      [22:37:41.764 NCompiler Errorg:\HB_PROD\Plugins\TimelessBuffs\TimelessBuffs.cs(106,5) : error CS1525Invalid expression term '=='
      [22:37:41.764 NCompiler Errorg:\HB_PROD\Plugins\TimelessBuffs\TimelessBuffs.cs(107,13) : error CS1525Invalid expression term 'if'
      [22:37:41.764 NCompiler Errorg:\HB_PROD\Plugins\TimelessBuffs\TimelessBuffs.cs(109,1) : error CS1525Invalid expression term '>'
      [22:37:41.764 NCompiler Errorg:\HB_PROD\Plugins\TimelessBuffs\TimelessBuffs.cs(109,4) : error CS1525Invalid expression term '>'
      [22:37:41.764 NCompiler Errorg:\HB_PROD\Plugins\TimelessBuffs\TimelessBuffs.cs(109,7) : error CS1525Invalid expression term '>'
      [22:37:41.764 NCompiler Errorg:\HB_PROD\Plugins\TimelessBuffs\TimelessBuffs.cs(109,12) : error CS1002: ; expected
       

    Share This Page