UOS Weapons Armor Crafting Macro

Share your guides, how-tos, FAQs, and so forth. This is not for support -- post questions in General Discussion.
Post Reply
User avatar
Tanya
Posts: 1796

UOS Weapons Armor Crafting Macro

Post by Tanya »

I was modifying macros that I found for crafting weapons, and added a Salvage Bag.
This macro uses "Make Last" button, so need manually set up ingots color and craft first item,
the loop option must be checked.
It restocks ingots, but need to restock manually hammers (can take each time as many hammers as you can carry in in a bag).
Be careful and make sure your backpack is empty of katanas because it will take all items of the type that is set (katana in this case)
and will smelt all that don't meet requirements. If you think it trash good items, comment the line in the end where it says waitforcontext 'Salvage Bag' 0 15000
And to craft anything else, just replace the graphic of the item and add more IF statements with properties you are looking for.

Code: Select all

if not @findobject 'Salvage Bag'
  promptalias 'Salvage Bag'
endif
if not @findobject 'Ingots Restock'
  promptalias 'Ingots Restock'
endif
if not @findobject 'Weapons Destination'
  promptalias 'Weapons Destination'
endif
pause 200
if counttype '0x1bf2' 'any' 'backpack' < '50'
  movetype '0x1bf2' 'Ingots Restock' 'backpack'  0 0 0 'any' 400
  pause 600
endif
// use hammer
usetype 0x13e3 'any''backpack'
pause 600
replygump 0x38920abd 21
waitforgump 0x38920abd 15000
// katana - 0x13ff
// double axe - 0xf4b
while @findtype 0x13ff 'any' 'backpack'
  waitforproperties 'found' 2500
  @unsetalias 'move'
  //here add what are you looking for on the weapon
  if @property 'mana' 'found' >= 20 and @property 'slayer' 'found'
    @setalias 'move' 'found'
  endif
  if @findalias 'move'
    moveitem 'found' 'Weapons Destination'
    pause 600
  elseif findalias 'found'
    moveitem 'found' 'Salvage Bag'
    pause 200
    //remove next line if you worry that it trash good items
    waitforcontext 'Salvage Bag' 0 15000
    pause 200
  endif
  ignoreobject 'found'
  pause 100
endwhile
Peerless Hunter
Guide to Whammy - viewtopic.php?f=10&t=314
My youtube channel - /watch?v=sx5zGCbILtA
Weekly Bedlam Spawns - viewtopic.php?f=2&t=9131
User avatar
Tanya
Posts: 1796

Re: UOS Weapons Armor Crafting Macro

Post by Tanya »

This macro can be adapted for crafting everything, bows and tailoring as well (also with sorting out created items into different containers, this is done by applying different aliases). I know MB posted already a lot of macros for tailoring and sorting stuff but I wanted to create for myself something easy and also it helps to learn better UO Steam.

Here I just made a version for crafting black staff, need to set trash bin instead of salvage bad.
(it will throw away all staffs without mana leech)

Code: Select all

//set trash container instead of salvage bad
if not @findobject 'Salvage Bag'
  promptalias 'Salvage Bag'
endif
if not @findobject 'Wood Restock'
  promptalias 'Wood Restock'
endif
if not @findobject 'Weapons Destination'
  promptalias 'Weapons Destination'
endif
pause 200
if counttype '0x1bd7' 'any' 'backpack' < '50'
  movetype '0x1bd7' 'Wood Restock' 'backpack'  0 0 0 'any' 100
  pause 600
endif
// use saw
usetype 0x1028 'any''backpack'
pause 600
replygump 0x38920abd 21
waitforgump 0x38920abd 15000
// katana - 0x13ff
// double axe - 0xf4b
// black staff - 0xdf0
while @findtype 0xdf0 'any' 'backpack'
  waitforproperties 'found' 2500
  @unsetalias 'move'
  //here add what are you looking for on the weapon
  if @property 'mana' 'found'
    @setalias 'move' 'found' 
  endif
  if @findalias 'move'
    moveitem 'found' 'Weapons Destination'
    pause 600
  elseif findalias 'found'
    moveitem 'found' 'Salvage Bag'
    pause 600
  endif
  ignoreobject 'found'
  pause 100
endwhile
For example, for crafting staffs with mana/stamina/area I use this setting:

Code: Select all

if @property 'mana' 'found' and @property 'stamina' 'found'
    if @property 'area' 'found'
      @setalias 'move' 'found'
    endif
  endif
Peerless Hunter
Guide to Whammy - viewtopic.php?f=10&t=314
My youtube channel - /watch?v=sx5zGCbILtA
Weekly Bedlam Spawns - viewtopic.php?f=2&t=9131
Post Reply