Page 1 of 1

Посмотрите в чем ошибка

Posted: 2005-06-22 01:54:13
by MAg
написал скрипт когда запускаю показывает ошибку почему это??

sub mine1()
var lastX=uo.getX(),lastY=uo.getY()
while uo.getX()==LastX and uo.getY()==LastY
uo.waittargetobject('Mine1')
uo.cast('Recall')
Wait ( 2600 )
repeat -говорит что в этой строке ошибка :\
until uo.getX()<>LastX or uo.getY()<>LastY or UO.InJournal("The spell fizzles.") or UO.InJournal('You lack') or UO.Dead()
if UO.InJournal('You lack') or UO.Dead() then
return 1
end if
wend
ssay()
end sub

Posted: 2005-06-22 06:11:31
by Solaire
У тебя repeat пустой. Вставь в него wait(50) хотя бы...

Posted: 2005-06-22 07:18:00
by Arsuri

Code: Select all

sub mine1() 
var lastX=uo.getX(),lastY=uo.getY()
while uo.getX()==LastX and uo.getY()==LastY
uo.waittargetobject('Mine1')
uo.cast('Recall')
repeat
Wait(50)
until uo.getX()<>LastX or uo.getY()<>LastY or UO.InJournal("The spell fizzles.") or UO.InJournal('You lack') or UO.Dead()
if UO.InJournal('You lack') or UO.Dead() then
return 1
end if
wend
ssay()
end sub