PDA

View Full Version : Help With First Script!



Noohy
04-19-2012, 11:28 PM
Hey! I was making a very simple stall theiver for RovaScape, it would click on the stall, and then drop the first item, and then keep going. It would go for a solid 20 minutes but after a while for some reason the coordinates shift, or something weird happens and it doesn't click in the same spot anymore. How would i go about fixing such a problem? :\

This is my main block of code:



MoveMouse(189, 193);
ClickMouse(189, 193, 0);
MoveMouse(189, 193);
ClickMouse(189, 193, 1);
Wait(1750);
MoveMouse(581, 227);
Wait(1500);
ClickMouse(581, 227, 0);
Wait(1250);
MoveMouse(574, 270);
ClickMouse(574, 270, 1);
MoveMouse(x, y);
Wait(1000);

Paradoxium
04-19-2012, 11:43 PM
ohh dont just use coor -_-, if you use coor, anything can happen...

try this- use ACA and find your stall color, use a check uptext so that it will only click on the stall, and then use a mousebox to right click and then chooseoption...(maybe chooseoption and check uptext will not work because you are using a private server but the rest should..i would give it a try anyways :D)

good luck!

Olly
04-20-2012, 12:27 AM
I use dtms for all my private server bots never fails if you create a good dtm.

Noohy
04-20-2012, 01:45 AM
ahh! it's all a foreign language to me right now hah, but thank you! i will try to look up ways to do those! Thank you!

NKN
04-20-2012, 02:19 AM
PM'd you.

Saltyspoons
04-20-2012, 04:48 PM
It is because the Runescape (Private servers too) screen shifts slightly every minute or so. After a while, those coordinates are going to be clicking slightly next to the stall, because it has shifted so much. That is why we have to use colors and texts to find objects, rather than just coordinates on the screen.

bas
04-22-2012, 09:07 PM
Use something to find the color and then click it

procedure Steal;
begin
If FindColor(x, y, 5984055, LEFT TO RIGHT screen) then
begin

MoveMouse(x,y+random(3));
wait(randomrange(150,200));
ClickMouse(x,y,mouse_Left);

Wait(5000);
end;
end;