Results 1 to 9 of 9

Thread: Anti-Random Fast or norm?

  1. #1
    Join Date
    Apr 2007
    Location
    Finland
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  2. #2
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    FindFastRandoms; (By wt-fakawi of course, and you have to give credits if you use it) Only looks for randoms that can't be solved and other things that aren't included in FindNormalRandoms; like mod detection, checks for scape rune, evil bob.....etc. and FindNormalRandoms; handles fights, talks, lunch lady, mystery boxes.....etc. So you need to call for FindNormalRandoms; , and you could/should use FindFastRandoms as well.

  3. #3
    Join Date
    Apr 2007
    Location
    Finland
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok, I'll put a comment on caps "MADE BY WT-FAKAWI THE LEGENDARY SUPER SCRIPTER!" You think he will be happy about that?

    EDIT: Where's the FindFastRandoms procedure in?

  4. #4
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    My script JAD Willow Get it, test it then copy the find fast randoms function

  5. #5
    Join Date
    Apr 2007
    Location
    Finland
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    And I mean in what SRL folder is the FindFastRandoms or is it just a lil piece of script or what ?

    Btw this is off-topic but what do the things next to avatars of the members mean? Like u got a nurse-teddy? What does it mean

  6. #6
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Its not in the SRL manual, its something people put in there scripts and credit others for.

    And that would be my helpers cup I am very proud of getting You get those when you do things (members only) I help a lot of people for scripting help so somebody (probably fakawi) gave me that. You can get the tutorial writers cup if you write some good tutorials, scripting cup for being a really good scripter...etc. Theres a stickied thread on what all there are and what they are for in general site discussion I think.

  7. #7
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by JAD View Post
    (members only)
    Not true. There's a non member with a tut cup I think. Avatars are members only.

  8. #8
    Join Date
    Dec 2006
    Location
    utah
    Posts
    1,427
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    try this ...
    make Sure You include {.include SRL/SRL/Misc/Trade.scar}
    or somthing like that....

    SCAR Code:
    Function FindFastRandoms: Boolean;    // By * WT-Fakawi * Edit By SKy
    var
      i: Integer;
    begin
      for i:=1 to 13 do
      begin
        case I of
           1:  If FindDead then
                 Result := True;
           2:  If FindMod then
                 Result := True;
           3:  If FindMime then
                 Result := True;
           4:  If FindMaze then
                 Result := True;
           5:  If FindQuiz then
                 Result := True;
           6:  If FindDemon then
                 Result := True;
           7: begin
                 if NoGameTab then
                 begin
                   Result := True;
                   Players[CurrentPlayer].loc := 'No GameTab';
                   Logout;
                   Exit;
                 end;
               end;
           8: begin
                 If InBlack then
                 begin
                   Result := True;
                   Players[CurrentPlayer].loc := 'InBlack';
                   Logout;
                   Exit;
                 end;
               end;
           9 : If RC Then Result := True;

           10 :   If FindFight Then
                 Begin
                   Result := True;
                   MakeCompass('N');
                   RunTo(RunDir, True);
                   MakeCompass('N');
                 End;

           11: If FindTalk Then Result := True;

           12: If HandleTrade Then Result := True;
           13: If FindNormalRandoms then result := True;
        End;
        Wait(1);
      end;
    end;

  9. #9
    Join Date
    Feb 2006
    Location
    L.A, USA
    Posts
    1,632
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Code:
    Function FindFastRandoms: Boolean;
    var
      i: Integer;
    begin
      for i:=1 to 8 do
      begin
        case I of
         1:  If FindDead then
               Result := True;
         2:  If FindMod then
               Result := True;
         3:  If FindMime then
               Result := True;
         4:  If FindMaze then
               Result := True;
         5:  If FindQuiz then
               Result := True;
         6:  If FindDemon then
               Result := True;
         7: begin
               if NoGameTab then
               begin
                 Result := True;
                 Players[CurrentPlayer].loc := 'No GameTab';
                 Logout;
                 Exit;
               end;
             end;
         7: begin
               if InBlack then
               begin
                 Result := True;
                 Players[CurrentPlayer].loc := 'InBlack';
                 Logout;
                 Exit;
               end;
             end;
         8: RC;
        end;
        wait(1);
      end;
    end;
    Code:
    function FindNormalRandoms: Boolean;
    var
      i: Integer;
    begin
      for i := 1 to 16 do
      begin
        case I of
          1: CloseWindow;
          2: if FindTalk then
              Result := True;
          3: if FindDead then
              Result := True;
          4: if FindMod then
              Result := True;
          5: if FindMime then
              Result := True;
          6: if FindMaze then
              Result := True;
          7: if FindQuiz then
              Result := True;
          8: if FindDemon then
              Result := True;
          9: if FindScapeRune then
              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
            begin
              Result := True;
              if (UseBoxSolver) then
                SolveBox
              else
                GambleNewBox;
            end;
          13: if FindTrade then
              Result := True;
          14:
            begin
              if NoGameTab then
              begin
                Result := True;
                Players[CurrentPlayer].loc := 'No GameTab';
                Logout;
                Exit;
              end;
            end;
          15: SaveToChatLog;
          16: if RC then
              Result := True;
        end;
        Wait(1);
      end;
    end;
    The function (FindFastRandoms) itself was initially invented because there are certain randoms you need to search a lot more times than others.

    For example, FindTalk you have to have that almost every everywhere... (it's inside FindNormalRandoms).

    What I like to do...
    FindTalk - almost all the times
    FindFastRandoms - 3 seconds or something
    FindNormalRandoms - 8 - 10 seconds..

    So it wouldn't be smart just to use one of the things because you'll miss some randoms, get me?

    But it's fine to just call FindNormalRandoms... it has everything.. except skill related randoms..

    Look through the functions and compare them. Then you know what this function is missing and what this one can be useful for.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. random events(PLZ HELP) need fast
    By monkeyskater1993 in forum OSR Help
    Replies: 3
    Last Post: 11-27-2007, 04:48 AM
  2. anti random
    By the scar noob in forum OSR Help
    Replies: 2
    Last Post: 12-22-2006, 05:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •