procedure Bank1;
begin
RadialWalk(8291463,160 , 200, 65, -1, 0);
If (FindSymbol(x, y, 'bank')) then
Mouse(x,y,5,5,true);
Wait(3900);
end;
You cannot use normal colors in a normal RadialWalk because minimap colors change all the time!..Now i don't know if your clicking a road etc…but if it is a road then it should be..
procedure Bank1;
begin
RadialWalk(FindVarrockRoadColor,160 , 200, 65, -1, 0);
If (FindSymbol(x, y, 'bank')) then
Mouse(x,y,5,5,true);
Wait(3900);
end;
Since edgeville, is closest to Varrock, it uses the same
AutoColor.Now, the banking:
procedure Banking;
begin
FindObjCustom(x, y, ['bank', 'anker'], [1469101, 5322561], 5);
Mouse(x,y,5,5,false);
ChooseOption('ank');
Wait(600);
DepositAll;
end;
In the SRL, there is a function that finds the banker already. it is called….
[PHP]function OpenBank(WhichBank: String, ChangeCompass, ChangeAngle: Boolean): Boolean;[/PHP]]
Which bank, is which bank your opening..so it would be so far…
OpenBank('eb'
since bank is a string and edgeville bank is 'eb'/
Next is if you wanna change compass to find the banker..
OpenBank('eb, true, true);
This will change the compass and angle to find the banker:duh:
DepositAll; deposits everything, so thats good:)
and
CloseBank;
closes the bank screen::redface:
You could combine a lot of procedures you have into one procedure such as…
procedure FindMan;
begin
FindObjCustom(x, y, ['att', 'ack'], [ManColor1, ManColor2,ManColor3], 5);
begin
Mouse(x,y,5,5,false);
wait(300);
end;
end;
procedure Attack;
begin
ChooseOption('ttack');
Wait(15000);
end;
which could be in one procedure…
procedure FindMan;
begin
FindObjCustom(x, y, ['att', 'ack'], [ManColor1, ManColor2,ManColor3], 5);
begin
Mouse(x,y,5,5,false);
wait(300);
ChooseOption('ttack')l
Wait(15000);
end;
end;
And instead of putting 15000 mili-seconds you could add randomness like…
Wait(750 + Random(750)); // or w\e you get the point
A nice first script, with a bit more improvement it could be a really good one.:p
Edit: BTW!
For ..
Coin1 = 1610675;
Coins = 0000lol;
Bone1 = 12171714;
Bone2 = 9013651;
Bank = 7503752;
You can use Bitmaps or DTMs.
I'd check the tutorial section, they have lots of dtm/bitmap tutorials :)