rendered paste bodyusing System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using InnerSpaceAPI;
using ISXWoW;
namespace ISX_Botfucker
{
public class clsMain
{
public static clsMain Instance;
public static ISX_Botfucker Bot;
public clsMain()
{
if (clsMain.Instance == null)
{
clsMain.Instance = this;
}
}
}
public class clsPulse
{
public static clsPulse Instance;
public static ISX_Botfucker Bot;
public clsPulse()
{
if (clsPulse.Instance == null)
{
clsPulse.Instance = this;
}
}
bool ThreadMade;
bool HasStarted;
Thread botMainThread;
public void pausePlay()
{
if (!ThreadMade)
{
botMainThread = new Thread(new ThreadStart(Pulse));
ThreadMade = true;
HasStarted = true;
botMainThread.Start();
}
if (!HasStarted)
{
botMainThread.Start();
HasStarted = true;
return;
}
if (HasStarted)
{
try
{
botMainThread.Abort();
}
finally
{
}
HasStarted = false;
return;
}
}
public void Pulse()
{
Bot.UpdateStats();
}
}
}