Вот те рабочий на 100%
Сам ща на нем качаюсь
Те тока ватменю под себя настроить надо
Code:
sub main()
var what = "Arrow" # What you will make. Chices: Arrow, Bolt
var shafts = 0x1BD4
var feathers = 0x1BD1
var num1 = 0
var num2 = 0
var time
While UO.Countground(shafts) && UO.Count(feathers)
UO.WaitMenu("What you you want to create?", what)
if not uo.count(shafts) then
UO.grab( "1" , "~"+str(shafts) )
endif
wait(500)
UO.WaitTargetType(feathers)
UO.UseType(shafts)
UO.DeleteJournal()
time=uo.timer()
While not UO.InJournal("You") && (uo.timer()-time)<100
Wait(500)
Wend
If UO.InJournal("You create") Then
num1=num1+1
Else
num2=num2+1
End If
Wend
UO.Print("No more materials. Script terminates.")
#Printing some stats (optional)
If not (num1==0 and num2==0) Then
UO.Print("Results:")
UO.Print(STR(num1)+" "+what+"s created.")
UO.Print(STR(num2)+" feathers/shafts destroyed")
UO.Print("Efficiency: "+STR(num1*100/(num1+num2))+" percent.")
End If
endsub
У тя всю структуру позаимствовал:)