Post by Ravenclaw on Jul 18, 2013 12:15:00 GMT -8
***Updated: Dec. 25, 2013 - Now handles all ore sizes. Can be used with Smelting macro.
***Required:
This is a basic script that will mine metal and move Northward when no metal found. It should let you know when you are out of tools and when your pack animal is full and stop in both cases. It can be easily modified to a different direction by copying the script and changing the three 'North' references in the script to East, West or South as needed. [Recommend making 4 scripts, one for each direction]
Issue
1- When it runs out of room in a direction, it may still try to mine depending on what it runs into.
***Required:
- You MUST setup an Organizer under the Agents tab called "MoveOre" (No Quotes). This organizer should target all four ore sizes (0x19b8, 0x19ba, 0x19b7 & 0x19b9) and also take these ores from your backpack and move them to the pack animal.
- You Must have a Pack Animal
- You Must have Pick-axes in your pack.
This is a basic script that will mine metal and move Northward when no metal found. It should let you know when you are out of tools and when your pack animal is full and stop in both cases. It can be easily modified to a different direction by copying the script and changing the three 'North' references in the script to East, West or South as needed. [Recommend making 4 scripts, one for each direction]
Issue
1- When it runs out of room in a direction, it may still try to mine depending on what it runs into.
If weight <= maxweight
clearjournal
//Check for PickAxes
if not @findtype 0xe86 'any' 'backpack'
sysmsg 'NO PICKAXES LEFT''32'
stop
endif
//Target Ground
usetype '0xe86' 'any' 'backpack'
pause 600
targettilerelative 'self' 1
pause 600
//Check For Failed Mining or continue
if @injournal 'you loosen some rocks' 'system'
usetype '0xe86' 'any' 'backpack'
pause 600
targettilerelative 'self' 1
pause 600
endif
//Walk For Exhausted Areas
if @injournal 'no metal here' 'system'
pause 300
walk north
pause 300
endif
//If against a wall or other object
if @injournal 'Target cannot be seen' 'system'
sysmsg 'TURN CHARACTER AND START NEW MACRO' '32'
stop
endif
//Walk for Blank Areas
if @injournal 'mine that' 'system'
walk north
pause 300
endif
//Repeated message
if @injournal 'Where do you wish to dig?' 'system'
pause 300
if not @injournal 'You dig some' 'system'
//walk north
pause 300
clearjournal
endif
endif
else
//Create Organizer under Agents tab called MoveOre and select ore types to move there
// Check if you are already organizing and organize
organizer 'MoveOre'
pause 4000
//Check if ore is dropped and stop
if @findtype '0x19b9' 'any' 'ground' '1' '3'
sysmsg ' PACK ANIMAL FULL ' '32'
stop
endif
if @findtype '0x19b8' 'any' 'ground' '1' '3'
sysmsg ' PACK ANIMAL FULL ' '32'
stop
endif
if @findtype '0x19ba' 'any' 'ground' '1' '3'
sysmsg ' PACK ANIMAL FULL ' '32'
stop
endif
//Double-checks the character weight to see if they are too heavy
if weight >= maxweight
sysmsg 'TOO HEAVY' '32'
stop
endif
endif