Code: Select all
sub Count_trash_ing()
var Box_for_trash_ing
var i, p, name, cen, sum = 0
DIM item[7]
item[1] = 0x0750 ## - Rusty Ingot
item[2] = 0x0590 ## - Old Copper Ingot
item[3] = 0x060A ## - Dull Copper Ingot
item[4] = 0x0488 ## - Bronze Ingot
item[5] = 0x096B ## - Shadow Ingot
item[6] = 0x0014 ## - Rose Ingot
item[7] = 0x0193 ## - Agapite
DIM price[7]
price[1] = 1 ## - Rusty Ingot
price[2] = 2 ## - Old Copper Ingot
price[3] = 3 ## - Dull Copper Ingot
price[4] = 4 ## - Bronze Ingot
price[5] = 5 ## - Shadow Ingot
price[6] = 6 ## - Rose Ingot
price[7] = 7 ## - Agapite
UO.UseObject('Box_for_trash_ing')
CheckLag()
uo.TextPrint('Trash Ore')
uo.TextPrint(' --------- ')
for i = 1 to 7
for p = 1 to 7
uo.FindType('0x1BEF', 'item[i]', 'Box_for_trash_ing')
if uo.FindCount('finditem') > 0 then
uo.Click('finditem')
wait(300)
name = uo.GetName('finditem')
cen = uo.GetQuantity('finditem') * price[p]
sum = sum + cen
uo.TextPrint(name + ' ------ ' + str(cen) + 'k (' + str(price[p]) + 'k per piece)')
uo.Ignore('finditem')
uo.FindType('0x1BEF', 'item[i]', 'Box_for_trash_ing')
End if
wait(100)
next
next
uo.TextPrint(' --------- ')
uo.TextPrint('Total Amount: ' + str(sum) + 'k')
uo.TextPrint(' =========================================== ')
uo.IgnoreReset()
Endsub
###################################
sub Count_other_ing()
var Box_for_trash_ing
var i, p, name, cen, sum = 0
DIM item[4]
item[1] = 0x1BEF ## - Iron Ingot
item[2] = 0x1BE3 ## - Copper Ingot
item[3] = 0x1BF5 ## - Silver Ingot
item[4] = 0x1BE9 ## - Gold Ingot
DIM price[4]
price[1] = 1 ## - Iron Ingot
price[2] = 2 ## - Copper Ingot
price[3] = 3 ## - Silver Ingot
price[4] = 4 ## - Gold Ingot
UO.UseObject('Box_for_trash_ing')
wait(300)
for i = 1 to 4
for p = 1 to 4
uo.FindType('item[i]', '0x0000', 'Box_for_trash_ing')
if uo.FindCount('finditem') > 0 then
uo.Click('finditem')
wait(300)
name = uo.GetName('finditem')
cen = uo.GetQuantity('finditem') * price[p]
sum = sum + cen
uo.TextPrint(name + ' ------ ' + str(cen) + 'k (' + str(price[p]) + 'k per piece)')
uo.Ignore('finditem')
uo.FindType('item[i]', '0x0000', 'Box_for_trash_ing')
End if
next
next
uo.TextPrint(' --------- ')
uo.TextPrint('Total Amount: ' + str(sum) + 'k')
uo.TextPrint(' =========================================== ')
uo.IgnoreReset()
Endsub