PDA

View Full Version : Random Events - dismiss option.



kingarabian
01-11-2015, 11:24 AM
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
01-11-2015, 11:56 AM
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
01-11-2015, 12:04 PM
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
01-11-2015, 05:00 PM
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
01-12-2015, 01:26 AM
Be aware! there's more than randoms npc that result in "null" for names.

So do you suggest we do each random separately?

Fitta
01-12-2015, 03:28 AM
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
01-16-2015, 05:35 AM
Fitta you think it would work to keep color detection in case the names of the random are null?