Miitchyy
2006-06-06 02:42:21
ok, I made a script for a game, its not for runescape and I dont want to say te game to encourage ppl to macro on it, im not really even gonna use this script but finishing it will help me with making other scripts, It doesnt work so i need some1 to help me fix it.
any help would be greatly appreciated.
[php]program MinerSmelterAndSmither;
var
skill: integer;
procedure SetUpVar;
begin
skill:= 3; //1 is for mining, 2 for smelting & 3 for smithing
end;
procedure Mine;
begin
if(skill<2) then
movemousesmooth(335,240);
clickmouse(335,240,false);
wait(100);
movemousesmooth(420,325);
clickmouse(420,325,true);
wait(100);
end;
procedure RepeatDaMine;
begin
if(skill<2) then
repeat
Mine
until(false);
end;
procedure Smelt;
begin
if(skill>1) then
movemousesmooth(335,150);
clickmouse(335,150,false);
wait(100);
movemousesmooth(425,225);
clickmouse(425,225,true);
wait(100);
end;
procedure RepeatDaSmelt;
begin
if(skill>1) then
repeat
Smelt
until(false);
end;
procedure Smith;
begin
if(skill>2) then
movemousesmooth(335,210);
clickmouse(335,210,false);
wait(100);
movemousesmooth(425,300);
clickmouse(425,300,true);
wait(100);
movemousesmooth(425,313);
clickmouse(425,313,true);
wait(100);
end;
procedure RepeatDaSmith;
begin
if(skill>2) then
repeat
Smith
until(false);
end;
begin
writeln('yay im finished');
end.[/php]
any help would be greatly appreciated.
[php]program MinerSmelterAndSmither;
var
skill: integer;
procedure SetUpVar;
begin
skill:= 3; //1 is for mining, 2 for smelting & 3 for smithing
end;
procedure Mine;
begin
if(skill<2) then
movemousesmooth(335,240);
clickmouse(335,240,false);
wait(100);
movemousesmooth(420,325);
clickmouse(420,325,true);
wait(100);
end;
procedure RepeatDaMine;
begin
if(skill<2) then
repeat
Mine
until(false);
end;
procedure Smelt;
begin
if(skill>1) then
movemousesmooth(335,150);
clickmouse(335,150,false);
wait(100);
movemousesmooth(425,225);
clickmouse(425,225,true);
wait(100);
end;
procedure RepeatDaSmelt;
begin
if(skill>1) then
repeat
Smelt
until(false);
end;
procedure Smith;
begin
if(skill>2) then
movemousesmooth(335,210);
clickmouse(335,210,false);
wait(100);
movemousesmooth(425,300);
clickmouse(425,300,true);
wait(100);
movemousesmooth(425,313);
clickmouse(425,313,true);
wait(100);
end;
procedure RepeatDaSmith;
begin
if(skill>2) then
repeat
Smith
until(false);
end;
begin
writeln('yay im finished');
end.[/php]