• 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
      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.
       
    2. kravitz

      kravitz New Member

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

      Pasterke Well-Known Member Buddy Store Developer

      Joined:
      Dec 12, 2011
      Messages:
      1,228
      Likes Received:
      48
      Trophy Points:
      48
      Open once with Notepad the file Timeless.cs and paste line 97. Use Notepad or Notepad++ but not Word or Wordpad.
       
    4. btmouse

      btmouse New Member

      Joined:
      Dec 17, 2012
      Messages:
      7
      Likes Received:
      0
      Trophy Points:
      0
      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");
      }
       
    5. aserisk

      aserisk New Member

      Joined:
      Mar 2, 2012
      Messages:
      2
      Likes Received:
      0
      Trophy Points:
      1
      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
          }
      }
      
       
    6. btmouse

      btmouse New Member

      Joined:
      Dec 17, 2012
      Messages:
      7
      Likes Received:
      0
      Trophy Points:
      0



      Thank you, though this is Taiwan server, but I know how to modify it
       
    7. Livcam

      Livcam New Member

      Joined:
      Feb 4, 2011
      Messages:
      32
      Likes Received:
      0
      Trophy Points:
      0
      Maybe for Russia TOO ???
       
    8. btmouse

      btmouse New Member

      Joined:
      Dec 17, 2012
      Messages:
      7
      Likes Received:
      0
      Trophy Points:
      0
      If support for multiple languages​​, it would be a perfect work!
       
    9. Hbuddy2012

      Hbuddy2012 New Member

      Joined:
      Nov 8, 2012
      Messages:
      34
      Likes Received:
      0
      Trophy Points:
      0
      Hy,

      asked Pasterke to post it here as long as the Plugin is not supporting multilingual....

      i just made some changes to the plugin so it should right now work for the german WOW Client too....

      View attachment TimelessBuffs.zip


      Greetings
      Hbuddy
       
    10. Pasterke

      Pasterke Well-Known Member Buddy Store Developer

      Joined:
      Dec 12, 2011
      Messages:
      1,228
      Likes Received:
      48
      Trophy Points:
      48
      Should now use every language :)
       
    11. Livcam

      Livcam New Member

      Joined:
      Feb 4, 2011
      Messages:
      32
      Likes Received:
      0
      Trophy Points:
      0
      Not worked for russia
       
    12. Pasterke

      Pasterke Well-Known Member Buddy Store Developer

      Joined:
      Dec 12, 2011
      Messages:
      1,228
      Likes Received:
      48
      Trophy Points:
      48
      SVN to latest version, it should work with every wow client :)
       
    13. btmouse

      btmouse New Member

      Joined:
      Dec 17, 2012
      Messages:
      7
      Likes Received:
      0
      Trophy Points:
      0
    14. Pasterke

      Pasterke Well-Known Member Buddy Store Developer

      Joined:
      Dec 12, 2011
      Messages:
      1,228
      Likes Received:
      48
      Trophy Points:
      48
      If you not have a flask buff, he will always use Crystal of Insanity. SVN to latest update :)
       
    15. csl5707

      csl5707 New Member

      Joined:
      Sep 1, 2012
      Messages:
      284
      Likes Received:
      0
      Trophy Points:
      0
      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...
       
    16. Bunshinsaba

      Bunshinsaba New Member

      Joined:
      Oct 20, 2013
      Messages:
      2
      Likes Received:
      0
      Trophy Points:
      0
      Awesome and very helpfull,thanks for your work :eek:
       
    17. Anax

      Anax New Member

      Joined:
      Aug 4, 2013
      Messages:
      44
      Likes Received:
      0
      Trophy Points:
      0
      works amazing thank you!
       
    18. rosek

      rosek New Member

      Joined:
      Jun 19, 2012
      Messages:
      457
      Likes Received:
      3
      Trophy Points:
      0
      zip file doesnt work with german client
      SVN work perfekt

      TY
       
    19. Teveel

      Teveel Active Member

      Joined:
      Sep 5, 2011
      Messages:
      2,144
      Likes Received:
      8
      Trophy Points:
      38
      Thanks :)
       
    20. Vilnis

      Vilnis New Member

      Joined:
      Jun 27, 2012
      Messages:
      2
      Likes Received:
      0
      Trophy Points:
      0
      Runs perfect on my blood DK 561ilvl :) No problem at all.. Im Honored in 6h from friendly
       

    Share This Page