Results 1 to 3 of 3

Thread: Need help on randoms.

  1. #1
    Join Date
    Aug 2006
    Location
    Finland.
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Need help on randoms.

    Hello everyone.
    Could someone post here how I could do these :
    FindNormalRandoms <- Checks that once in 3 mins
    FindFight <- Runs to North and then back.


    Thanks

  2. #2
    Join Date
    Sep 2006
    Posts
    161
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    First of all, you want to call it a lot more often than that. You'll be caught by a random pretty easily calling it once every three minutes. Usually, instead, you call it whenever your character is just sitting there not needing mouse motions. For example, while you mine, you could click a rock, check for randoms, and then wait for the rock to be mined.

    Literally, checking every three minutes means that somewhere you put this where it gets run often.

    At the beginning put

    MarkTime(MyRandomsTimer);

    Then later as a check that happens often

    if (TimeFromMark(MyRandomsTimer) > (3*60*1000)) then
    begin FindNormalRandoms; end;

    But that's not a good idea.

    Instead, put FindNormalRandoms as often as you can without compromising script performance.

    Findfight is usually done like this, since it reutuns a boolean.

    if (FindFight) then
    begin
    SetRun(True);
    RunWhere('North',True);
    Wait(10000+random(1000));
    RunWhere('South',True);
    end;

    Basically, it says, if we find we're in a fight (or some guy standing on top of us), then run north, wait 10 seconds, and run back.


    Wow. I've been away quite a while. Real life, yea, way unpredictable. Sorry, y'all, if I've caused any inconvenience.

  3. #3
    Join Date
    Aug 2006
    Location
    Finland.
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok , tyvm

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Help with randoms
    By trav280 in forum OSR Help
    Replies: 3
    Last Post: 04-27-2008, 07:10 AM
  2. Help with randoms
    By knassyl in forum OSR Help
    Replies: 11
    Last Post: 04-23-2008, 04:30 PM
  3. Replies: 3
    Last Post: 03-31-2007, 02:34 AM
  4. randoms
    By falven in forum OSR Help
    Replies: 35
    Last Post: 12-28-2006, 04:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •