Fast anwser for first script.
I found the part where it target the ground under you:
Quote:
sub mineOneTile ;------------ mineOneTile
startMineOneTile:
gosub sleepIfOffline
finditem TWF_WWF_QPF_NPF C
if #findkind = -1
{
gosub createMiningTool
goto startMineOneTile
}
set #lObjectId #findId
event macro 17 0 ;last object
tile Init
Tile Get #CharPosX #CharPosY 2
set #lTargetTile #tileType
set #lTargetX #charPosX
set #lTargetY #charPosY
set #lTargetZ #charPosZ
set #lTargetKind 3
target 5s
event Macro 22 0 ;last target
To target, it set current charpos as target pos. what you could do is change it by 1 tile like this
set #lTargetX #charPosX + 1
This will mine 1 tileX ahead of your char (doing X and Y would do + 1 tile diagonal, so I would just do X or Y) Doing so will make mining near edge impossible... but a small loss for a lot of gain.
-------------Scan Journal-------------
I could advice you to add more line for the Scanjournal, since more problem can occure when mining.
This is your scanjournal while mining:
Quote:
gosub mineOneTile
set %nIndexTo #jIndex
for %nIndex %nIndexFrom %nIndexTo
{
scanjournal %nIndex
if there_is_no_metal_here in #journal || you_can't_mine_that in #journal || you_can't_mine_there in #journal || is_no_sand_here_to in #journal
{
gosub zMove
gosub sleepIfOffline
wait %nWait
goto afterMove
};if found
};for
THis is what my scanjournal is looking for:
Quote:
if think in #journal || can't_get_there in #journal || reach in #journal || nothing in #journal || far_away in #journal || line_of_sight in #journal || You_cannot_mine_so in #journal || There_is_no_metal_here_to_mine in #journal || You_can't_use_this_where_it_is in #journal || You_can_not_see_that in #journal || elsewhere in #journal ||
this is a compilation of multiple server, and dosnt take longer to the script to do so
Hope it help!