Log in

View Full Version : if(...)then...logout



Jason2gs
02-20-2007, 09:22 PM
I wan to add the follow procedure:

program New;
{.include SRl/SRL.scar}
procedure LogMeOut;
begin
wait(500+random(200));
if(InChat('zxcforqwe'))then
begin
Logout;
end;
end;

begin
SetupSRL;
repeat
LogMeOut;
until(false)
end.

To the script I like using (Four's powerchopper). Only problem is that I don't know where to place it.

I tried placing it at the top, above the other procedures, but that didn't work for some reason.

Please help,

Mike.

YoHoJo
02-20-2007, 09:25 PM
Im a friend of fours, ill talk to him about it.
I would change the procedure to

procedure LogMeOut;
begin
if(InChat('zxcforqwe'))then
Logout;
end;

And palce it in the antirandom procedure instead of the loop itself.

Jason2gs
02-20-2007, 09:28 PM
Thanks :)

And I guess you're right, that begin and end aren't needed.

Jason2gs
02-20-2007, 09:33 PM
So the procedure would be...

//->Anti Randoms<-//
Procedure TheAntiRandoms;
Begin

if(InChat('zxcforqwe'))then
begin
Logout;
wait(500+random(100));
end;

Status('Random Check')
FindNormalRandoms;
wait(10)
FindTalk;
wait(10)
if (FindFight) then
begin
Status('Running From a fight.')
RunAwayDirection('E');
Wait(8500 + random(3500));
RunBack;
end;
Wait(10);
FindTalk;
end;

Jason2gs
02-20-2007, 09:36 PM
IT WORKS!!

Thank you so much!

Edit: Incase you were wondering, I want to use this as an RC (at my computer), so I can switch players without having to restart the whole script. Smart, eh?

Smartzkid
02-20-2007, 09:45 PM
Just wondering...but does that script use multiple players?

Jason2gs
02-20-2007, 09:46 PM
Yep. How come?

Smartzkid
02-20-2007, 09:50 PM
Well...That would just log you out for a bit, then the script would probably log right back in

Unless thats what you wanted it to do...

Jason2gs
02-20-2007, 10:20 PM
The script is set up so that if the active slave gets logged out, it will log the next slave in line, in.

Smartzkid
02-20-2007, 10:55 PM
Oh, I see; Mine logs back in unless something happens that the account can't run. If it lags out or something, it should log back in, till the time for that account is done...

EDIT:
Currently I'm at build 1230 of my powercutter. When I get to build 2000 or I get it to work perfectly 100% of the time, I'm gonna release it. Then at build 2500, I'll apply for SRL Membership with it. ;) hopefully by then, you'll be done with your autoresponder :D wouldn't mind having that in my script =P

:p just had to get that in =)

Oh, also, on these forums, we don't encourage using our accounts as 'slaves' or 'mules'; I'm not accusing you of anything, just calling an account a slave is likely to get you looked down upon.

Jason2gs
02-21-2007, 12:06 AM
RC stands for Remote Control and enables the user to Remotely Administer his running script INGAME from another runescape client, i.e. from work or from school. Commands are send through Private Chat from the Master (You) to the Slave (bot). You are directly giving your bot orders.

Also, what do you mean by "build"? How many lines you have?

As for the AutoResponder, I have a few things to say about when I get done with it.

I'm not going to release it to the general public. I might use it in hopes of getting an SRL Membership, most likely not.

That being said, I ask that you keep the PowerChopper/AutoResponder for personal use only. ;)

Reason why? Same reason the Devs-Only AutoResponder is just that. Devs-Only. If enough people get ahold of one AutoResponder, jagex will catch on and it'll eventually get banned.

Thanks!

Mike.