phrost69
09-26-2012, 10:48 PM
I'm making my first script ever for an RSPS and get getting the error "[Error] C:\Simba\Scripts\MAGICCUTTTERRRRR.simba(11:4): Duplicate identifier 'MoveMouse' at line 10" . I looked at another script and they said the problem was there was a comma after the y in his "x, y : Integer" but I don't have that. Hand anyone? Here is the script (Yes I know it's probably terrible and I havenn't put in the wait commands yet :p)
[Error] program New;
{$i srl/srl.simba}
Procedure teleport;
var x, y: Integer;
MoveMouse(572, 360);
ClickMouse(572, 360, 1);
MoveMouse(301, 430);
ClcikMouse(301, 430, 1);
end;
procedure ChopTree;
var x, y: integer;
begin
if FindObj(x, y, 'hop', 12056824, 35) then
begin
Mouse(x, y, 0, 0, false);
ChooseOption('hop');
repeat
Wait(1200+random(250));
Until not IsUpText('ew') or (InvFull);
end;
Procedure bank;
MoveMouse(570, 285);
ClickMouse(570,285, 1);
MoveMouse(278, 203);
ClickMouse(278, 203, 1);
MoveMouse(660, 414);
ClickMouse(660, 414, 1);
end;
[Error] program New;
{$i srl/srl.simba}
Procedure teleport;
var x, y: Integer;
MoveMouse(572, 360);
ClickMouse(572, 360, 1);
MoveMouse(301, 430);
ClcikMouse(301, 430, 1);
end;
procedure ChopTree;
var x, y: integer;
begin
if FindObj(x, y, 'hop', 12056824, 35) then
begin
Mouse(x, y, 0, 0, false);
ChooseOption('hop');
repeat
Wait(1200+random(250));
Until not IsUpText('ew') or (InvFull);
end;
Procedure bank;
MoveMouse(570, 285);
ClickMouse(570,285, 1);
MoveMouse(278, 203);
ClickMouse(278, 203, 1);
MoveMouse(660, 414);
ClickMouse(660, 414, 1);
end;