Author Topic: I need a client-side framework  (Read 1205 times)

You don't need to have multiple functions, you could pass an argument to a single function and have it to different things depending on that argument:

Code: [Select]
function afkBot(%dir)
{
cancel($afkBot);

switch(%dir)
{
case 0:
moveForward(1);
schedule(500,0,moveForward,0);
case 1:
moveRight(1);
schedule(500,0,moveRight,0);
case 2:
moveBackward(1);
schedule(500,0,moveBackward,0);
case 3:
moveLeft(1);
schedule(500,0,moveLeft,0);
}

%dir++;
if(%dir >= 3)
%dir = 0;

$afkBot = schedule(1000,0,afkBot,%dir);
}

Just an example.

or you could just do

function antiafk(%on)
{
cancel($sched);
if(!%on)
return;

moveforward(1);
schedule(250, 0, moveforward, 0);
schedule(250, 0, movebackward, 1);
schedule(500, 0, movebackward, 0);
schedule(500, 0, antiafk, 1);
}

or you could just do

function antiafk(%on)
{
cancel($sched);
if(!%on)
return;

moveforward(1);
schedule(250, 0, moveforward, 0);
schedule(250, 0, movebackward, 1);
schedule(500, 0, movebackward, 0);
schedule(500, 0, antiafk, 1);
}
You don't understand luggy. I'm trying to come up with the most realistic type of AFK bot, not just looping through a set of commands, god that doesn't even use random movements.

i'd like to point out that no decent afk bot can hold a conversation
and that you stand no chance of making your afk bot look 'real'

i'd like to point out that no decent afk bot can hold a conversation
and that you stand no chance of making your afk bot look 'real'

Hey hey now. Back when i started learning TS in an old game written in TS, i made a pretty human like bot. Relevant to the game itself of course lol.

You cannot imitate real movements through script. It's just not physically possible.
This is about as good as it can get.

You cannot imitate real movements through script. It's just not physically possible.
This is about as good as it can get.

You are right and wrong. Yes, physically, he cannot at this time. Physically though, it is possible but isn't worth the effort - which is what you probably meant.

You are right and wrong. Yes, physically, he cannot at this time. Physically though, it is possible but isn't worth the effort - which is what you probably meant.
No i meant it isn't physically possible

make a torquescript human brain then i'll change my mind

i'd like to point out that no decent afk bot can hold a conversation
and that you stand no chance of making your afk bot look 'real'
Haha, I set this goal, and I'm going to achieve it.

Haha, I set this goal, and I'm going to achieve it.
Good luck because so far nobody in the entire world has done it.

Good luck because so far nobody in the entire world has done it.
I could care less.

It's funny because he can barely code basic stuff, let alone an artificial intelligence smart enough to fool a human being

It's funny because he can barely code basic stuff, let alone an artificial intelligence smart enough to fool a human being
which has never happened ever let alone torquescript

hey metro, when you get that done do you mind if I look over the script?

which has never happened ever let alone torquescript

hey metro, when you get that done do you mind if I look over the script?
I'm not sure, I don't really plan to give or show the script out to anyone.
Because later I am going to create an auto-fight bot.
« Last Edit: July 31, 2012, 07:15:58 AM by PurpleMetro »