Results 1 to 4 of 4

Thread: Can Anybody help me with a simple random

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

    Can Anybody help me with a simple random

    well i need a very simple random code like


    SCAR Code:
    if find fight
    then run (n)

    and

    SCAR Code:
    const
    name= blah


    if find text + (name)
    then run (n)

    i would greatly appreciate it and will add creds

    of course there will be begins, ends etc and proper script
    ________________________________________
    14:19 < cycrosism> I wonder what she would have done without it
    14:19 < cycrosism> without me*
    Cycrosism is now an it.
    Quote Originally Posted by Dervish View Post
    /Facedesk.

  2. #2
    Join Date
    Feb 2007
    Posts
    215
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i would be glad to help, but what exactly do you want it to do with the find text + name thing?
    A common mistake people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
    -Douglas Adams

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

    Default

    well you add a name to a const because randoms say

    for me

    begone 05hartor

    so if scar see that it will run
    ________________________________________
    14:19 < cycrosism> I wonder what she would have done without it
    14:19 < cycrosism> without me*
    Cycrosism is now an it.
    Quote Originally Posted by Dervish View Post
    /Facedesk.

  4. #4
    Join Date
    Feb 2007
    Posts
    215
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SRL has built in antirandoms. If you are trying to run away from a fighting random use

    SCAR Code:
    if FindFight then
    begin
     RunTo('N',true);
     Wait(10000 + random(5000));
     RunBack;
    end;

    For finding other randoms use FindNormalRandoms
    This causes some lag so don't throw it in everywhere but instead use FTWait(time to wait in msec divided by 250);
    this waits while checking the screen for random events like old men and such.
    So FTWait(4) would wait 1 second approximately. This is good to use after clicking an object like a rock and while waiting for long periods of time. Like you don't need to use ftwait if you aren't waiting.

    In order for built in SRL randoms to work you need to setup players with their correct nicknames. Look at some free scripts to see examples.
    A common mistake people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
    -Douglas Adams

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 03-26-2007, 07:57 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
  •