View Full Version : FindNormalRandoms
omgh4x0rz
02-11-2007, 08:15 PM
Does anyone know what is not included in the normal randoms?
Mjordan
02-11-2007, 08:20 PM
Does anyone know what is not included in the normal randoms?
well i would help you, but it would be very simple for you to look yourself. open up SCAR > Tools > Explore Folder > Includes Folder > SRL > SRL (again) > then you can find it from there ;)
omgh4x0rz
02-11-2007, 09:52 PM
I did.
I just figured one of the SRL peeps would be able to give me an answer faster, instead of digging through runescape to find out what all the randoms are, and then matching them up to what is coded into the procedure.
WT-Fakawi
02-11-2007, 09:58 PM
Here is a short description of FindNormalRandoms;
function FindNormalRandoms: Boolean;
var
i: Integer;
begin
for i := 1 to 16 do
begin
case I of
1: CloseWindow;
2: if FindTalk then //<- Finds and handles All Talking Randoms.
Result := True;
3: if FindDead then //<- looks for text "oh dear, you're dead".
Result := True;
4: if FindMod then // Searches for modbitmap in chattextheader.
Result := True;
5: if FindMime then // scans for two pixels indicating mime.
Result := True;
6: if FindMaze then // scans for two pixels indicating maze.
Result := True;
7: if FindQuiz then // scans for two pixels indicating quiz.
Result := True;
8: if FindDemon then // scans for two pixels indicating demon.
Result := True;
9: if FindScapeRune then // // scans for text "scaperune".
Result := True;
10: if FindTalk then // Call it twice
Result := True;
11: if FindLamp(LampSkill) then // Maybe we missed it?
Result := True;
12: if (FindNewBox) then // box handler.
begin
Result := True;
if (UseBoxSolver) then
SolveBox
else
GambleNewBox;
end;
13: if FindTrade then
Result := True;
14:
begin
if NoGameTab then // Certain GameTab are missing, indicating we are trapped inside a random.
begin
Result := True;
Players[CurrentPlayer].loc := 'No GameTab';
Logout;
Exit;
end;
end;
15: SaveToChatLog; // saves all chat to ChatLog.txt at /scar root folder.
16: if RC then // Handles Remote Control. See WIKI
Result := True;
end;
Wait(1);
end;
end;
Usage:
Call FindNormalRandoms at least once every three seconds. This is really bare minimum. You still miss a lot of Talking Randoms, you will be unlucky, believe me. I have converted all my Wait 's inside a script -since most of the time in runescapespace you are waiting for something to happen- to FTWait; This Procedure waits approx. 250 msec (1/4 second) and performs one FindTalk. FindTalk is the pumping heart of SRL 's Talking Randoms. It handles/solves ALL talking Randoms!
So FTWait(4); waits approx. 1 second and performs 4 FindTalk's for you.
Hope this helps.
omgh4x0rz
02-13-2007, 10:15 PM
Thanks Fakawi! You're my hero! :D
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.