[UOSteam] Alamiester's Easy Miner v0.3u
Posted: Fri Nov 03, 2017 3:15 pm
i got most of the kinks worked out of the ore mining script. theres still a few hangups if there is a rock next to you, it gets stuck in an infinate loop. all you need to do is step one tile away from it. also there is an issue in trammel caves, when the target cannot be seen. the first spot it digs is right under your feet, so if you wanna mine grey spots on the ground outside of caves. i havnt done alot of testing on mountain sides yet. you must have stone keys, a high use shovel, and a bag of resources for this script to work right. ive updated this to the new menu gumps and dropped the metal keys out of it. enjoy!
**make sure your weight is below 350 before you run this. it mines in an 8 grid square around you starting at your feet.**
This version is without the granite keys for those poor folk without access to granite

**make sure your weight is below 350 before you run this. it mines in an 8 grid square around you starting at your feet.**
Code: Select all
//===========================================================
//=--------------Alamiester's Easy Miner V0.3u--------------=
//=------------------------07Apr2018------------------------=
//=----You must have a high use shovel, Stone Keys, and a---=
//=---bor for this to work. After your first run add // in-=
//=---front of the unsetalias to keep from retargeting------=
//=-----------------these items everytime.------------------=
//===========================================================
//unsetalias 'shovel'
//unsetalias 'stonekeys'
//unsetalias 'resourcebag'
@clearlist 'resource'
@clearjournal
//***********************
// For selecting your shovel.
//***********************
if not findalias 'shovel'
headmsg 'Select Shovel or Pickaxe'
promptalias 'shovel'
endif
//***********************
// For adding to Stone Workers keys.
//***********************
if not findalias 'stonekeys'
headmsg 'Select Stone Workers Keys'
promptalias 'stonekeys'
endif
//***********************
// For selecting your Bag of Resources.
//***********************
if not findalias 'resourcebag'
headmsg 'Select your Bag of Resources'
promptalias 'resourcebag'
endif
//***********************
// For selecting your list Resources.
//***********************
if not listexists 'resource'
@createlist 'resource'
endif
@pushlist 'resource' '0x19b9' //ore
//***********************
// To start the digging.
//***********************
msg 'Hi Ho, Hi Ho, Off to work we go!' 15
//***********//
//Position 00//
//***********//
@clearjournal
@unsetalias 'resource'
@unsetalias 'found'
while not @injournal 'There is no' 'system'
for 10
if @injournal 'You dig for' 'system'
elseif @injournal 'mine while riding' 'system'
break
elseif @injournal 'mine that' 'system'
break
elseif @injournal 'mine there' 'system'
break
elseif @injournal 'target cannot be seen' 'system'
break
endif
endfor
headmsg 'Checking for ore...' 24
if weight <= '350'
useobject "shovel"
waitfortarget 500
targettileoffset 0 0 0
pause 1200
else
//===========================================================
//=------------Moves all ore to Bag of Resources------------=
//===========================================================
sysmsg ' **** Looking for Ore ****' '20'
if not @findtype! '0x19b9' 'any' 'backpack' 'any' '0'
sysmsg '***** No Ore found *****' '28'
else
@setalias! 'resource' 'found'
pause 300
for 0 to 'resource'
while @findtype! 'resource[]' 'any' 'backpack' 'any' '0'
pause 300
if @injournal 'cannot hold more'
sysmsg ' !!! WARNING: Your bag is full. Exiting script !!!' '28'
@clearjournal
stop
else
sysmsg '***** Moving Ore *****' '20'
@moveitem 'found' 'resourcebag'
pause 600
endif
endwhile
endfor
endif
//===========================================================
//=------------Moves all Granite to Granite Keys------------=
//===========================================================
sysmsg ' **** Looking for Granite ****' '20'
if not @findtype! '0x176b' '1161' 'backpack'
sysmsg '*****No Granite Keys found.*****' '255'
@canceltarget
stop
else
@usetype! '0x176b' '1161' 'backpack'
pause 300
waitforgump 2633467501 500
@replygump 0x9cf7866d 60015
waitforgump 2633467501 500
pause 300
while @findtype! '0x1779' 'any' 'backpack' 'any' '2'
if not @findtype! '0x1779' 'any' 'backpack' 'any' '2'
pause 300
sysmsg '*****No Granite found.*****' '28'
@canceltarget
else
sysmsg '***** Moving Granite *****' '20'
@targettype! '0x1779' 'any' 'backpack'
waitforgump 2633467501 500
pause 300
endif
endwhile
@replygump 0x9cf7866d 0
@canceltarget
endif
@clearjournal
endif
endwhile
//***********//
//Position 01//
//***********//
@clearjournal
@unsetalias 'resource'
@unsetalias 'found'
while not @injournal 'There is no' 'system'
for 10
if @injournal 'You dig for' 'system'
elseif @injournal 'mine while riding' 'system'
break
elseif @injournal 'mine that' 'system'
break
elseif @injournal 'mine there' 'system'
break
elseif @injournal 'target cannot be seen' 'system'
break
endif
endfor
headmsg 'Checking for ore...' 24
if weight <= '350'
useobject "shovel"
waitfortarget 500
targettileoffset -1 -1 0
pause 1200
else
//===========================================================
//=------------Moves all ore to Bag of Resources------------=
//===========================================================
sysmsg ' **** Looking for Ore ****' '20'
if not @findtype! '0x19b9' 'any' 'backpack' 'any' '0'
sysmsg '***** No Ore found *****' '28'
else
@setalias! 'resource' 'found'
pause 300
for 0 to 'resource'
while @findtype! 'resource[]' 'any' 'backpack' 'any' '0'
pause 300
if @injournal 'cannot hold more'
sysmsg ' !!! WARNING: Your bag is full. Exiting script !!!' '28'
@clearjournal
stop
else
sysmsg '***** Moving Ore *****' '20'
@moveitem 'found' 'resourcebag'
pause 600
endif
endwhile
endfor
endif
//===========================================================
//=------------Moves all Granite to Granite Keys------------=
//===========================================================
sysmsg ' **** Looking for Granite ****' '20'
if not @findtype! '0x176b' '1161' 'backpack'
sysmsg '*****No Granite Keys found.*****' '255'
@canceltarget
stop
else
@usetype! '0x176b' '1161' 'backpack'
pause 300
waitforgump 2633467501 500
@replygump 0x9cf7866d 60015
waitforgump 2633467501 500
pause 300
while @findtype! '0x1779' 'any' 'backpack' 'any' '2'
if not @findtype! '0x1779' 'any' 'backpack' 'any' '2'
pause 300
sysmsg '*****No Granite found.*****' '28'
@canceltarget
else
sysmsg '***** Moving Granite *****' '20'
@targettype! '0x1779' 'any' 'backpack'
waitforgump 2633467501 500
pause 300
endif
endwhile
@replygump 0x9cf7866d 0
@canceltarget
endif
@clearjournal
endif
endwhile
//***********//
//Position 03//
//***********//
@clearjournal
@unsetalias 'resource'
@unsetalias 'found'
while not @injournal 'There is no' 'system'
for 10
if @injournal 'You dig for' 'system'
elseif @injournal 'mine while riding' 'system'
break
elseif @injournal 'mine that' 'system'
break
elseif @injournal 'mine there' 'system'
break
elseif @injournal 'target cannot be seen' 'system'
break
endif
endfor
headmsg 'Checking for ore...' 24
if weight <= '350'
useobject "shovel"
waitfortarget 500
targettileoffset 1 -1 0
pause 1200
else
//===========================================================
//=------------Moves all ore to Bag of Resources------------=
//===========================================================
sysmsg ' **** Looking for Ore ****' '20'
if not @findtype! '0x19b9' 'any' 'backpack' 'any' '0'
sysmsg '***** No Ore found *****' '28'
else
@setalias! 'resource' 'found'
pause 300
for 0 to 'resource'
while @findtype! 'resource[]' 'any' 'backpack' 'any' '0'
pause 300
if @injournal 'cannot hold more'
sysmsg ' !!! WARNING: Your bag is full. Exiting script !!!' '28'
@clearjournal
stop
else
sysmsg '***** Moving Ore *****' '20'
@moveitem 'found' 'resourcebag'
pause 600
endif
endwhile
endfor
endif
//===========================================================
//=------------Moves all Granite to Granite Keys------------=
//===========================================================
sysmsg ' **** Looking for Granite ****' '20'
if not @findtype! '0x176b' '1161' 'backpack'
sysmsg '*****No Granite Keys found.*****' '255'
@canceltarget
stop
else
@usetype! '0x176b' '1161' 'backpack'
pause 300
waitforgump 2633467501 500
@replygump 0x9cf7866d 60015
waitforgump 2633467501 500
pause 300
while @findtype! '0x1779' 'any' 'backpack' 'any' '2'
if not @findtype! '0x1779' 'any' 'backpack' 'any' '2'
pause 300
sysmsg '*****No Granite found.*****' '28'
@canceltarget
else
sysmsg '***** Moving Granite *****' '20'
@targettype! '0x1779' 'any' 'backpack'
waitforgump 2633467501 500
pause 300
endif
endwhile
@replygump 0x9cf7866d 0
@canceltarget
endif
@clearjournal
endif
endwhile
//***********//
//Position 04//
//***********//
@clearjournal
@unsetalias 'resource'
@unsetalias 'found'
while not @injournal 'There is no' 'system'
for 10
if @injournal 'You dig for' 'system'
elseif @injournal 'mine while riding' 'system'
break
elseif @injournal 'mine that' 'system'
break
elseif @injournal 'mine there' 'system'
break
elseif @injournal 'target cannot be seen' 'system'
break
endif
endfor
headmsg 'Checking for ore...' 24
if weight <= '350'
useobject "shovel"
waitfortarget 500
targettileoffset -1 0 0
pause 1200
else
//===========================================================
//=------------Moves all ore to Bag of Resources------------=
//===========================================================
sysmsg ' **** Looking for Ore ****' '20'
if not @findtype! '0x19b9' 'any' 'backpack' 'any' '0'
sysmsg '***** No Ore found *****' '28'
else
@setalias! 'resource' 'found'
pause 300
for 0 to 'resource'
while @findtype! 'resource[]' 'any' 'backpack' 'any' '0'
pause 300
if @injournal 'cannot hold more'
sysmsg ' !!! WARNING: Your bag is full. Exiting script !!!' '28'
@clearjournal
stop
else
sysmsg '***** Moving Ore *****' '20'
@moveitem 'found' 'resourcebag'
pause 600
endif
endwhile
endfor
endif
//===========================================================
//=------------Moves all Granite to Granite Keys------------=
//===========================================================
sysmsg ' **** Looking for Granite ****' '20'
if not @findtype! '0x176b' '1161' 'backpack'
sysmsg '*****No Granite Keys found.*****' '255'
@canceltarget
stop
else
@usetype! '0x176b' '1161' 'backpack'
pause 300
waitforgump 2633467501 500
@replygump 0x9cf7866d 60015
waitforgump 2633467501 500
pause 300
while @findtype! '0x1779' 'any' 'backpack' 'any' '2'
if not @findtype! '0x1779' 'any' 'backpack' 'any' '2'
pause 300
sysmsg '*****No Granite found.*****' '28'
@canceltarget
else
sysmsg '***** Moving Granite *****' '20'
@targettype! '0x1779' 'any' 'backpack'
waitforgump 2633467501 500
pause 300
endif
endwhile
@replygump 0x9cf7866d 0
@canceltarget
endif
@clearjournal
endif
endwhile
//***********//
//Position 05//
//***********//
@clearjournal
@unsetalias 'resource'
@unsetalias 'found'
while not @injournal 'There is no' 'system'
for 10
if @injournal 'You dig for' 'system'
elseif @injournal 'mine while riding' 'system'
break
elseif @injournal 'mine that' 'system'
break
elseif @injournal 'mine there' 'system'
break
elseif @injournal 'target cannot be seen' 'system'
break
endif
endfor
headmsg 'Checking for ore...' 24
if weight <= '350'
useobject "shovel"
waitfortarget 500
targettileoffset 1 0 0
pause 1200
else
//===========================================================
//=------------Moves all ore to Bag of Resources------------=
//===========================================================
sysmsg ' **** Looking for Ore ****' '20'
if not @findtype! '0x19b9' 'any' 'backpack' 'any' '0'
sysmsg '***** No Ore found *****' '28'
else
@setalias! 'resource' 'found'
pause 300
for 0 to 'resource'
while @findtype! 'resource[]' 'any' 'backpack' 'any' '0'
pause 300
if @injournal 'cannot hold more'
sysmsg ' !!! WARNING: Your bag is full. Exiting script !!!' '28'
@clearjournal
stop
else
sysmsg '***** Moving Ore *****' '20'
@moveitem 'found' 'resourcebag'
pause 600
endif
endwhile
endfor
endif
//===========================================================
//=------------Moves all Granite to Granite Keys------------=
//===========================================================
sysmsg ' **** Looking for Granite ****' '20'
if not @findtype! '0x176b' '1161' 'backpack'
sysmsg '*****No Granite Keys found.*****' '255'
@canceltarget
stop
else
@usetype! '0x176b' '1161' 'backpack'
pause 300
waitforgump 2633467501 500
@replygump 0x9cf7866d 60015
waitforgump 2633467501 500
pause 300
while @findtype! '0x1779' 'any' 'backpack' 'any' '2'
if not @findtype! '0x1779' 'any' 'backpack' 'any' '2'
pause 300
sysmsg '*****No Granite found.*****' '28'
@canceltarget
else
sysmsg '***** Moving Granite *****' '20'
@targettype! '0x1779' 'any' 'backpack'
waitforgump 2633467501 500
pause 300
endif
endwhile
@replygump 0x9cf7866d 0
@canceltarget
endif
@clearjournal
endif
endwhile
//***********//
//Position 06//
//***********//
@clearjournal
@unsetalias 'resource'
@unsetalias 'found'
while not @injournal 'There is no' 'system'
for 10
if @injournal 'You dig for' 'system'
elseif @injournal 'mine while riding' 'system'
break
elseif @injournal 'mine that' 'system'
break
elseif @injournal 'mine there' 'system'
break
elseif @injournal 'target cannot be seen' 'system'
break
endif
endfor
headmsg 'Checking for ore...' 24
if weight <= '350'
useobject "shovel"
waitfortarget 500
targettileoffset -1 1 0
pause 1200
else
//===========================================================
//=------------Moves all ore to Bag of Resources------------=
//===========================================================
sysmsg ' **** Looking for Ore ****' '20'
if not @findtype! '0x19b9' 'any' 'backpack' 'any' '0'
sysmsg '***** No Ore found *****' '28'
else
@setalias! 'resource' 'found'
pause 300
for 0 to 'resource'
while @findtype! 'resource[]' 'any' 'backpack' 'any' '0'
pause 300
if @injournal 'cannot hold more'
sysmsg ' !!! WARNING: Your bag is full. Exiting script !!!' '28'
@clearjournal
stop
else
sysmsg '***** Moving Ore *****' '20'
@moveitem 'found' 'resourcebag'
pause 600
endif
endwhile
endfor
endif
//===========================================================
//=------------Moves all Granite to Granite Keys------------=
//===========================================================
sysmsg ' **** Looking for Granite ****' '20'
if not @findtype! '0x176b' '1161' 'backpack'
sysmsg '*****No Granite Keys found.*****' '255'
@canceltarget
stop
else
@usetype! '0x176b' '1161' 'backpack'
pause 300
waitforgump 2633467501 500
@replygump 0x9cf7866d 60015
waitforgump 2633467501 500
pause 300
while @findtype! '0x1779' 'any' 'backpack' 'any' '2'
if not @findtype! '0x1779' 'any' 'backpack' 'any' '2'
pause 300
sysmsg '*****No Granite found.*****' '28'
@canceltarget
else
sysmsg '***** Moving Granite *****' '20'
@targettype! '0x1779' 'any' 'backpack'
waitforgump 2633467501 500
pause 300
endif
endwhile
@replygump 0x9cf7866d 0
@canceltarget
endif
@clearjournal
endif
endwhile
//***********//
//Position 07//
//***********//
@clearjournal
@unsetalias 'resource'
@unsetalias 'found'
while not @injournal 'There is no' 'system'
for 10
if @injournal 'You dig for' 'system'
elseif @injournal 'mine while riding' 'system'
break
elseif @injournal 'mine that' 'system'
break
elseif @injournal 'mine there' 'system'
break
elseif @injournal 'target cannot be seen' 'system'
break
endif
endfor
headmsg 'Checking for ore...' 24
if weight <= '350'
useobject "shovel"
waitfortarget 500
targettileoffset 0 1 0
pause 1200
else
//===========================================================
//=------------Moves all ore to Bag of Resources------------=
//===========================================================
sysmsg ' **** Looking for Ore ****' '20'
if not @findtype! '0x19b9' 'any' 'backpack' 'any' '0'
sysmsg '***** No Ore found *****' '28'
else
@setalias! 'resource' 'found'
pause 300
for 0 to 'resource'
while @findtype! 'resource[]' 'any' 'backpack' 'any' '0'
pause 300
if @injournal 'cannot hold more'
sysmsg ' !!! WARNING: Your bag is full. Exiting script !!!' '28'
@clearjournal
stop
else
sysmsg '***** Moving Ore *****' '20'
@moveitem 'found' 'resourcebag'
pause 600
endif
endwhile
endfor
endif
//===========================================================
//=------------Moves all Granite to Granite Keys------------=
//===========================================================
sysmsg ' **** Looking for Granite ****' '20'
if not @findtype! '0x176b' '1161' 'backpack'
sysmsg '*****No Granite Keys found.*****' '255'
@canceltarget
stop
else
@usetype! '0x176b' '1161' 'backpack'
pause 300
waitforgump 2633467501 500
@replygump 0x9cf7866d 60015
waitforgump 2633467501 500
pause 300
while @findtype! '0x1779' 'any' 'backpack' 'any' '2'
if not @findtype! '0x1779' 'any' 'backpack' 'any' '2'
pause 300
sysmsg '*****No Granite found.*****' '28'
@canceltarget
else
sysmsg '***** Moving Granite *****' '20'
@targettype! '0x1779' 'any' 'backpack'
waitforgump 2633467501 500
pause 300
endif
endwhile
@replygump 0x9cf7866d 0
@canceltarget
endif
@clearjournal
endif
endwhile
//***********//
//Position 08//
//***********//
@clearjournal
@unsetalias 'resource'
@unsetalias 'found'
while not @injournal 'There is no' 'system'
for 10
if @injournal 'You dig for' 'system'
elseif @injournal 'mine while riding' 'system'
break
elseif @injournal 'mine that' 'system'
break
elseif @injournal 'mine there' 'system'
break
elseif @injournal 'target cannot be seen' 'system'
break
endif
endfor
headmsg 'Checking for ore...' 24
if weight <= '350'
useobject "shovel"
waitfortarget 500
targettileoffset 1 1 0
pause 1200
else
//===========================================================
//=------------Moves all ore to Bag of Resources------------=
//===========================================================
sysmsg ' **** Looking for Ore ****' '20'
if not @findtype! '0x19b9' 'any' 'backpack' 'any' '0'
sysmsg '***** No Ore found *****' '28'
else
@setalias! 'resource' 'found'
pause 300
for 0 to 'resource'
while @findtype! 'resource[]' 'any' 'backpack' 'any' '0'
pause 300
if @injournal 'cannot hold more'
sysmsg ' !!! WARNING: Your bag is full. Exiting script !!!' '28'
@clearjournal
stop
else
sysmsg '***** Moving Ore *****' '20'
@moveitem 'found' 'resourcebag'
pause 600
endif
endwhile
endfor
endif
//===========================================================
//=------------Moves all Granite to Granite Keys------------=
//===========================================================
sysmsg ' **** Looking for Granite ****' '20'
if not @findtype! '0x176b' '1161' 'backpack'
sysmsg '*****No Granite Keys found.*****' '255'
@canceltarget
stop
else
@usetype! '0x176b' '1161' 'backpack'
pause 300
waitforgump 2633467501 500
@replygump 0x9cf7866d 60015
waitforgump 2633467501 500
pause 300
while @findtype! '0x1779' 'any' 'backpack' 'any' '2'
if not @findtype! '0x1779' 'any' 'backpack' 'any' '2'
pause 300
sysmsg '*****No Granite found.*****' '28'
@canceltarget
else
sysmsg '***** Moving Granite *****' '20'
@targettype! '0x1779' 'any' 'backpack'
waitforgump 2633467501 500
pause 300
endif
endwhile
@replygump 0x9cf7866d 0
@canceltarget
endif
@clearjournal
endif
endwhile
headmsg 'There is no more ore here, move to the next vien.' 24

