stealmojo
2013-03-03 23:42:28
So my auto fighter was working fine then when I would go to run it I would get this error
I havent touched anything so I am trying to figure out what happened.
here is the script if you need it.
[Error] C:\Simba\Includes\P07Include.simba(57:51): Invalid number of parameters at line 56
Compiling failed. and a seperate tab pops up showing me the line inside P07include.I havent touched anything so I am trying to figure out what happened.
here is the script if you need it.
program Jeton07AF;
{$I SRL/SRL.simba}
{$I P07Include.simba}
var
X, Y: Integer;
IsInCombat, runRandomNum1, runRandomNum2, cameraRandomNum1, cameraRandomNum2: Integer;
Procedure P07_DeclarePlayer;
begin
P07_PlayerName:='*';
P07_PlayerPass:='*';
end;
procedure turnRunOn;
begin
P07_TabInventoryTab(12)
wait(Random(50));
if (FindColor(X, Y, 5334130, 620, 411, 661, 450)) then
P07_MouseBox(620, 411, 661, 450, mouse_left);
P07_TabInventoryTab(4)
end;
procedure runRandomNumber;
begin
runRandomNum1 := 2;
runRandomNum2 := (random(15));
if runRandomNum2 = runRandomNum1 then
turnRunOn;
end;
procedure moveCamera;
begin
P07_MakeCompassdegree(randomrange(0, 360));
end;
procedure cameraRandomNumber;
begin
cameraRandomNum1 := 2;
cameraRandomNum2 := (random(5));
if cameraRandomNum2 = cameraRandomNum1 then
moveCamera;
end;
procedure AttackMonster;
begin
if P07_FindObjCustom(x,y, ['ttack'], [1615563, 7967641], 5) then
begin
P07_MouseBox(X, Y, X, Y, mouse_right);
wait(300+random(60));
P07_ChooseOptionMulti(['ttack']);
end
end;
procedure ifInCombatLoop;
begin
IsInCombat := 0;
begin
wait(900+random(300));
if (FindColor(X, Y, 65280, 220, 110, 330, 220)) or (FindColor(X, Y, 255, 220, 110, 330, 220)) then
begin
IsInCombat := 1
end
else IsInCombat := 0;
end
end;
begin
P07_DeclarePlayer;
SetupP07Include;
ActivateClient;
ClearDebug;
repeat
if (not P07_LoggedIn) then
P07_LogInPlayer;
P07_MakeCameraAngleHigh;
if (P07_LoggedIn) then
begin
runRandomNumber;
ifInCombatloop;
if IsInCombat = 0 then
AttackMonster;
cameraRandomNumber;
end;
until(isKeyDown(113));
end.