• Visit Rebornbuddy
  • [Plugin] Path of Frost - DK Grind Helper

    Discussion in 'Movement' started by xsol, Sep 29, 2012.

    1. speshulk926

      speshulk926 Community Developer

      Joined:
      Dec 8, 2014
      Messages:
      911
      Likes Received:
      17
      Trophy Points:
      18
      Did you try it? I don't see a reason why it wouldn't.


       
    2. Blueing

      Blueing Member

      Joined:
      Mar 17, 2012
      Messages:
      39
      Likes Received:
      0
      Trophy Points:
      6
      Code:
      using System;
      using System.Collections.Generic;
      using System.Text;
      using System.Windows.Media;
      
      using Styx;
      using Styx.Common;
      using Styx.CommonBot;
      using Styx.Plugins;
      using Styx.WoWInternals;
      using Styx.WoWInternals.WoWObjects;
      
      namespace XSOL
      {
          class PathOfFrost : HBPlugin
          {
              public override string Name { get { return "PathOfFrost"; } }
              public override string Author { get { return "xsol"; } }
              public override Version Version { get { return new Version(1, 0, 0, 0); } }
      
              public override bool WantButton { get { return true; } }
              public override string ButtonText { get { return "N/A"; } }
      
              private static LocalPlayer me = StyxWoW.Me;
      
      
              public PathOfFrost()
              {
      
              }
      
      public DateTime lastuse = DateTime.Now;
              public override void Pulse()
              {
                  if (!StyxWoW.IsInGame)
                  {
                      return;
                  }
      
                  if (!me.Combat)
                  {
                      if (!me.Buffs.ContainsKey("Path of Frost"))
                      {
                          if(lastuse.AddSeconds(7) < DateTime.Now) {
                              SpellManager.Cast("Path of Frost");
                              lastuse = DateTime.Now;
                          }
                      }
                  }
              }
      
      
              public override void OnButtonPress()
              {
      
              }
          }
      }
      updated it, also to not spam path of frost if something out of combat doenst want us to do
       

    Share This Page