wrob
2013-03-22 00:19:20
Can anyone make this script loot iron arrows?
Thanks!
program iCombatSMART;
{$DEFINE SMART8}
{$i srl/srl.simba}
{$i P07Include.simba}
Var
camera2,camera1,Fighting,X,Y:Integer;
Procedure P07_DeclarePlayer;
begin
P07_PlayerName:='username';
P07_PlayerPass:='password';
end;
procedure RotateCamera;
begin
P07_MakeCompassdegree(randomrange(0, 360));
end;
procedure CameraRotate;
begin
camera1 := 2;
camera2 := (random(5));
if camera2 = camera1 then
RotateCamera;
end;
procedure AmIFighting;
begin
Fighting := 0;
begin
if (FindColor(X,Y,65280,220,110,330,220)) Then
begin
Fighting := 1
wait(2700+random(250));
end;
end;
end;
procedure AttackMonster;
begin
if P07_FindObjCustom(x,y, ['ttack', 'cow'], [3689556,3028806,5797788,4477798], 10) then
begin
P07_MouseBox(X, Y, X, Y, mouse_right);
wait(300+random(60));
P07_ChooseOptionMulti(['ttack']);
sleep(2000+random(250));
end;
end;
begin
P07_DeclarePlayer;
SetupSRL;
SetupP07Include;
ActivateClient;
ClearDebug;
if (not P07_LoggedIn) then
P07_LogInPlayer;
P07_MakeCameraAngleHigh;
if (P07_LoggedIn) then
begin
repeat
AmIFighting;
AttackMonster;
sleep(2500+random(100));
CameraRotate;
until(false);
end;
end. Thanks!