Shady?
2008-09-14 01:54:42
Well i know this aren't hard-to-script functions, but i'm just starting with this and i wanted to share what i've done, so here they are:
Examples:
Credits go to NiCbaZ and Nava2, wanna see why? read the first 5 or 6 posts =)
function ClickObject(id :integer; left: boolean): boolean;
var
xx : TPoint;
begin
if FindObject(xX,id) then
begin
Result:= True;
XX:= TileToMS(XX, 0);
Mouse(xx.x, xx.y, 2, 2, Left);
Wait(30 + Random(10));
end;
end;function HoverObject(id :integer): boolean;
var
xx : TPoint;
begin
if FindObject(xX,id) then
begin
Result:= True;
XX:= TileToMS(XX, 0);
MMouse(xX.x,xX.y,2,2);
Wait(30 + Random(10));
end;
end;Examples:
HoverObject(1111);It will move the mouse over the object, where 1111 is the UID.ClickObject(1111, true);It will click the object with whe UID you input, true for left click, and false for right click.Credits go to NiCbaZ and Nava2, wanna see why? read the first 5 or 6 posts =)