Naum
2008-06-08 03:36:36
This little function will find what axe you have based on its color, this is flawless and has been tested. Enjoy :)
Using Text:
Function CheckAxe : Boolean;
Var Axe : String;
Begin
MMouseItem(1);
Axe := 'No';
Wait(800+Random(200));
Case GetColor(584, 219) Of
2308684 : Axe := 'Bronze';
5066067 : Axe := 'Iron';
7500411 : Axe := 'Steel';
6242368 : Axe := 'Mithril';
4346690 : Axe := 'Addy';
6642500 : Axe := 'Rune';
end;
Try
Result := True;
WriteLn('Found ' +Axe+ ' Axe');
Exit;
finally
If Axe = 'No' Then
Begin
WriteLn('Please Have An Axe In your Inventory!');
Result := False;
GetApplication.BringToFront;
TerminateScript;
end;
except
end;
end;Using Text:
Function CheckAxe : Boolean;
Var Axe : String;
Begin
MMouseItem(1);
Axe := 'No';
Wait(800+Random(200));
Begin
If IsUpText('ronze') Then Axe := 'Bronze';
If IsUpText('ron') Then Axe := 'Iron';
If IsUpText('eel') Then Axe := 'Steel';
If IsUpText('ith') Then Axe := 'Mithril';
If IsUpText('ddy') Then Axe := 'Addy';
If IsUpText('une') Then Axe := 'Rune';
end;
Try
Result := True;
WriteLn('Found ' +Axe+ ' Axe');
Exit;
finally
If Axe = 'No' Then
Begin
WriteLn('Please Have An Axe In your Inventory!');
Result := False;
GetApplication.BringToFront;
TerminateScript;
end;
except
end;
end;