SRL Archive - OSR Help

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


Cage

2013-10-06 17:01:26

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..


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!

rj

2013-10-06 17:32:50

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

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

Flight

2013-10-06 21:07:53

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.

Cage

2013-10-07 02:18:25

From: Flight
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. :)

Hoodz

2013-10-10 03:24:38

From: Cage
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 ;/