Code: Select all
sub main()
VAR Sunduk = "0x400E0DD2"
VAR bytil = "0x0F0E"
VAR reg = "0x0F88"
VAR pestik = "0x0E9B"
VAR lesepoison = "0x0F0A"
VAR k
UO.Set('norbcalc',1)
UO.Set('norbcheck',1)
While TRUE
If UO.Count( bytil ) == 0 Then
UO.FindType( bytil, '-1', Sunduk )
If UO.FindCount() == 0 Then
UO.Print("Leathers not found, script terminated")
return
Endif
UO.Grab( '100', 'finditem' )
wait(500)
while UO.Count( bytil ) == 3
wait(100)
wend
Endif
If UO.Count( reg ) == 0 Then
UO.FindType( reg, '-1', Sunduk )
If UO.FindCount() == 0 Then
UO.Print("Leathers not found, script terminated")
return
Endif
UO.Grab( '300', 'finditem' )
wait(500)
while UO.Count( reg ) == 3
wait(100)
wend
Endif
UO.DeleteJournal()
wait(100)
UO.UseType( pestik )
UO.OnGump('0x0004f288','0x0000003a','17')
UO.Recall('0x0000003b','802')
k = 0
while NOT UO.InJournal('You put') AND NOT UO.InJournal('fail') AND ( k < 70)
k = k + 1
wait(300)
wend
if UO.Count( lesepoison ) > 10 then
uo.useobject('0x400B14EC')
UO.WaitTargetType( lesepoison )
wait( 500 )
while UO.Count( lesepoison ) > 10
wait(100)
wend
wait(100)
endif
Wend
wait(100)
end sub
мин через 5-20 вылетает критическая ошибка (((
помогите плз