randy marsh
2013-04-27 20:08:04
Need help with my willow powerchopper
I been spending ages trying to see what problem is but i cant..
[Hint] C:\Simba\Scripts\OAKBANKSAT.simba(96:10): Variable 'Result' never used at line 95
[Error] C:\Simba\Scripts\OAKBANKSAT.simba(148:35): Type mismatch at line 147
Compiling failed.
Is supposed to be the problem line…. (IN THE DROPDEMLOGS PROCEDURE)
I been spending ages trying to see what problem is but i cant..
[Hint] C:\Simba\Scripts\OAKBANKSAT.simba(96:10): Variable 'Result' never used at line 95
[Error] C:\Simba\Scripts\OAKBANKSAT.simba(148:35): Type mismatch at line 147
Compiling failed.
program Oakbank;
{$I SRL-OSR/SRL.Simba}
//------------------------------------------------------------------\\
Procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := ''; //Username goes here
Players[0].Pass := ''; //Password goes here
Players[0].Nick := ''; //Character name (excluding first letter)
Players[0].Active := True;
end;
//--------------------------------------------------------------------\\
procedure AntiBan;
begin
if(not(LoggedIn))then
Exit;
FindNormalRandoms;
case Random(60) of //antiban change (20) to higher number for less antiban
0:
begin
HoverSkill('Woodcutting', false);
wait(2453+Random(432));
end;
1: PickUpMouse;
2:
begin
MakeCompass('N');
wait(100+random(133));
MakeCompass('S');
wait(50+random(133));
MakeCompass('N');
FindNormalRandoms;
end;
end;
end;
function OakColor: Integer;
var
arP: TPointArray;
arC: TIntegerArray;
tmpCTS, i, arL: Integer;
begin
tmpCTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.25, 0.29);
if not (FindColorsTolerance(arP, 1847347, MSX1, MSY1, MSX2, MSY2, 9)) then
begin
Writeln('Failed to find the color, no result.');
ColorToleranceSpeed(tmpCTS);
SetColorSpeed2Modifiers(0.2, 0.2);
Exit;
end;
arC := GetColors(arP);
ClearSameIntegers(arC);
arL := High(arC);
for i := 0 to arL do
begin
Result := arC[i];
//Writeln('AutoColor = ' + IntToStr(arC[i]));
Break;
end;
ColorToleranceSpeed(tmpCTS);
SetColorSpeed2Modifiers(0.2, 0.2);
if (i = arL + 1) then
Writeln('AutoColor failed in finding the color.');
end;
Function ChopTree:boolean;
var
X, Y, PlusOne, TreeCounter: Integer;
Begin
PlusOne:= InvCount +1;
x:=MSCX;
y:=MSCY
If FindobjTPA( X, Y, OakColor, 15, 1, 15, 20, 400, ['Chop','Will']) Then
Begin
Writeln('sweet we spotted a tree');
GetMousePos(X, Y);
Case Random(2) Of
0: Mouse(X, Y, 5, 5, True);
1:Begin
Mouse(X, Y, 5, 5, False);
WaitOption('Chop', 600);
End;
End;
Flag;
Marktime(Treecounter);
Repeat
Antiban;
Wait(1000);
If InvCount=Plusone Then
Writeln('chopped a log');
Until (InvCount=Plusone) Or (TimeFromMark(TreeCounter) > 5000)
End;
End;
Procedure Dropdemlogs;
var
X, Y, LogDTM, I:Integer;
SlotBox:TBox;
LogPattern:TIntegerArray;
Begin
LogDTM := DTMFromString('mggAAAHicY2NgYMhlYmAoAeIsII4F4hwgrgLip0C5m0B8B4ifAfF7IH4NxK624kCSEQvGBP9xqESoBgBujAme');
LogPattern:=[1,5,9,13,17,21,25,2,6,10,14,18,22,26,3,7,11,15,19,23,27,4,8,12,16,20,24,28];
Writeln('Dropping logs:' +IntToStr(I));
For I:=0 To 27 Do
Begin
SlotBox:=Invbox(LogPattern[I]);
If findDTm(LogDTM,X,Y,SlotBox.X1,SlotBox.Y1, SlotBox.X2, SlotBox.Y2) Then
Begin
MouseItem(LogPattern[I],False);
ChooseOption('Dro');
End;
End;
End; [MouseItem(LogPattern[I],False); Is supposed to be the problem line…. (IN THE DROPDEMLOGS PROCEDURE)