SRL Archive - SRL Old School RuneScape

Random Events - dismiss option.


kingarabian

2015-01-11 06:24:35

Has this been included? All you have to do is right click and choose the dismiss option.

Something like this:

function R_DismissSandwichLady : Boolean;
var
SandwichLadyNPC: TNPC;
Points: tPoint;
Options : TStringArray;
begin
Options := ['ismis'];
result := false;
repeat
R_FindNPC('Sandwich Lady', SandwichLadyNPC);
Points := R_TileToMSHeight(SandwichLadyNPC.tile, 50);
GetMousePos(Points.x, Points.y);
ClickMouse2(MOUSE_RIGHT);
if (OptionsExist(options, false)) then
ChooseOption('ismis');
until(not(R_DetectSandwichLady));
result := true;
end;

Hoodz

2015-01-11 06:56:35

From: kingarabian
Has this been included? All you have to do is right click and choose the dismiss option.

Something like this:

function R_DismissSandwichLady : Boolean;
var
SandwhichLadyNPC: TNPC;
Point: tPoint;
Options : TStringArray;
begin
Options := ['ismis'];
result := false;
repeat
R_FindNPC('Sandwich Lady', SandwichLadyNPC);
Point := R_TileToMSHeight = (SandwhichLadyNPC.tile, 50);
MMouse(Point.x, Point.y);
ClickMouse2(MOUSE_RIGHT);
if (OptionsExist(options, false) then
ChooseOption('ismis');
until(not(R_DetectMime));
result := true;
end;


i believe a saw a snippet in the reflection include thread by ineedbot

edit: https://villavu.com/forum/showthread.php?t=107479&page=19&p=1323097#post1323097

kingarabian

2015-01-11 07:04:46

From: hoodz
i believe a saw a snippet in the reflection include thread by ineedbot

edit: https://villavu.com/forum/showthread.php?t=107479&page=19&p=1323097#post1323097


Yeah that looks great. I was thinking about adding all the randoms in one array, but I was afraid Jagex would toggle this option off if they detect a real auto. Then whatever solvers we currently have could be put in use.

Fitta

2015-01-11 12:00:26

From: kingarabian
Yeah that looks great. I was thinking about adding all the randoms in one array, but I was afraid Jagex would toggle this option off if they detect a real auto. Then whatever solvers we currently have could be put in use.


Be aware! there's more than randoms npc that result in "null" for names.

kingarabian

2015-01-11 20:26:17

From: Fitta
Be aware! there's more than randoms npc that result in "null" for names.


So do you suggest we do each random separately?

Fitta

2015-01-11 22:28:42

From: kingarabian
So do you suggest we do each random separately?


If you're not doing a combat script you should be fine!
If you are, you're screwed, give or take.

kingarabian

2015-01-16 00:35:10

Fitta you think it would work to keep color detection in case the names of the random are null?