Results 1 to 5 of 5

Thread: Help detecting and solving randoms while waiting for a task to complete

  1. #1
    Join Date
    Sep 2013
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    20 Post(s)

    Smile Help detecting and solving randoms while waiting for a task to complete

    Hello! I need some help being able to solve random events while I am waiting for a task to finish in my script. For example..

    Simba Code:
    MarkTime(T)
     repeat
       FindNormalRandoms;
     until (TimeFromMark(T) > randomrange(160000,170000));

    It detects the random event. However, it does not seem to solve it. It merely carries on with the rest of the script WHILE in the random event. Which is not good.

    Any suggestions would be greatly appreciated!

  2. #2
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    let's say your mining a rock... and your waiting for the inventory to increase by 1:

    Simba Code:
    procedure waitt;
    var
      t, orecount:Integer;
    begin
      orecount := invcount;
      marktime(t);
      repeat
        FindNormalRandoms;
      Until (orecount < invcount) or (TimeFromMark(t) > 5000)
    end;

  3. #3
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Which random events is it not solving? If a random event is detected it will be solved, assuming there actually is a solver written for that specific event.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  4. #4
    Join Date
    Sep 2013
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    20 Post(s)

    Default

    Quote Originally Posted by Flight View Post
    Which random events is it not solving? If a random event is detected it will be solved, assuming there actually is a solver written for that specific event.
    It detected the forester clicked on it and didn't actually solve the event. Odd. :S

    Edit: Checked osrs random development and now I see that only the detection is working for that. Not the solver. I guess the question would be then how would I handle a situation where it detects the random (i.e. the forester) but when it actually comes to being inside the event logging out instead of just continuing on with my script?

    Also, the pinball random needs a little tweaking. I was watching it when it was being solved and when a pinball appears on the furthest end of the room away from the player, sometimes by the time the player gets to it (if hes walking) it goes for another click in the midst of the animation from the first click thus resetting the score back to zero. Also when it got to the exit procedure it had to initiate the backup as the first method didn't get me to the exit. It kept clicking towards the east of the room. (Compass angle was also east at that point if that makes any difference when the random team are trying to debug.
    Last edited by Cage; 10-07-2013 at 06:29 AM.

  5. #5
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Quote Originally Posted by Cage View Post
    It detected the forester clicked on it and didn't actually solve the event. Odd. :S

    Edit: Checked osrs random development and now I see that only the detection is working for that. Not the solver. I guess the question would be then how would I handle a situation where it detects the random (i.e. the forester) but when it actually comes to being inside the event logging out instead of just continuing on with my script?

    Also, the pinball random needs a little tweaking. I was watching it when it was being solved and when a pinball appears on the furthest end of the room away from the player, sometimes by the time the player gets to it (if hes walking) it goes for another click in the midst of the animation from the first click thus resetting the score back to zero. Also when it got to the exit procedure it had to initiate the backup as the first method didn't get me to the exit. It kept clicking towards the east of the room. (Compass angle was also east at that point if that makes any difference when the random team are trying to debug.
    yes i had some issues with the pinball random too. first it worked correctly but now it doesnt anymore ;/

Thread Information

Users Browsing this Thread

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

Posting Permissions

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