From: i3egoHan
1: Use better walking ( if its walking too far your walking is bad )
2: Walk to chest and use a FindColorsSpiralTolerance.
Im pretty sure SRL already deals with the castle wars chest in the OpenBankChest().. Constant is SRL_BANK_CW (i think)..
He is totaly Right. If you got problem with Walking near the Chest, Your DTM isn't good Enought because I use a castle wars banking in my script and I got no problem.
2.Finding the chest a little bit more harder if you want to make your own method. You will need to use TPA, because there is a lot of the same color and things to confuse any kind of DTMOBJFinding in this place.
If you want to look at a reference. Download my Script and do CTRL + F than Type FindCas
You will find my function to find the Castle Wars Chest.
For the Walking, Type WalkToBank
The DTM for walking is under (WayOfBanking = 1)
Edit:
Save you a few time and try my Walking Procedure for fun. You will see it is posible. I don't care if you just decide to use it but give credit to me in your script.
WalkToTresor: Array[0..2] of Integer;
WalkToTresor[0] := DTMFromString('m1gAAAHic42JgYFjKxsAwB4h7gXgDEO8H4kNQvASIT0DxO6Dab0D8EIhvAvEzIGZiZGCQAWJZIOYH4o9AsYSEOIacHFUGF1MJhmgPBYasrAw4Bsml9xmAMT9QLTGYkUiMAACiBhgq');
WalkToTresor[1] := DTMFromString('maQEAAHicrc8xCwEBAIbhj12RQQb8gMtqkVxiw26iI3Rdl4mOpESKgRRSYjT6Cfw0b9dlMfLVM33TG5O0DEtj3AJXHLFFGy1YsLHHGXc88MQLuZDkwkENBjKIoo4q7ODfYIIZGijDxHDg+Jyu9dGspLRan+T0LJUKedWKCZnZuIx0RHNvpMXU0+Ww87n9jpL0/Cr0B197AyctJNA=');
WalkToTresor[2] := DTMFromString('mKgEAAHic42NgYFjOxMAwG4j3QPFJJLwCiFuhuB6IG4G4CYjXAbEAIwODFxB7ADEfEAsCsSEQuwFxOBDrArEmEKsBsT4QBwHxd6B9hXkZDNkZyQzpKfFg/Pb5NziuLS9hyExPZHCwtYSLNXdOBmMNoF5yMCOZGBUAAIafKEA=');
procedure WalkToBank;
begin
if FindDTMRotated(WalkToTresor[0], x, y, MMX1, MMY1, MMX2, MMY2, -Pi/4, Pi/4, Pi/60, aFound) then
begin
Mouse(x, y, 3, 3, True);
FFlag(6);
wait(1500 + random(1000));
end else
if FindDTMRotated(WalkToTresor[1], x, y, MMX1, MMY1, MMX2, MMY2, -Pi/4, Pi/4, Pi/60, aFound) then
begin
Mouse(x, y, 3, 3, True);
FFlag(6);
wait(1500 + random(1000));
end else
if FindDTMRotated(WalkToTresor[2], x, y, MMX1, MMY1, MMX2, MMY2, -Pi/4, Pi/4, Pi/60, aFound) then
begin
Mouse(x, y, 3, 3, True);
FFlag(6);
wait(1500 + random(1000));
end else
begin
terminatescript;
end;
end;