Code: Select all
//===========================================================
//=--------------Alamiester's Easy Miner V0.3u--------------=
//=------------------------07Apr2018------------------------=
//=----You must have a high use shovel for this and bor-----=
//=---- to work. After your first run add // in front of---=
//=---the unsetalias to keep from retargeting these items---=
//=-----------------------everytime.------------------------=
//===========================================================
//unsetalias 'shovel'
//unsetalias 'resourcebag'
@clearlist 'resource'
@clearjournal
//===========================================================
//=---------------For selecting your shovel.----------------=
//===========================================================
if not findalias 'shovel'
headmsg 'Select Shovel or Pickaxe'
promptalias 'shovel'
endif
//===========================================================
//=----------For selecting your Bag of Resources.-----------=
//===========================================================
if not findalias 'resourcebag'
headmsg 'Select your Bag of Resources'
promptalias 'resourcebag'
endif
//===========================================================
//=--------------For Selecting your Resources.--------------=
//===========================================================
if not listexists 'resource'
@createlist 'resource'
endif
@pushlist 'resource' '0x19b9' //ore
//===========================================================
// =-----------------To start the digging.------------------=
//===========================================================
msg 'Hi Ho, Hi Ho, Off to work we go!' 15
//***********//
//Position 00//
//***********//
@clearjournal
@unsetalias 'resource'
@unsetalias 'found'
while not @injournal 'There is no' 'system'
for 10
if @injournal 'You dig for' 'system'
elseif @injournal 'mine while riding' 'system'
break
elseif @injournal 'mine that' 'system'
break
elseif @injournal 'mine there' 'system'
break
elseif @injournal 'target cannot be seen' 'system'
break
endif
endfor
headmsg 'Mining Grid 0 0 0...' 24
if weight <= '350'
useobject "shovel"
waitfortarget 500
targettileoffset 0 0 0
pause 1200
else
//===========================================================
//=------------Moves all ore to Bag of Resources------------=
//===========================================================
sysmsg '*****Checking bag for Ore.*****' '20'
if not @findtype! '0x19b9' 'any' 'backpack' 'any' '0'
sysmsg '*****No Ore found.*****' '28'
else
@setalias! 'resource' 'found'
pause 300
for 0 to 'resource'
while @findtype! 'resource[]' 'any' 'backpack' 'any' '0'
pause 300
if @injournal 'cannot hold more'
sysmsg ' !!! WARNING: Your bag is full. Exiting script !!!' '28'
@clearjournal
stop
else
sysmsg '*****Moving Ore.*****' '20'
@moveitem 'found' 'resourcebag'
pause 600
endif
endwhile
endfor
endif
endif
endwhile
//***********//
//Position 01//
//***********//
@clearjournal
@unsetalias 'resource'
@unsetalias 'found'
while not @injournal 'There is no' 'system'
for 10
if @injournal 'You dig for' 'system'
elseif @injournal 'mine while riding' 'system'
break
elseif @injournal 'mine that' 'system'
break
elseif @injournal 'mine there' 'system'
break
elseif @injournal 'target cannot be seen' 'system'
break
endif
endfor
headmsg 'Mining Grid -1 -1 0...' 24
if weight <= '350'
useobject "shovel"
waitfortarget 500
targettileoffset -1 -1 0
pause 1200
else
//===========================================================
//=------------Moves all ore to Bag of Resources------------=
//===========================================================
sysmsg '*****Checking bag for Ore.*****' '20'
if not @findtype! '0x19b9' 'any' 'backpack' 'any' '0'
sysmsg '*****No Ore found.*****' '28'
else
@setalias! 'resource' 'found'
pause 300
for 0 to 'resource'
while @findtype! 'resource[]' 'any' 'backpack' 'any' '0'
pause 300
if @injournal 'cannot hold more'
sysmsg ' !!! WARNING: Your bag is full. Exiting script !!!' '28'
@clearjournal
stop
else
sysmsg '*****Moving Ore.*****' '20'
@moveitem 'found' 'resourcebag'
pause 600
endif
endwhile
endfor
endif
endif
endwhile
//***********//
//Position 03//
//***********//
@clearjournal
@unsetalias 'resource'
@unsetalias 'found'
while not @injournal 'There is no' 'system'
for 10
if @injournal 'You dig for' 'system'
elseif @injournal 'mine while riding' 'system'
break
elseif @injournal 'mine that' 'system'
break
elseif @injournal 'mine there' 'system'
break
elseif @injournal 'target cannot be seen' 'system'
break
endif
endfor
headmsg 'Mining Grid 1 -1 0...' 24
if weight <= '350'
useobject "shovel"
waitfortarget 500
targettileoffset 1 -1 0
pause 1200
else
//===========================================================
//=------------Moves all ore to Bag of Resources------------=
//===========================================================
sysmsg '*****Checking bag for Ore.*****' '20'
if not @findtype! '0x19b9' 'any' 'backpack' 'any' '0'
sysmsg '*****No Ore found.*****' '28'
else
@setalias! 'resource' 'found'
pause 300
for 0 to 'resource'
while @findtype! 'resource[]' 'any' 'backpack' 'any' '0'
pause 300
if @injournal 'cannot hold more'
sysmsg ' !!! WARNING: Your bag is full. Exiting script !!!' '28'
@clearjournal
stop
else
sysmsg '*****Moving Ore.*****' '20'
@moveitem 'found' 'resourcebag'
pause 600
endif
endwhile
endfor
endif
endif
endwhile
//***********//
//Position 04//
//***********//
@clearjournal
@unsetalias 'resource'
@unsetalias 'found'
while not @injournal 'There is no' 'system'
for 10
if @injournal 'You dig for' 'system'
elseif @injournal 'mine while riding' 'system'
break
elseif @injournal 'mine that' 'system'
break
elseif @injournal 'mine there' 'system'
break
elseif @injournal 'target cannot be seen' 'system'
break
endif
endfor
headmsg 'Mining Grid -1 0 0...' 24
if weight <= '350'
useobject "shovel"
waitfortarget 500
targettileoffset -1 0 0
pause 1200
else
//===========================================================
//=------------Moves all ore to Bag of Resources------------=
//===========================================================
sysmsg '*****Checking bag for Ore.*****' '20'
if not @findtype! '0x19b9' 'any' 'backpack' 'any' '0'
sysmsg '***** No Ore found *****' '28'
else
@setalias! 'resource' 'found'
pause 300
for 0 to 'resource'
while @findtype! 'resource[]' 'any' 'backpack' 'any' '0'
pause 300
if @injournal 'cannot hold more'
sysmsg ' !!! WARNING: Your bag is full. Exiting script !!!' '28'
@clearjournal
stop
else
sysmsg '*****Moving Ore.*****' '20'
@moveitem 'found' 'resourcebag'
pause 600
endif
endwhile
endfor
endif
endif
endwhile
//***********//
//Position 05//
//***********//
@clearjournal
@unsetalias 'resource'
@unsetalias 'found'
while not @injournal 'There is no' 'system'
for 10
if @injournal 'You dig for' 'system'
elseif @injournal 'mine while riding' 'system'
break
elseif @injournal 'mine that' 'system'
break
elseif @injournal 'mine there' 'system'
break
elseif @injournal 'target cannot be seen' 'system'
break
endif
endfor
headmsg 'Mining Grid 1 0 0...' 24
if weight <= '350'
useobject "shovel"
waitfortarget 500
targettileoffset 1 0 0
pause 1200
else
//===========================================================
//=------------Moves all ore to Bag of Resources------------=
//===========================================================
sysmsg '*****Checking bag for Ore.*****' '20'
if not @findtype! '0x19b9' 'any' 'backpack' 'any' '0'
sysmsg '***** No Ore found *****' '28'
else
@setalias! 'resource' 'found'
pause 300
for 0 to 'resource'
while @findtype! 'resource[]' 'any' 'backpack' 'any' '0'
pause 300
if @injournal 'cannot hold more'
sysmsg ' !!! WARNING: Your bag is full. Exiting script !!!' '28'
@clearjournal
stop
else
sysmsg '*****Moving Ore.*****' '20'
@moveitem 'found' 'resourcebag'
pause 600
endif
endwhile
endfor
endif
endif
endwhile
//***********//
//Position 06//
//***********//
@clearjournal
@unsetalias 'resource'
@unsetalias 'found'
while not @injournal 'There is no' 'system'
for 10
if @injournal 'You dig for' 'system'
elseif @injournal 'mine while riding' 'system'
break
elseif @injournal 'mine that' 'system'
break
elseif @injournal 'mine there' 'system'
break
elseif @injournal 'target cannot be seen' 'system'
break
endif
endfor
headmsg 'Mining Grid -1 1 0...' 24
if weight <= '350'
useobject "shovel"
waitfortarget 500
targettileoffset -1 1 0
pause 1200
else
//===========================================================
//=------------Moves all ore to Bag of Resources------------=
//===========================================================
sysmsg '*****Checking bag for Ore.*****' '20'
if not @findtype! '0x19b9' 'any' 'backpack' 'any' '0'
sysmsg '*****No Ore found.*****' '28'
else
@setalias! 'resource' 'found'
pause 300
for 0 to 'resource'
while @findtype! 'resource[]' 'any' 'backpack' 'any' '0'
pause 300
if @injournal 'cannot hold more'
sysmsg ' !!! WARNING: Your bag is full. Exiting script !!!' '28'
@clearjournal
stop
else
sysmsg '*****Moving Ore.*****' '20'
@moveitem 'found' 'resourcebag'
pause 600
endif
endwhile
endfor
endif
endif
endwhile
//***********//
//Position 07//
//***********//
@clearjournal
@unsetalias 'resource'
@unsetalias 'found'
while not @injournal 'There is no' 'system'
for 10
if @injournal 'You dig for' 'system'
elseif @injournal 'mine while riding' 'system'
break
elseif @injournal 'mine that' 'system'
break
elseif @injournal 'mine there' 'system'
break
elseif @injournal 'target cannot be seen' 'system'
break
endif
endfor
headmsg 'Mining Grid 0 1 0...' 24
if weight <= '350'
useobject "shovel"
waitfortarget 500
targettileoffset 0 1 0
pause 1200
else
//===========================================================
//=------------Moves all ore to Bag of Resources------------=
//===========================================================
sysmsg '*****Checking bag for Ore.*****' '20'
if not @findtype! '0x19b9' 'any' 'backpack' 'any' '0'
sysmsg '***** No Ore found *****' '28'
else
@setalias! 'resource' 'found'
pause 300
for 0 to 'resource'
while @findtype! 'resource[]' 'any' 'backpack' 'any' '0'
pause 300
if @injournal 'cannot hold more'
sysmsg ' !!! WARNING: Your bag is full. Exiting script !!!' '28'
@clearjournal
stop
else
sysmsg '*****Moving Ore.*****' '20'
@moveitem 'found' 'resourcebag'
pause 600
endif
endwhile
endfor
endif
endif
endwhile
//***********//
//Position 08//
//***********//
@clearjournal
@unsetalias 'resource'
@unsetalias 'found'
while not @injournal 'There is no' 'system'
for 10
if @injournal 'You dig for' 'system'
elseif @injournal 'mine while riding' 'system'
break
elseif @injournal 'mine that' 'system'
break
elseif @injournal 'mine there' 'system'
break
elseif @injournal 'target cannot be seen' 'system'
break
endif
endfor
headmsg 'Mining Grid 1 1 0...' 24
if weight <= '350'
useobject "shovel"
waitfortarget 500
targettileoffset 1 1 0
pause 1200
else
//===========================================================
//=------------Moves all ore to Bag of Resources------------=
//===========================================================
sysmsg '*****Checking bag for Ore.*****' '20'
if not @findtype! '0x19b9' 'any' 'backpack' 'any' '0'
sysmsg '*****No Ore found.*****' '28'
else
@setalias! 'resource' 'found'
pause 300
for 0 to 'resource'
while @findtype! 'resource[]' 'any' 'backpack' 'any' '0'
pause 300
if @injournal 'cannot hold more'
sysmsg ' !!! WARNING: Your bag is full. Exiting script !!!' '28'
@clearjournal
stop
else
sysmsg '*****Moving Ore.*****' '20'
@moveitem 'found' 'resourcebag'
pause 600
endif
endwhile
endfor
endif
endif
endwhile
headmsg 'There is no more ore here, move to the next vien.' 24