Mordark
Community Developer
- Joined
- Mar 31, 2014
- Messages
- 291
- Reaction score
- 4
Does just what you would assume.
While running and when stealth comes off of cool down it casts Stealth.
While running and when stealth comes off of cool down it casts Stealth.
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 "Mordark";
}
public static string GetPluginVersion()
{
return "0.0.1.0";
}
public static string GetPluginDescription()
{
return "Stealth4Me";
}
public void UseSkillAndWait(string skillName, bool selfTarget = false)
{
while (me.isCasting || me.isGlobalCooldown)
{
Thread.Sleep(50);
}
if (!UseSkill(skillName, false, selfTarget))
{
while (me.isCasting || me.isGlobalCooldown)
{
Thread.Sleep(50);
}
}
}
public void PluginRun()
{
SetGroupStatus("Stealth", true);
Log(DateTime.Now.ToShortTimeString() + " ==> Stealth4Me has started <==");
while (gameState != GameState.Ingame || !GetGroupStatus("Stealth"))
{
Thread.Sleep(100);
}
while(true)
{
if (isSkillLearned("Stealth") && skillCooldown("Stealth") == 0 && GetGroupStatus("Stealth"))
{
UseSkillAndWait("Stealth", true);
Log("Used: Stealth");
Thread.Sleep(100);
}
}
}
public void PluginStop()
{
}
}
}
Last edited: