yachibu
2006-03-31 23:31:39
Can someone plz make me a simple script that would pick a clam at random???
2006-03-31 23:31:39
2006-03-31 23:56:13
case random(3) of
0:mouse(clam1)
1:mouse(clam2)
2:mouse(clam3)
end;2006-04-01 00:55:03
2006-04-01 03:53:38
//Fill out the const.
program ClamPickerbyPali;
const
Clam1X =100 ; //Clam 1 Coord X
Clam1Y =100 ; //Clam 1 Coord Y
Clam2X =200 ; //Clam 2 Coord X
Clam2Y =200 ; //Clam 2 Coord Y
Clam3X =300 ; //Clam 3 Coord X
Clam3Y =300 ; //Clam 3 Coord Y
var
a,b,r : integer;
procedure mouse(x,y : integer);
begin;
movemousesmooth(x,y)
holdmouse(x,y,true)
wait(50)
releasemouse(x,y,true)
wait(50)
end;
procedure click;
begin;
r:=random(3)
if(r=0) then
begin;
a:=Clam1X
b:=Clam1Y
end;
if(r=1) then
begin;
a:=Clam2X
b:=Clam2Y
end;
if(r=2) then
begin;
a:=Clam3X
b:=Clam3Y
end;
mouse(a,b);
end;
begin
click;
end.
2006-04-01 04:05:52
2006-04-01 06:09:00
2006-04-01 06:14:22
2006-04-01 06:32:22
procedure MoveClick(x, y: Integer);
begin
MoveMouseSmooth(x, y);
Wait(50);
ClickMouse(x, y, True);
end;
var
Clam: TPointarray;
i: Integer;
begin
Setarraylength(Clam, 3);
//[First Clam Co-ords]
Clam[0].x:= 0;
Clam[0].y:= 0;
//[Second Clam Co-ords]
Clam[1].x:= 0;
Clam[1].y:= 0;
//[Third Clam Co-ords]
Clam[2].x:= 0;
Clam[2].y:= 0;
i:= Random(3);
MoveClick(Clam[i].x, Clam[i].y);
end.
:)