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

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

DK Plugin Help Request

phasechange

Member
Joined
Sep 6, 2010
Messages
257
I'm trying to make a plugin that will constantly cast Death and Decay on cooldown at my current location,

if (!Me.Combat && Me.Class == WoWClass.DeathKnight)
{
Lua.DoString("RunMacroText(\"/cast Death and Decay\")");
Logging.Write(Color.Purple, "Kill Them All =D");
BuffTimer.Reset();
}

Is what I have so far and it does cast death and decay but I need to add in some code so that the bot will click the green circle to lay it down at the location. Can anyone help me with this?
 
why so complicated?
PHP:
SpellManager.Cast("Death and Decay")
LegacySpellManager.ClickRemoteLocation(Me.CurrentTarget.Location)
 
Ugh, It's not compiling at all, thanks for that bit of code but would you be able to give me the entire thing so that It can compile? This is my 1st time trying to make a plugin.
 
add this at the beginning of your codefile

PHP:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using CommonBehaviors.Actions;

using Styx;
using Styx.Combat.CombatRoutine;
using Styx.Logic;
using Styx.Logic.Combat;
using Styx.Logic.Pathing;
using Styx.WoWInternals;
using Styx.WoWInternals.WoWObjects;

dunno which one is needed atm, haven't tested
 
Can anyone give me a working version of this so I can inspect it and learn? I've tried searching for plugins of similar targetted abilities but have had no luck. This is what I have so far:

using System;
using System.Collections.Generic;
using System.Threading;
using System.Diagnostics;
using System.Globalization;
using System.Text;
using Styx;
using Styx.Plugins.PluginClass;
using Styx.Logic.BehaviorTree;
using Styx.Combat.CombatRoutine;
using Styx.Helpers;
using Styx.WoWInternals;
using Styx.Combat.CombatRoutine;
using Styx.WoWInternals.WoWObjects;
using Styx.Patchables;
using Styx.Logic;
using Styx.Plugins;
using Styx.Combat.CombatRoutine;
using Styx.Helpers;
using Styx.Logic.BehaviorTree;
using Styx.Logic.Combat;


using Styx.Logic.POI;
using Styx.Logic.Pathing;
using Styx.Logic.Profiles;
using Styx.Logic;
using Styx.Plugins.PluginClass;
using Styx.WoWInternals.WoWObjects;
using Styx.WoWInternals;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Net;
using System.Reflection;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Xml.Linq;
using System;


using Styx;
using Styx.Logic;
using Styx.Helpers;
using Styx.Logic.Combat;
using Styx.Logic.Pathing;
using Styx.WoWInternals;
using Styx.Combat.CombatRoutine;
using Styx.WoWInternals.WoWObjects;
using Styx.Plugins.PluginClass;




namespace DnD
{
public class DnD : HBPlugin
{
// Stop Config Here


public override string Name { get { return "DnD"; } }
public override string Author { get { return "Stilllogicz"; } }
public override Version Version { get { return new Version(1, 0, 3); } }
public override bool WantButton { get { return false; } }


public override void Pulse()
{


{
SpellManager.Cast("Death and Decay");
LegacySpellManager.ClickRemoteLocation(Me.CurrentTarget.Location);
}




}
}
}



In HB it says: DnD.cs could not be compiled! Compiler errors:
File: DnD.cs Line: 67 Error: The name 'Me' does not exist in the current context

Apparently it has something to do with the
LegacySpellManager.ClickRemoteLocation(Me.CurrentTarget.Location);
 
Last edited:
Back
Top