//Example of walking to bank
public void ToBank() throws InterruptedException
{
XY banksym = findSymbol(MiniMap.SYMBOL_BANK);
if (banksym != null)
{
walkToSymbol(MiniMap.SYMBOL_BANK);
}
else
{
walk(19, 24);//this would be some place walking near the bank so you can see symbol
walkToSymbol(MiniMap.SYMBOL_BANK);
}
}
//You also should implement something like this
public boolean AtBank()
{
return tileDistance(new Tile(3093,3243)) < 10;
}
public boolean AtFishSpot()
{
return tileDistance(new Tile(3087,3228)) < 10;
}
//returns distance from current location to the tile
public int tileDistance(Tile tile1)
{
Tile player = getLocation();
int px = (player.x - tile1.x);
int py = (player.y - tile1.y);
if (px < 0) { px = -(px); }
if (py < 0) { py = -(py); }
return py + px;
}