Вот_нашел_скрипт_на_спаринг_а_он_чето_непашет_выдает_ошибку
Line_69:Function_not_found-CHEKLAG
sub Training()
var bandage='0x0e21' # Тип бинтов
var washing='0x4043B210' # Тип корыта
var bloody='0x0E20' # Тип кровавых бинтов
# Спаринг 1.00.
uo.AddObject('opponent')
while uo.Targeting()
wait(100)
wend
while not uo.Dead()
if uo.GetHp('opponent') <> uo.GetMaxHp('opponent') then
uo.WarMode(false)
Walk(4321,3774)
while uo.GetHp('opponent') <> uo.GetMaxHp('opponent')
uo.WaitTargetObject('opponent')
uo.UseType(bandage)
wait(3500)
uo.GetHp('opponent')
wend
end if
if uo.GetHp('self') <> uo.GetMaxHp('self') then
uo.WarMode(false)
Walk(4321,3774)
while uo.GetHp('self') <> uo.GetMaxHp('self')
uo.WaitTargetObject('self')
uo.UseType(bandage)
wait(3500)
wend
uo.WaitTargetObject(washing)
uo.UseType(bloody)
wait(750)
end if
uo.WarMode(true)
Shield()
uo.Attack('opponent')
wait(500)
Walk(4321,3775)
while (uo.GetHp('opponent') > uo.GetMaxHp('opponent')/2) && (uo.Life > 100)
wait(500)
wend
wend
end sub
sub Shield()
var shield='0x1b7b'
uo.FindType(shield,'-1','backpack')
if uo.FindCount() then
uo.UseObject('finditem')
end if
end sub
sub Walk(x,y)
go:
while not uo.getX() == x || not uo.getY() == y
if not uo.getX() == x then
if uo.getX() > x then
uo.press(36)
else
uo.press(34)
endif
endif
if not uo.getY() == y && uo.getX() == x then
if uo.getY() > y then
uo.press(33)
else
uo.press(35)
endif
endif
checklag()
wend
checklag()
if not uo.getX() == x || not uo.getY() == y then
goto go
endif
endsub
Помогите
Moderators: Murderator+, Murderator
-
- Posts: 247
- Joined: 2008-09-12 05:07:34
допиши к этому скрипту
Code: Select all
Sub Checklag()
deljournal('ackpack')
uo.click('backpack')
repeat
wait(50)
until uo.injournal('ackpack')
endsub
Sub deljournal(msg)
while uo.injournal(msg)
uo.setjournalline(uo.injournal(msg)-1,"")
wend
endsub