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