I'm trying to get into coding some of these plugins but having some issues. I'm trying something simple like buffing myself with Refreshment when the buff comes off and for some reason the code isn't working when I run the plugin it never does anything. Can someone tell me what I am doing wrong?
I've just been looking at other people's codes and going off them trying to figure it out. So one part of the code I don't understand is the buff time <= 2 I'm not sure what 2 is just seen it on another code and decided to use it and try it out.
I compiled in the Plugin Editor and then run the default.dll in the Manager and nothing happens it never buffs me.
I've just been looking at other people's codes and going off them trying to figure it out. So one part of the code I don't understand is the buff time <= 2 I'm not sure what 2 is just seen it on another code and decided to use it and try it out.
Code:
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Threading;
using System.Collections.Generic;
using System.Linq;
using ArcheBuddy.Bot.Classes;
namespace DefaultNameSpace{
public class DefaultClass : Core
{
public static string GetPluginAuthor()
{
return "JoeBobJr";
}
public static string GetPluginVersion()
{
return "1.0.0.0";
}
public static string GetPluginDescription()
{
return "Auto Buff: Defiler";
}
//Call on plugin start
public void PluginRun()
{
while (true){
while (skillCooldown("Refreshment") == 0 && buffTime("Refreshment") <= 2) {
Thread.Sleep (100);
}
UseSkill ("Refreshment", false, true);
Log("Buff Used: Refreshment");
}
//Call on plugin stop
public void PluginStop()
{
}
}
}
}
I compiled in the Plugin Editor and then run the default.dll in the Manager and nothing happens it never buffs me.