Results 1 to 8 of 8

Thread: AntiRandom Question

  1. #1
    Join Date
    Sep 2008
    Location
    Nova Scotia, Canada
    Posts
    49
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default AntiRandom Question

    Couple things about the AntiRandoms are confusing me.

    FindNormalRandoms is supposed to handle *all* randoms. Yet I see a few people include FindLamp as a separate check. Should I be doing that?

    Looking through the source of AntiRandoms.scar it doesn't appear that any of the antirandom handling ever actually drops the items you get from randoms? There is a DwarfItem but I don't see where it gets called, in fact the comments for Dwarf Handler in SolveTalkingRandom actually states DwarfItem isn't used. Should I include that? and what else could pop up in my inventory I should be concerned about.

    And just to confuse me further, while searching this forum before making this post I see someone using NoRandom. Now where did that come from? Is this something I should be including?

    And I see a lot of people include a separate check for FindDead. Good idea or just a waste of time?

    Since I'm pounding out the questions I might as go all the way...I see some of the woodcutting scripts include a check for Ents. Good idea? and are there other skill related randoms one should watch out for?

    It occurs to me a lot of noob questions could be so avoided if a standard AntiRandom routine could be agreed upon and given out for us poor noobs to use.

    And don't even get me started on the wide wide wide variation on AntiBan lol. Hard to tell what is good, what is just way over the top, and what is too little.

    I'm just full of questions today lol.

  2. #2
    Join Date
    Sep 2008
    Location
    Nova Scotia, Canada
    Posts
    49
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default And yet another

    Now that I think about it I have one more question.

    One the tutorials I was reading (I have seriously lost count of how many I've read now) put a logout the user and log them back in at the start. The explanation being that the antirandoms don't work well unless you login the player using the srl login routine.

    That is the only mention I have ever seen, which got me to wondering if this is true, or totally bogus.

  3. #3
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    Quote Originally Posted by spamthis View Post
    Couple things about the AntiRandoms are confusing me.

    FindNormalRandoms is supposed to handle *all* randoms. Yet I see a few people include FindLamp as a separate check. Should I be doing that?

    Looking through the source of AntiRandoms.scar it doesn't appear that any of the antirandom handling ever actually drops the items you get from randoms? There is a DwarfItem but I don't see where it gets called, in fact the comments for Dwarf Handler in SolveTalkingRandom actually states DwarfItem isn't used. Should I include that? and what else could pop up in my inventory I should be concerned about.

    And just to confuse me further, while searching this forum before making this post I see someone using NoRandom. Now where did that come from? Is this something I should be including?

    And I see a lot of people include a separate check for FindDead. Good idea or just a waste of time?

    Since I'm pounding out the questions I might as go all the way...I see some of the woodcutting scripts include a check for Ents. Good idea? and are there other skill related randoms one should watch out for?

    It occurs to me a lot of noob questions could be so avoided if a standard AntiRandom routine could be agreed upon and given out for us poor noobs to use.

    And don't even get me started on the wide wide wide variation on AntiBan lol. Hard to tell what is good, what is just way over the top, and what is too little.

    I'm just full of questions today lol.
    • No, you don't need to use FindLamp again, since FindNormalRandoms already calls it.
    • Most scripts either bank or drop items, so that really shouldn't be a problem. You can call DwarfItem to drop kebabs and beers, though, but there aren't any other item dropping functions in AntiRandoms.scar as far as I know.
    • What do you mean by "NoRandom"?
    • It's not needed as FindNormalRandoms already checks for it, but FindFight is important to call to make sure you don't die in the first place.
    • Yes, you should always try to account for everything that could throw off your script. FindEnt, FindGas, etc. are important to include in skill-specific scripts.
    • Here's something basic you can use:
      SCAR Code:
      procedure FindRandoms;
      begin
        FindNormalRandoms;
        if (FindFight) then
          RunAway('S', True, 1, 5000);
      end;


    Quote Originally Posted by spamthis
    Now that I think about it I have one more question.

    One the tutorials I was reading (I have seriously lost count of how many I've read now) put a logout the user and log them back in at the start. The explanation being that the antirandoms don't work well unless you login the player using the srl login routine.

    That is the only mention I have ever seen, which got me to wondering if this is true, or totally bogus.
    Yes, LoginPlayer is necessary to correctly set the player's nickname for random finding. If you want to start logged in, you'll have to add the snippet of code that does that for you from Login.scar.
    :-)

  4. #4
    Join Date
    Sep 2008
    Location
    Nova Scotia, Canada
    Posts
    49
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Thanks

    Ah! Thanks.

    I feel so enlightened now.

    Edit: Nevermind the NoRandom thing. I just reread the post in question. It was the user's own procedure called NoRandom they were calling in their main loop. Guess I missed that little detail the first time around.

    http://www.villavu.com/forum/showthr...=20334?t=22203

    Code:
    repeat;
      saiTime;
      Wait(2000 + Random(1000);
      NoRandoms;  
      AttackLesser;
      NoRandoms;  
    until(false);
    Having the wife trying to "have a discussion" while I was reading that post probably didn't help the concentration there.

  5. #5
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    NoRandoms is just the name of the procedure that person chose for his antirandoms. I called it FindRandoms, you can call it almost anything you want.
    :-)

  6. #6
    Join Date
    Sep 2008
    Location
    Nova Scotia, Canada
    Posts
    49
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Thank you for the help and the tutorial

    Lol. I just realized I used *your* tutorial as a starting point for my own AntiRandom.

  7. #7
    Join Date
    Sep 2008
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Be careful NOT to double post!

  8. #8
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by k.wallet.t View Post
    Be careful NOT to double post!
    Why not just report the post instead of the spam?

    Anyway findnormalrandoms checks like this:

    For i:=0 to (something) do
    1: FindLamp
    2:SolveLamp.

    e.t.c

    Check srl/srl/core/antirandoms for more random solving issues

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. AntiBan and AntiRandom Help?
    By 1337N3SS in forum OSR Help
    Replies: 13
    Last Post: 10-19-2008, 09:39 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
  •