westkevin12
2013-04-27 01:20:44
ok so i'm trying to write a script to mine iron and bank it in yanill and i have already run into problems with the script in my first procedure trying to open the bank. here is what i have atm please help me fix this. it will log me in and put the mouse on the bank boot but it won't click to open the bank
program westkevin12yanilironminer;
{$DEFINE SMART8}
{$I SRL/SRL.Simba}
{$I P07Include.Simba}
procedure P07_DeclarePlayer;
Begin
P07_PlayerName:='';
P07_PlayerPass:='';
end;
procedure OpenMyBank;
var x,y: Integer;
begin
P07_MakeCompassEast;
P07_MakeCameraAngleHigh;
if FindColorTolerance(x, y, 7112083, 200, 62, 519, 174, 10)then
MMouse(x, y, 2, 2);
wait(100);
if not(IsUpTextMultiCustom(['nk boo'])) then
repeat until
(IsUpTextMultiCustom(['nk boo']));
if (IsUpTextMultiCustom(['nk boo'])) then
begin
clickMouse2(MOUSE_left);
end;
end;
begin
SetupSRL;
P07_DeclarePlayer;
SetupP07Include;
If Not P07_LoggedIn Then
P07_LoginPlayer;
wait(5000);
OpenMyBank;
end.
program westkevin12yanilironminer;
{$DEFINE SMART8}
{$I SRL/SRL.Simba}
{$I P07Include.Simba}
procedure P07_DeclarePlayer;
Begin
P07_PlayerName:='';
P07_PlayerPass:='';
end;
procedure OpenMyBank;
var x,y: Integer;
begin
P07_MakeCompassEast;
P07_MakeCameraAngleHigh;
if FindColorTolerance(x, y, 7112083, 200, 62, 519, 174, 10)then
MMouse(x, y, 2, 2);
wait(100);
if not(IsUpTextMultiCustom(['nk boo'])) then
repeat until
(IsUpTextMultiCustom(['nk boo']));
if (IsUpTextMultiCustom(['nk boo'])) then
begin
clickMouse2(MOUSE_left);
end;
end;
begin
SetupSRL;
P07_DeclarePlayer;
SetupP07Include;
If Not P07_LoggedIn Then
P07_LoginPlayer;
wait(5000);
OpenMyBank;
end.