Yoko

All sides of Injection
It is currently 2025-12-26 10:12:18

All times are UTC+02:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
PostPosted: 2008-03-19 20:42:46 
Offline

Joined: 2008-01-26 22:35:57
Posts: 59
подскажите со скриптом...
на шарде система такая : клик на палку появляется таргет , тыкаешь на животное появляется новый таргет , тыкаешь куда вести надо :)

что-то не допру как тыкнуть последним таргетом на землю ...

заранее спасибо )

Code:
sub main()

   var mx = UO.GetX("self")
   var my = UO.GetY("self")
   var mz = UO.GetZ("self")

uo.print('Выберете палку для управления животным')
   uo.exec('addobject HerdingStuff')
      while uo.targeting()
      wait(100)
      wend
      
uo.print('Выберете животное')
   uo.exec('addobject animal')
      while uo.targeting()
      wait(100)
      wend
      
while not uo.dead()
      UO.DeleteJournal()
      UO.usetype ('0x097B')   ## кушаем стейки

#####
#####      
      uo.waittargetobject('animal')
      UO.UseObject('HerdingStuff')
      UO.Waittargettile("1341", str(mx-1), str(my-1), str(mz))
#####
#####

wend

end sub


Top
   
 Post subject:
PostPosted: 2008-03-19 21:30:04 
Offline
Expert!
User avatar

Joined: 2005-05-04 14:05:19
Posts: 2580
Location: Москва
инжект умеет ставить несколько ловушек на таргет только на объекты.
по этому тебе надо будет извратится;)
или ты второй таргет на себя делаешь или на какойто другой обхект
или через uo.target


Top
   
 Post subject:
PostPosted: 2008-03-19 21:46:19 
Offline

Joined: 2008-01-26 22:35:57
Posts: 59
аагрр.. либо просто уже спать либо я тупой как дерево ;)
что то не получается...
попробуй подправить ;) плиз...


Top
   
 Post subject:
PostPosted: 2008-03-19 21:56:55 
Offline
Expert!
User avatar

Joined: 2005-05-04 14:05:19
Posts: 2580
Location: Москва
http://yoko.com.ua/help/help.php?lang=r ... rgetobject
http://yoko.com.ua/help/help.php?lang=r ... objecttype

не сложно заметить что там может бытьнесколько параметров (объектов)
следоваттельно если ты привязываешь второй таргет к своим координатам, так не проще будет
Code:
sub main() 

uo.print('Выберете палку для управления животным')
   uo.exec('addobject HerdingStuff')
      while uo.targeting()
      wait(100)
      wend
       
uo.print('Выберете животное')
   uo.exec('addobject animal')
      while uo.targeting()
      wait(100)
      wend
       
while not uo.dead()
      UO.DeleteJournal()
      UO.usetype ('0x097B')   ## кушаем стейки

#####
#####       
      uo.waittargetobject('animal', 'self')
      UO.UseObject('HerdingStuff')
#####
#####

wend

end sub


Top
   
 Post subject:
PostPosted: 2008-03-19 22:04:46 
Offline

Joined: 2008-01-26 22:35:57
Posts: 59
спасибо :)
даже стыдно стало...


Top
   
 Post subject:
PostPosted: 2008-03-19 22:06:17 
Offline
Expert!
User avatar

Joined: 2005-05-04 14:05:19
Posts: 2580
Location: Москва
ну хоть признался;)


Top
   
 Post subject:
PostPosted: 2008-03-19 22:09:59 
Offline

Joined: 2008-01-26 22:35:57
Posts: 59
а чего не признаться-то , если так туплю , не по-детски :)


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

All times are UTC+02:00


Who is online

Users browsing this forum: Bing [Bot] and 4 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