Code: Select all
sub Train_Healing()
uo.print('!!Где курса?!! ')
uo.exec('addobject cu')
while uo.targeting()
wait(100)
wend
var m,i,o,h
h = uo.str - 6
o = 0
m = 0
i = 0
uo.print('напишите 1 если хотите качать спирит спик,напишите 0 если нет!!')
uo.deletejournal()
while m == 0
if uo.injournal('1') then
m = 1
endif
if uo.injournal('0') then
m = -1
endif
wait(100)
wend
uo.findtype('0x0E21')
while uo.Findcount()>0
wait(200)
if m > 0 then
uo.useskill('Spirit Speak')
uo.deletejournal()
wait(5000)
while uo.injournal('You fail your') and not o == 5
o = o + 1
uo.useskill('Spirit Speak')
uo.deletejournal()
wait(5000)
wend
endif
while not i == 20
UO.FindType('0x0E20','-1','my')
if UO.FindCount()>0 then
UO.FindType('0x1008','-1','my')
uo.waittargetobject('finditem') ;wash basin
wait(700)
UO.FindType('0x0E20','-1','my')
uo.Useobject('finditem') ;bloody bandages
wait(400)
endif
i = i+1
uo.setdressspeed('500')
uo.undress()
uo.useobject('cu')
wait(2000)
uo.undress()
wait(500)
uo.bandageself()
wait(500)
uo.useobject('cu')
wait(2000)
uo.findtype('0x0E21')
wend
i = 0
o = 0
wend
end sub
sub Reconnector()
var ReconnectTime, RFlag
ReconnectTime = '0'
RFlag = 1
Repeat
While (UO.ObjAtLayer('Bpack') == '')
if RFlag Then
ReconnectTime = MakeTime()
RFlag = 0
endif
Wait(20000) # WorldSave Protection
UO.Say('')
Wait(3000)
UO.Say('')
Wait(3000)
UO.Say('')
Wait(3000)
UO.LDblClick(357,164)
UO.LClick(616,459)
Wait(3000)
WEnd
Wait(3000)
if (RFlag == 0) and (ReconnectTime <> '0') Then
UO.Exec('terminate main')
wait(1000)
UO.Exec('exec main')
wait(1000)
UO.TextOpen()
UO.TextPrint('Disconnected & Reconnected @ '+ReconnectTime)
RFlag = 1
ReconnectTime = '0'
endif
Until false
end sub
sub MakeTime()
VAR D, T, Ret, i
Ret = STR(UO.Time())
T = ""
For i = 0 To Len(Ret)
T = Ret[Len(Ret)-i] + T
If (I == 2) OR (I == 4) Then
T = ":" + T
EndIf
Next
Ret = STR(UO.Date())
D = ""
For i = 0 To Len(Ret)
D = Ret[Len(Ret)-i] + D
If (I == 2) OR (I == 4) Then
D = "." + D
EndIf
Next
Ret = T + " @ " + D
RETURN Ret
end sub
ошибки и т.д. ПРОШУ ПИШИТЕ!
а так же замечания и пожелания)