Log in

View Full Version : I forgot how! please help.



freepure
11-09-2012, 03:54 PM
hello everyone, i used to script on scar long ago. anyway thats not important. im playing a private server of runescape and im useing scar to write myself a fighting script. now my problem is i need to right click on the monster but i forgot how to move the mouse to the "attack" button after right clicking. i know its so simple and i'll get alot of crap for this but i could use the help. thanks (:


program Turoth;

//Constant//
const
Turoth=3815999;

//variable//
var
x,y:integer;


///Lets kill some monsters///

///////////MonstaMashBaby//////////////////
begin
repeat
(Findcolor(x,y,Turoth,532,3,1264,464));
begin
MoveMouse(x,y);
wait(100);
ClickMouse(x,y,false);
wait(1000);

end;
until(false);
end.

Lalaji
11-09-2012, 09:10 PM
if you dont want to include declare include SRL, i think the easiest way to do it would be to (Findcolor(x,y,Turoth,532,3,1264,464));
begin
MoveMouse(x,y);
wait(100);
ClickMouse(x,y,false);
wait(1000);
ClickMouse(x +10, y + 50, True)


I think its the first option(?) but you may have to change the +10 and +50 a little bit.

Sax
11-09-2012, 10:00 PM
I think it is chooseoption('optionstringhere');
at least in simba.

Rezozo
11-09-2012, 10:02 PM
^^^srl

Justin
11-09-2012, 11:37 PM
Since you are on a Private Server, the fonts could be different to what the current RuneScape is using. Try taking a bitmap of the Attack option then after your clickmouse function, do a search for the attack bitmap and click it

Ian
11-09-2012, 11:44 PM
If you're more used to DTMs you could make one of those too.

freepure
11-10-2012, 09:58 AM
you guys are great! that first example worked perfectly! <3<3<3 F_CKING AWESEOME! lol i appreciate the help and the fast replys. (:

btw im playing soulsplit. its usually pretty up to date with the runescape graphics.