Log in

View Full Version : SRL antirandom error



m0u53m4t
06-27-2006, 09:48 PM
When I got the random that takes you to the graveyard, the script stopped and gave this error:
[Runtime Error] : Out Of Range in line 2214 in script C:\Program Files\programs\rs\auto\SCAR 2.03\includes\srl\srl\core\AntiRandoms.scar
What do I do?

WhiteShadow
06-27-2006, 10:11 PM
Did you have a Nick?

The Prince of Randomness?
06-28-2006, 03:45 AM
Did you add your nick name to the players.nick in the player array?
Sorry had to clarify Whte.

WhiteShadow
06-28-2006, 03:55 AM
No problem Prince. I assumed people would know that. :p

Eludis
06-28-2006, 07:19 AM
Isn't the Leo random currently un solved?

m0u53m4t
06-28-2006, 12:16 PM
I didn't. Do I need a player array for every SRL script? I thought thats for only when you want them to switch accounts...

WhiteShadow
06-28-2006, 12:27 PM
I didn't. Do I need a player array for every SRL script? I thought thats for only when you want them to switch accounts...
Some randoms in SRL are solved by looking for a portion of your name in it's main screen which is the "Nick". So you have to have a "Nick" bitmapmask created. There are 2 ways to do so.

First type is for players already logged in or one player scripts.


const
Nick = '';//3 -4 letters of a username

begin
NickNameBMP := CreateBitmapMaskFromText(.Nick, UpChars);
end.


2nd Type


procedure DeclarePlayers;
begin
HowManyPlayers := 8; // Set Number of Players here.
NumberOfPlayers(HowManyPlayers);
CurrentPlayer:= 0;

Players[0].Name :='username'; //UserName
Players[0].Pass :='passsss'; //Password
Players[0].Nick :='erna'; //Nick [3 - 4]letters
Players[0].Active:=True; //True or False, Activity.
end;

begin
DeclarePlayers;
LoginPlayer;
end.


LoginPlayer creates a bitmap mask of Players[CurrentPlayer].Nick. Player must start logged out. This is used with multi user compatibility.

WT-Fakawi
06-28-2006, 12:30 PM
Isn't the Leo random currently un solved?

Leo or any other non-talking random that changes the state of the GameTab, will safely log you out. We are working on a system that will allow you to detect which Gametab random we encountered.

Just make sure that you call NoGameTab (which is a part of FindNormalRandoms) once and a while.