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

[Plugin] Path of Frost - DK Grind Helper

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
 
Back
Top