Results 1 to 6 of 6

Thread: AntiRandom doesnt work

  1. #1
    Join Date
    Jul 2007
    Posts
    44
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default AntiRandom doesnt work

    I need some help with my script (yes again :P)

    I added

    SCAR Code:
    Function FindFastRandoms: Boolean;// credits to Wt-Fakawi
    var
      i: Integer;
    begin
      for i:=0 to 9 do
      begin
        case I of
         0:  If FindTalk then
         begin
           FindNormalRandoms;
         end;
         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;

              Logout;
              Exit;
            end;
            end;
         8: begin
               if InBlack then
               begin
                 Result := True;
                 Logout;
                 Exit;
               end;
             end;
           9: RC;
        end;
        FindFight;
        FindFightEx;
      end;
    end;

    Procedure NoRandoms;
    begin
      FindTalk;
      FindNormalRandoms;
      FindFastRandoms;
      SolvePinball;
      if (FindFight = true) then
      begin
        RunAwayDirection('w');
        wait(10000+Random(5000));
        RunBack;
      end;
    end;

    And did

    SCAR Code:
    begin
    SetUpSRL;
    NoRandoms;
    declarePlayers;
    login;
    activateclient;
    setup;
    repeat
    saitime;
    wait(2000+random(1000))
    attackLesser;
    until(false)
    end.

    I was afk , and found myself later at lumby. I went back, and ppl said i was killer by a drunken dwarf. AntiRandoms isnt working, does someone know why?

  2. #2
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    you never call:
    FindFastRandoms;

    you have added it. but never call it. so it wont search for randoms.
    SCAR Code:
    repeat;
      saiTime;
      Wait(2000 + Random(1000);
      NoRandoms;  
      AttackLesser;
      NoRandoms;  
    until(false);

  3. #3
    Join Date
    Jul 2007
    Posts
    44
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by rikjess View Post
    you never call:
    FindFastRandoms;

    you have added it. but never call it. so it wont search for randoms.
    SCAR Code:
    repeat;
      saiTime;
      Wait(2000 + Random(1000);
      NoRandoms;  
      AttackLesser;
      NoRandoms;  
    until(false);
    So, this would be working?

    SCAR Code:
    begin
    SetUpSRL;
    declarePlayers;
    login;
    activateclient;
    setup;
    repeat
    saitime;
    wait(2000+random(1000))
    attackLesser;
    FindFastRandoms;
    NoRandoms;
    until(false)
    end.

  4. #4
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Zeakone View Post
    So, this would be working?

    SCAR Code:
    begin
    SetUpSRL;
    declarePlayers;
    login;
    activateclient;
    setup;
    repeat
    saitime;
    wait(2000+random(1000))
    attackLesser;
    FindFastRandoms;
    NoRandoms; //you call it 2 times after each other. i would suggest you to put one before attacklesser and after. (in NoRandoms; you call FindFastRandoms;)
    until(false)
    end.
    Call NoRandoms; on a lot of places in you're script. cause you never know when you get a random .

  5. #5
    Join Date
    Jul 2007
    Posts
    44
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok i got this now

    SCAR Code:
    begin
    SetUpSRL;
    declarePlayers;
    login;
    activateclient;
    setup;
    repeat
    saitime;
    wait(2000+random(1000))
    NoRandoms;
    attackLesser;
    NoRandoms;
    until(false)
    end.

    But when i run, it logs in, but before it attacks de lesser, it logs out , u know why?

  6. #6
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. help! why doesnt this work
    By Trollvete in forum OSR Help
    Replies: 0
    Last Post: 05-28-2008, 08:54 PM
  2. Why doesnt this work?
    By Tim0suprem0 in forum OSR Help
    Replies: 38
    Last Post: 07-03-2007, 09:40 PM
  3. Why doesnt it work
    By 3Garrett3 in forum OSR Help
    Replies: 1
    Last Post: 03-12-2007, 10:55 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
  •