• Hail Guest!
    We're looking for Community Content Contribuitors to Stratics. If you would like to write articles, fan fiction, do guild or shard event recaps, it's simple. Find out how in this thread: Community Contributions
  • Greetings Guest, Having Login Issues? Check this thread!
  • Hail Guest!,
    Please take a moment to read this post reminding you all of the importance of Account Security.
  • Hail Guest!
    Please read the new announcement concerning the upcoming addition to Stratics. You can find the announcement Here!

Mining Macro

S

Scoobs

Guest
I am trying to set up a macro to use shovel once, then use prospector tool then shovel 10 times. I have tried using all sorts of different combinations but no luck.

Thanks
 

Dermott of LS

UOEC Modder
Stratics Veteran
Stratics Legend
...

I actually use 3 macros for this...

1. Shovel/Pick in a hotbar slot, Target Cursor
2. A built macro to use a Prospector's Tool, Target Cursor, Wait for Target, tyhne TargetCursorLast
3. A built macro that uses each type of shovel and pick (both sturdy tools and both facings of garg picks) so that I don't have to rebuild the macro, target cursor, wait for target, TargetCursorLast. There are delays between each action to make them work without overlapping. This repeats 3x. Then it goes into a Smelt process that attempts to smelt every ore color and size starting with large Val down to large Iron, then mediums then smalls. At that point the macro repeats with the next 3 digs and is set up to repeat 7 - 10 times as desired.

The XML for the 2 built macros are as follows:

Prospector's Tool
Code:
<UserAction type="Macro" id="1" iconId="2034" name="Prosp Tool" repeatEnabled="false" repeatCount="2" binding="">
                <UserAction type="UseObjectType" id="263457139" iconId="4020" targetType="Cursor" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="Delay" id="0" iconId="623" targetType="Current" delay="0.44" />
                <UserAction type="CursorTargetLast" id="0" iconId="644" targetType="Current" />
            </UserAction>
Mining/Smelting
Code:
<UserAction type="Macro" id="4" iconId="2034" name="Digging" repeatEnabled="true" repeatCount="10" binding="">
                <UserAction type="UseObjectType" id="255396211" iconId="3897" targetType="Cursor" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="243665267" iconId="3718" targetType="Cursor" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="243662848" iconId="3718" targetType="Cursor" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="243597857" iconId="3717" targetType="Cursor" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="Delay" id="0" iconId="623" targetType="Current" delay="0.52" />
                <UserAction type="CursorTargetLast" id="0" iconId="644" targetType="Current" />
                <UserAction type="Delay" id="0" iconId="623" targetType="Current" delay="0.45" />
                <UserAction type="UseObjectType" id="255396211" iconId="3897" targetType="Cursor" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="243665267" iconId="3718" targetType="Cursor" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="243597857" iconId="3717" targetType="Cursor" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="243662848" iconId="3718" targetType="Cursor" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="Delay" id="0" iconId="623" targetType="Current" delay="0.44" />
                <UserAction type="CursorTargetLast" id="0" iconId="644" targetType="Current" />
                <UserAction type="Delay" id="0" iconId="623" targetType="Current" delay="0.43" />
                <UserAction type="UseObjectType" id="243665267" iconId="3718" targetType="Cursor" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="243662848" iconId="3718" targetType="Cursor" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="243597857" iconId="3717" targetType="Cursor" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="255396211" iconId="3897" targetType="Cursor" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="Delay" id="0" iconId="623" targetType="Current" delay="0.36" />
                <UserAction type="CursorTargetLast" id="0" iconId="644" targetType="Current" />
                <UserAction type="Delay" id="0" iconId="623" targetType="Current" delay="0.85" />
                <UserAction type="UseObjectType" id="431556779" iconId="6585" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431556767" iconId="6585" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431556985" iconId="6585" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431556773" iconId="6585" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431556978" iconId="6585" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431556973" iconId="6585" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431556966" iconId="6585" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431556979" iconId="6585" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431554560" iconId="6585" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431620096" iconId="6586" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431622515" iconId="6586" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431622502" iconId="6586" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431622509" iconId="6586" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431622514" iconId="6586" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431622309" iconId="6586" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431622521" iconId="6586" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431622303" iconId="6586" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431622315" iconId="6586" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431489024" iconId="6584" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431491443" iconId="6584" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431491430" iconId="6584" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431491437" iconId="6584" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431491442" iconId="6584" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431491237" iconId="6584" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431491449" iconId="6584" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431491231" iconId="6584" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431491243" iconId="6584" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431423488" iconId="6583" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431425907" iconId="6583" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431425894" iconId="6583" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431425901" iconId="6583" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431425906" iconId="6583" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431425701" iconId="6583" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431425913" iconId="6583" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431425695" iconId="6583" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
                <UserAction type="UseObjectType" id="431425707" iconId="6583" targetType="ObjectId" targetId="56647118" iconObjectType="0" iconObjectHue="0" />
            </UserAction>
Note that the Target for the smelts is Stored to my fire beetle thus would need to be reset if you copy/paste this code into your character file.
 
Top