Nice script, mind if I add something so you can turn it off?
function startafk()
{
$afkon = true;
schedule(1000,0,afk);
}
function afk() //USE THIS COMMAND TO START THE BOT
{
if (!$afkon) return;
schedule(30000,0,afk);
%rand = getrandom(0,5);
if(%rand == 0)
commandToServer('messageSent', "If i'm dead take me to bed!");
if(%rand == 1)
commandToServer('messageSent', "I'm AFK, so I have the bot on.");
if(%rand == 2)
commandToServer('messageSent', "lol this is so random!");
if(%rand == 3)
commandToServer('messageSent', "I am winar!");
if(%rand == 4)
commandToServer('messageSent', "I own j00!");
if(%rand == 5)
commandToServer('messageSent', ":o");
}
function stopafk(%val) //USE THIS COMMAND TO STOP THE BOT
{
$afkon = false;
}
I havn't tested this, and I have to go now, I hope it doesn't crash your AoT.