ssshhhaaa
2012-04-24 02:49:03
Ok so ill tell you my problem first.
In my script im clicking the wilderness ditch using.
It most of the time finds the wall and clicks it, but a lot of the time it miss clicks on a NPC or a tree, so i need someway of checking if the chracter as jumped over the ditch or is doing something else and then try to click the ditch again.
Ive tried something like this before but it doesn't seem to work.
But that only works as a fail safe if it doesn't find the colour and so then tries again.
So to sum it up i need something to detect if it has not jumped over the ditch and is instead doing something else (attacking a npc, cutting a tree or is still).
Thank for the help :)
In my script im clicking the wilderness ditch using.
if findObjCustom(x, y, ['ilderness wall'], [1843493], 30)then
begin
Mouse(x,y,4,4,true);
end;
It most of the time finds the wall and clicks it, but a lot of the time it miss clicks on a NPC or a tree, so i need someway of checking if the chracter as jumped over the ditch or is doing something else and then try to click the ditch again.
Ive tried something like this before but it doesn't seem to work.
if findObjCustom(x, y, ['ilderness wall'], [1843493], 30)then
begin
Mouse(x,y,4,4,true);
end;
if not findObjCustom(x, y, ['ilderness wall'], [1843493], 30)then
begin
MakeCompass('E');
SetAngle(SRL_ANGLE_HIGH);
findObjCustom(x, y, ['ilderness wall'], [1843493], 30)
Mouse(x,y,4,4,true);
end;
But that only works as a fail safe if it doesn't find the colour and so then tries again.
So to sum it up i need something to detect if it has not jumped over the ditch and is instead doing something else (attacking a npc, cutting a tree or is still).
Thank for the help :)