Results 1 to 8 of 8

Thread: Random Events

  1. #1
    Join Date
    Sep 2007
    Posts
    118
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Random Events

    I couldn't find any old thread about this, so I decided to make a new one.

    Okey, first of all.
    Im really confused when it comes to use the function "FindNormalRandoms".
    I don't really know how to use it, since it does a couple of checks for randoms and if anyone of these are true, it sets result:=True and on some of the checks, it also solves the random event (if I'm correct?). So:

    - Why are only some randomevents solved and the ones that can't be solved, why doesn't it just do: "Logout; Exit;" with those?
    - Why are not all randomevents included in this function, like SandWich lady and others?
    - I can't seem to find a function/procedure to look for some random events, like the sandwich lady and frog (except for frogcave), only functions to solve them. Why? and how are we supposed to find these random events?
    - How am I (and others) supposed to use the function "FindNormalRandoms"?

    Thanks in advance, would be really nice if someone helped me out with this.

  2. #2
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hey,

    FindNormalRandoms will find and attempt to solve the normal randoms, talking, mod, mime, dead, maze, lamp, box etc. Just call it in your script

    Sandwich lady comes under talking randoms, there is a solver for it, it works for some and not for others.

    SCAR Code:
    Function FindFastRandoms: Boolean;    // By WT-Fakawi.
    Var
      i: Integer;
    Begin
    if not LoggedIn then Exit;
      For I := 1 To 11 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';
                   Players[CurrentPlayer].Active := False;
                   Logout;
                   Exit;
                 End;
               End;
           8 : If RC Then
                  Result:=True;
           9 : If FindFight Then
                    Result := True;
           10: If FindTalk Then
                 Result := True;
           11: If FindCerter Then
                 Result := True;
        End;
        Wait(1);
      End;
    End;

    SCAR Code:
    procedure AntiRandom;
    begin
      if not LoggedIn then Exit;
      FindTalk;
      FindFastRandoms;
      FindNormalRandoms;
      FindLamp('Woodcutting');
      SolvePinball;
    end;

    Example for you.

    If you are in a random that cannot solve, you will be logged out and move onto next character (if setup properly). Therefor you need to be able to exit the main loop safely and quick (checking if logged in).

    Also you need to call your main antirandom procedure often enough to find the randoms.

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  3. #3
    Join Date
    Sep 2007
    Posts
    118
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Does that "AntiRandom" procedure, you just showed, solve the other randomevents, like the sandwich lady?

  4. #4
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Sandwich lady is a Talking random, so yes.

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  5. #5
    Join Date
    Sep 2007
    Posts
    118
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    But is really all that code in 'AntiRandom' nessecary? doesn't FindNormalRandoms take care of for example. FindTalk?

  6. #6
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Doublechecking causes no harm, FindTalk checks to see if theres a talking random first. Then does the rest of the stuff (fast). I guess theres no need for the FindNormalRandoms.

    Plus, you should be making your own antirandom procedure, so you may have it anyway you like, aslong as it works

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  7. #7
    Join Date
    Sep 2007
    Posts
    118
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by rogeruk View Post
    Doublechecking causes no harm, FindTalk checks to see if theres a talking random first. Then does the rest of the stuff (fast). I guess theres no need for the FindNormalRandoms.

    Plus, you should be making your own antirandom procedure, so you may have it anyway you like, aslong as it works
    Ok. I really didn't get the part with solving the other randoms like the sandwich lady (and everything else not included in AntiRandoms.scar) but your help made it somewhat easier to understand. Thanks alot for your help

  8. #8
    Join Date
    Dec 2006
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks rogeruk, I have also wondered about this for some time... but have been away from macroing, just started getting back into it... always nice to know how some things work... occassionally

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. No Random Events!!
    By Swift in forum RuneScape News and General
    Replies: 52
    Last Post: 03-15-2008, 02:27 PM
  2. Help with random events
    By ben123321 in forum OSR Help
    Replies: 6
    Last Post: 11-22-2006, 12:09 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
  •