[UOSteam] smelt items in a bag

If you make a Client-side script you can publish it here for other players to use
Post Reply
ezykial
Novice Scribe
Posts: 5
Joined: Fri Aug 04, 2017 3:59 pm

[UOSteam] smelt items in a bag

Post by ezykial »

Its not great because you have to have a list of object type to smelt, but I dont know how to findobject any in a bag.
Given that constraint it works okay.
1) You have to have a bag in your backpack that has items to smelt in it, and the script will prompt you for it.
If you use the same bag over and over, it will remember and not prompt second time.
2) You need to be near a forge (of course)
3) you have to have a smithy hammer in your backpack (or change that type to tongs in the script)
4) There is a smeltList. Add item types to the list by adding @pushlist smeltList 0xXXXX as needed

!! never ever swap your keep bag for your smelt bag !!
In fact, I wouldnt have my keep bag in my backpack while doing this, but that's just paranoid me.

Let me know how I can improve it

[edit 1: Changed forges to any color and looked for 2 types of hammers]

Code: Select all

//
if not @findobject "trashBag" any backpack
  promptalias "trashBag"
endif
if not @findobject "trashBag" any backpack
  msg "You have to target a bag of stuff to be recycled in your backpack"
  stop
endif
// find a forge
if @findtype 0xfb1 any ground 1 2 or findtype 0x197e any ground 1 2
  @setalias forge found
else
  msg "No forge for smelting"
  stop
endif
//
// check for smith hammer in backpack (change type if you use tongs)
if @findtype 0x13e4 any backpack or @findtype 0x13e3 any backpack
  @setalias hammer found
else
  msg "You have to have a smithy hammer in your backpack"
  stop
endif
//
@removelist smeltList
@createlist smeltList
// Add items to smelt to this list
@pushlist smeltList 0xf52
@pushlist smeltList 0x1c04
@pushlist smeltList 0x1b76
@pushlist smeltList 0x13f0
@pushlist smeltList 0x13ee
@pushlist smeltList 0x1b7b
@pushlist smeltList 0x143e
//
for 0 to 'smeltList'
  while @findtype 'smeltList[]' any trashBag
    msg FOUND
    useobject hammer
    pause 1000
    replygump 0x38920abd 14
    waitfortarget 2000
    target! found
    pause 1000
  endwhile
endfor

Post Reply