хз запапшит или нет .........ляпал от болды __)))
Тести
Code:
sub ReaderReciter()
var forever = true
var Time
Time = Time()
while not uo.dead()
repeat
wait(5000)
UO.Findtype('ТИП СТОЛБА',-1,'ground')
if UO.GetQuantity('finditem')>0 then
UO.Msg(Time)
wait(10000)
Else
Exit=1
endif
until Exit==1
wend
end sub
sub time()
var hh,mm,ss,hms,t=str(UO.Time())
if len(t)<=2 then
hh="0"
mm="0"
ss=t
endif
if len(t)==3 then
hh="0"
mm=left(t,len(t)-2)
ss=right(t,len(t)-1)
endif
if len(t)==4 then
hh="0"
mm=left(t,len(t)-2)
ss=right(t,len(t)-2)
endif
if len(t)==5 then
hh=left(t,len(t)-4)
hms=left(t,len(t)-2)
mm=right(hms,len(hms)-1)
ss=right(t,len(t)-3)
endif
if len(t)==6 then
hh=left(t,len(t)-4)
hms=left(t,len(t)-2)
mm=right(hms,len(hms)-2)
ss=right(t,len(t)-4)
endif
return hh+":"+mm+":"+ss
end sub
Функция времени Саши....