Yoko

All sides of Injection
It is currently 2025-12-21 16:29:38

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
 Post subject: waittargettile
PostPosted: 2004-06-21 22:12:50 
Offline

Joined: 2004-06-18 14:43:48
Posts: 2
скрипт не находит тэйлы. ультима пишет: 'auto target cancelled', 'you cant see the target'
функции параметры нормально подаются - проверено на uo.print, если задавать железно координаты тэйла - то тоже работает.

Code:
sub GetTree(type,x,y,z) 
var i
uo.print('Na4unaem rubku dereva '+type+' '+x+' '+y+' '+z)
for i=0 to 15
if uo.warmode()==1 then
return 0
end if
wait(200)
uo.deletejournal()
uo.waittargettile(type,x,y,z)
uo.useobject('axe')
if WaitForChange()==1 then
return 1
end if
next
return 0


в чем может быть дело? может быть какието пробелы должны быть?


Top
   
 Post subject:
PostPosted: 2004-06-21 23:15:55 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
waittargettile как и все остальные консольные команды, ждут текста а не цифр на входе. проверь так ли это и если что используй STR() для преобразования. посмотри как это выглядит в любом работающем скрипте опубликованом на форуме.

ну и само собой разумеется что для того чтобы команды инжекта действовали на таргеты инжекта, нужна включённая опция Permit Vars loopback.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited