SRL Archive - Test corner

Is it safe to say.....


Bramble

2007-10-10 22:31:26

ok, if after every click type movement you do, you search for randoms, this would be the most effective way possibly right, like for example in my script i made this procedure
Procedure Rmouse(x,y,xran,yran:integer;left:boolean);
begin
mouse(x,y,xran,yran,left);
wait(2);
FindNormalRandoms;
If (Not(LoggedIn)) Then
begin
NextPlayer(false);
end;
end;

and instead of using mouse i use rmouse, you think this covers all the anti random needed if you search for every avail random u can possibly get doing what your doing?

Pancakes

2007-10-10 22:48:25

Sounds good except finding randoms takes a little while, could possibly screw up your script or lag it like hell.

Edit: I wouldn't go like that either I would go like this…


procedure RMouse(X, Y, XRan, YRan : Integer; Left : Boolean)
begin
if (Not(FindNormalRandoms)) then Mouse(X, Y, XRan, YRan, Left);+
end;
Just so it doesn't do the nextplayer thing, otherwise you might encounter unexpected switching players and such…

Bramble

2007-10-10 22:49:29

well, a good scripter normally has a wait after the click anyways right?

edit:: we are looking for the random after the click not before it, and i believe some randoms logging out is the way of handling it, so we do need to check if we are logged out

Tim0suprem0

2007-10-11 00:11:51

Findnormalrandoms takes like mutliple seconds, which usually isn't what you want even if you are waiting after a mouse click.

Maybe use findfastrandoms?

Dark_Sniper

2007-10-11 00:41:39

<3 your avy :p
mine was changed by ram :p


but anywho

even findfastrandoms would take to long…

what if you moved the mouse to a npc.

if the npc moves while your looking for randoms your screwed.

RAM

2007-10-11 00:51:02

I use….

{*******************************************************************************
procedure FTWait(Time: Integer);
By: WT-Fakawi
Description: Performs Wait and FindTalk. Time is multiple of 250 msec, so FTWait(4)
waits approx 1 sec and performs 4 FindTalks;
*******************************************************************************}

procedure FTWait(Time: Integer);
var
t: Integer;
begin
for T := 1 to Time do
begin
Wait(200 + Random(50));
FindTalk;
end;
end;


Instead of regular waits…..seeing that you have a wait in your mouse procedure anyways….

The Un-Named

2007-10-11 08:06:55

I really wouldn't call FindNormalRandoms, use something like FindTalk.

munk

2007-10-11 19:15:50

I use atleast an FTWait(2) after important mouse clicks. they usually end up looking something like….


mouse(x,y,3,3,true);
ftwait(2);
flag;
findnormalrandoms;

and thats always worked great for me.

mat_de_b

2007-10-12 12:10:02

Ive had find randoms take up to 5 seconds and an average of 1 sec… so this is quite slow… its unlikely that you get a random just as you clikc anyway…