Results 1 to 9 of 9

Thread: randoms arent detected

  1. #1
    Join Date
    Feb 2007
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Fixed--My random events aren't being detected

    I'm working on a script which buries bones. It works fine, except for the random events.
    now my antirandom isnt working!! I use FindNormalRandoms;
    I tried this:
    Code:
    program srlTest;
    
    begin
    procedure ll;
    begin
    FindNormalRandoms;
    end;
    
    repeat;
    ll
    until(false);
    end.
    And waited for a random event.
    Eventually I got Ricky-*. I waited...nothing. After three times of his sayings I finally clicked on him. The script obviously didn't work. I checked on the script. Yup, successfully compiled; running script...

    Resultantly I restarted it and waited for one more. Finally a dwarf came up. Nope, nothing. just like before. Now I am brought here for help...


    This function doesn't work either for the random event loop:


    FindNormalRandoms;
    wait(10)
    UseBoxSolver := True
    wait(10)
    UseCerterSolver := True
    wait(10)
    UseSandwichSolver :=True
    FindMaze;
    wait(10)
    Solvepinball;
    Wait(10)
    if (FindFight) then
    begin
    RunAwayDirection(RunDir);
    Wait(10500 + random(3500));
    RunBack;
    end;
    Wait(10);
    FindTalk;

  2. #2
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    they work fine for me...what srl r u using?

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

    Default

    If you are starting logged in, you need a NickNameBMP and you need to set a nick name so that talking randoms will work. Otherwise, talking randoms will barely work, if not work at all.

  4. #4
    Join Date
    Nov 2006
    Location
    In an Amish Paradise
    Posts
    729
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Try adding some of these things to your script...
    SCAR Code:
    NickNameBMP := CreateBitmapMaskFromText(Players[CurrentPlayer].Nick, UpChars);
    //Makes a Bitmap of you nick in UpChars

    Players[0].Nick := 'upe'; // 3 Letters From Username

    procedure DoRandoms;
    begin
      if not LoggedIn then Exit;
      FindFastRandoms;
      FindNormalRandoms;
    end;

    Hope this helps...

    ~Stupedspam

  5. #5
    Join Date
    Jun 2007
    Location
    NSW, Australia.
    Posts
    541
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Also, take the AntiRandom procedure out of your main loop, and put it inside where you pick up the bones. That way, everytime you pick up a bone it will search for Randoms.

    -Pancakes.
    Quote Originally Posted by RAM View Post
    I sam sofa king wee todd did ! ~RAM
    My SRL Army Blog.


  6. #6
    Join Date
    Jun 2006
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Make a correct Declare Players procedure (look around, there are many tutorials on setting up SRL for scripting), and login your charachter using the procedure Login;. That will create a NicknameBMP so FindNormalRandoms will work. If you start the script already logged in, you need to set this somewhere.

    SCAR Code:
    NickNameBMP := CreateBitmapMaskFromText(Players[CurrentPlayer].Nick, UpChars);

    Btw, stupedspam, i dont think yours will work if the createbitmapmaskfromtext is before the declaration of your nick. Just a little fyi

  7. #7
    Join Date
    Feb 2007
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Wow, thank you! What a wonderful community that surrounds me.

    To answer the previous posts:
    I am using SRL v1.81

    Code:
       HowManyPlayers :=1;
       NumberOfPlayers(HowManyPlayers);
       CurrentPlayer:=0;
       Players[0].Name := 'Secret';
       Players[0].Pass := 'Secret';
       Players[0].Nick := 'Secret';
    is how my users are set up. Yes, they literally say "Secret", so that my be my problem. I did that because I don't want to log back in

    I'll try using a valid nickname and check back with my status when I finally do get a random.

    Thanks to all of you're help. If this script is a success, I'll probably release it!

    P.S.: Has anyone else noticed that random events are more common now?

  8. #8
    Join Date
    Oct 2006
    Location
    Ireland
    Posts
    855
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by ~~~~ View Post
    Wow, thank you! What a wonderful community that surrounds me.

    To answer the previous posts:
    I am using SRL v1.81

    Code:
       HowManyPlayers :=1;
       NumberOfPlayers(HowManyPlayers);
       CurrentPlayer:=0;
       Players[0].Name := 'Secret';
       Players[0].Pass := 'Secret';
       Players[0].Nick := 'Secret';
    is how my users are set up. Yes, they literally say "Secret", so that my be my problem. I did that because I don't want to log back in

    I'll try using a valid nickname and check back with my status when I finally do get a random.

    Thanks to all of you're help. If this script is a success, I'll probably release it!

    P.S.: Has anyone else noticed that random events are more common now?
    I only get random events when I auto, which probably means they suspect you... try adding more randomness to your waits and clicks.

  9. #9
    Join Date
    Feb 2007
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Wow, how silly of simple solution!

    In case anybody else encounters this problem, the players, Nick, Pass and Name, need to be set up correctly. In addition, the Nick is case-sensitive; in example: if your Username is e_X_Am_Ple the display name would be E X Am Ple, whereas e x am ple would not work. I hope this solves any problems similar to what I have had.

    Thanks! I hope to release my prayer leveler soon!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. HAck DeTecTEd!
    By PlAnT in forum News and General
    Replies: 9
    Last Post: 12-27-2008, 06:07 AM
  2. would 1m be detected?
    By takeout in forum Discussions & Debates
    Replies: 22
    Last Post: 10-04-2007, 10:38 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
  •