Code:
using System;
using System.Threading;
public class CustomClass
{
float RangeTemps = 0;
public float Range { get { return RangeTemps; } }
public void Initialize()
{
LoadSpell();
while (API.Bot.IsLaunchedBot)
{
Fight();
Buff();
Thread.Sleep(100);
}
}
Struct.Spell Stealth = new Struct.Spell();
Struct.Spell CheapShot = new Struct.Spell();
public void LoadSpell()
{
Stealth.Name = "Stealth";
Stealth.Cooldown = 10;
CheapShot.Name = "Cheap Shot";
CheapShot.Cooldown = "15";
CheapShot.Range = "1";
}
public void Fight()
{
if (!Stealth.HaveBuff())
{
Stealth.Launch();
}
if (API.Bot.IsLaunchedBot && API.Info.PlayerInfo.IsFight && !API.Info.PlayerInfo.IsDied)
{
if (Stealth.HaveBuff())
{
if (CheapShot.isReady() && API.Info.TargetInfo.Get_Distance < CheapShot.Range)
{
CheapShot.Launch();
}
}
}
}
For anybody making a custom class
For use with Wow-Robot
And for anybody who notices, you CAN use this as a buff spell by simply inserting
Code:
public void Buff()
{
if (API.Bot.IsLaunchedBot && !API.Info.PlayerInfo.isMounted)
{
if (API.Info.PlayerInfo.IsDied)
{
Stealth.Reset();
}
else
{
if (!Stealth.HaveBuff())
{
Stealth.Launch();
}
}
}
}
And yes, you can replace cheapshot with pounce