Code: Select all
# (c) Ziemniaq ziemni@risp.pl
# thing - objtype of item which is made by Make Last button
# tested on RunUO (non-AOS) shard
sub bs_dfi()
var hammer = "0x13E4"
var ignot = "0x1BF2"
var thing = "0x1413"
var runuo_delay = 700
var last_tool
var num_ign
var i
UO.FindType(hammer)
while UO.FindCount()
UO.FindType(hammer)
UO.Exec("recall finditem 21")
num_ign = UO.Count(ignot)
i = 0
# waits until ignot count changes (used by bs) or timeout
while UO.Count(ignot) == num_ign and i < 7000
i = i + 50
wait(50)
wend
# smelts here
if UO.Count(thing) then
wait(runuo_delay)
if UO.Waiting() then
UO.CancelTarget()
endif
UO.WaitTargetType(thing)
UO.FindType(hammer)
UO.Exec("recall finditem 14")
num_ign = UO.Count(ignot)
i = 0
while UO.Count(ignot) == num_ign and i < 7000
i = i + 50
wait(50)
wend
endif
wend
end sub