1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Greetings Guest!!

    In order to combat SPAM on the forums, all users are required to have a minimum of 2 posts before they can submit links in any post or thread.

    Dismiss Notice

Mining Macro

Discussion in 'UO Enhanced Client Discussion' started by Scoobs, Apr 20, 2011.

  1. Scoobs

    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
     
  2. Dermott of LS

    Dermott of LS UOEC Modder
    Stratics Veteran

    Joined:
    May 12, 2008
    Messages:
    5,320
    Likes Received:
    528
    ...

    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.