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

Death Strike if dark succor buff.

jrentfro

New Member
Joined
Aug 18, 2013
Messages
5
Reaction score
0
Hey there, anyone able to build a simple plugin that overrides routine in order to cast death strike whenever the dark succor buff is active? Thank you.
 
Just to get you started :)

Cast if TARGET has the buff...
Code:
var unit = StyxWoW.Me.CurrentTarget;

if (unit !=null && unit.HasAura("Dark Succor")
{
SpellManager.Cast("Death Strike")
}

or

Cast if ME has the buff...
Code:
var unit = StyxWoW.Me.CurrentTarget;

if (unit !=null && StyxWoW.Me.HasAura("Dark Succor")
{
SpellManager.Cast("Death Strike")
}
 
Last edited:
Thank you very much.
Like this?
Code:
// Dark Succor
// Version 1
// By JRentfro

using System;

using Styx;
using Styx.Helpers;
using Styx.Common;
using Styx.Plugins;
using Styx.WoWInternals;
using Styx.WoWInternals.WoWObjects;
using Styx.TreeSharp;
using Buddy.Coroutines;


namespace DarkSuccor
{
	public class DarkSuccor : HBPlugin
	{

		public override string Name { get { return "Death Strike"; } }
		public override string Author { get { return "JRentfro"; } }
		public override Version Version { get { return new Version(1, 0); } }
		public override bool WantButton { get { return false; } }
		
		private static LocalPlayer Me { get { return StyxWoW.Me; }}

		public override void Pulse()
		{
			var unit = StyxWoW.Me.CurrentTarget;

			if (unit !=null && StyxWoW.Me.HasAura("Dark Succor")
			{
			SpellManager.Cast("Death Strike")
			}
		}
	}
}

Getting
Code:
Compiler Error: Documents\Honorbuddy\Plugins\DarkSuccor\DarkSuccor.cs(33,56) : error CS1026: ) expected
Compiler Error: Documents\Honorbuddy\Plugins\DarkSuccor\DarkSuccor.cs(35,37) : error CS1002: ; expected
 
Last edited:
at least you tried a bit... :P

add

PHP:
using Styx.WoWInternals;

together with the other "using" stuff and to fix ur compiler errors

PHP:
if (unit !=null && StyxWoW.Me.HasAura("Dark Succor"))
{
    if (SpellManager.CanCast("Death Strike"))
    {
        SpellManager.Cast("Death Strike");
    }
}
 
Last edited:
Back
Top