Что в скрипте не правильно - подскажите.

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
Soul Fly
Posts: 9
Joined: 2005-01-30 21:15:02
Contact:

Что в скрипте не правильно - подскажите.

Post by Soul Fly »

sub GetTree(Type,X,Y,Z)
var i
uo.Print('Начинаем рубку дерева...')
for i=0 to 15
if uo.Warmode()==1 then
return 0
end if
wait(200)
uo.DeleteJournal()
### CheckLag()
uo.WaitTargetTile(Type,X,Y,Z+10) - это строка(ошибка) почему ?
uo.UseObject('Axe')
if WaitForChange()==1 then
return 1
end if
next
return 0
end sub
Askaneli
Sphere expert
Posts: 1143
Joined: 2004-10-01 08:27:38
Location: Уфа

Re: Что в скрипте не правильно - подскажите.

Post by Askaneli »

Soul Fly wrote:sub GetTree(Type,X,Y,Z)
var i
uo.Print('Начинаем рубку дерева...')
for i=0 to 15
if uo.Warmode()==1 then
return 0
end if
wait(200)
uo.DeleteJournal()
### CheckLag()
uo.WaitTargetTile(Type,X,Y,Z+10) - это строка(ошибка) почему ?
uo.UseObject('Axe')
if WaitForChange()==1 then
return 1
end if
next
return 0
end sub


uo.WaitTargetTile(Type,X,Y,STR(NUMBER(Z)+10))

Причём 10 это нашару
надо будет разное попробовать значение, пока не заработает.
Сделал дело - флуди смело !!!
Sfagnum
Expert!
Posts: 1284
Joined: 2004-07-04 00:14:58
Contact:

Re: Что в скрипте не правильно - подскажите.

Post by Sfagnum »

Askaneli wrote:uo.WaitTargetTile(Type,X,Y,STR(Val(Z)+10))
Soul Fly
Posts: 9
Joined: 2005-01-30 21:15:02
Contact:

Post by Soul Fly »

сп.. будем пробовать
Post Reply