Yoko

All sides of Injection
It is currently 2026-01-17 23:48:31

All times are UTC+02:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Имя вендора
PostPosted: 2004-10-28 12:50:40 
Offline

Joined: 2004-10-28 12:47:02
Posts: 6
Кто знает как толково получить имя ближайшего вендора?
Мудрил всяко и постоянно глюки


Top
   
 Post subject:
PostPosted: 2004-10-28 12:57:40 
Offline
Expert!
User avatar

Joined: 2004-04-04 21:40:09
Posts: 1007
Клик по вендору, ждем, гет нэйм.

В таком порядке действуй. И не забудь TWI включить.


Top
   
 Post subject:
PostPosted: 2004-10-28 13:11:39 
Offline

Joined: 2004-10-28 12:47:02
Posts: 6
AGRS wrote:
Клик по вендору, ждем, гет нэйм.

В таком порядке действуй. И не забудь TWI включить.


Спасибо все дело оказалось в TWI, включил и глюки пропали

А скрипт юзаю такой
Code:
sub shopping()
 var name = 'Vendor'
 UO.Ignore('self')
 UO.Set("finddistance","1")
 UO.findtype('0x0191','-1','ground')
 UO.Click("finditem")
 wait(1000)
 if UO.FindCount()>0 then
  name = UO.getname(UO.getserial("finditem"))
  UO.print(name)
 endif
 UO.findtype('0x0190','-1','ground')
 UO.Click("finditem")
 wait(1000)
 if UO.FindCount()>0 then
  name = UO.getname(UO.getserial("finditem"))
  UO.print(name)
 endif
 UO.Exec("buy Shopping "+name)
 wait(3000)
endsub


Top
   
 Post subject:
PostPosted: 2005-01-02 14:56:11 
Offline
User avatar

Joined: 2004-12-29 15:16:45
Posts: 112
Появилась проблемка. Нужно было посмотреть товары у наскольких вендоров на предмет наличия нужного мне. Все вендоры находятся в одном помещении. Помимо этих вендоров есть куча других. Написал скрипт, чтобы вызывалась ловушка таргета, я бы указывал на продавца и чар произносли '<имя вендора> buy'
Code:
sub test()
var name
uo.info()
wait(3000)
name = uo.getname(UO.getserial("lasttarget"))
uo.sayu(name + ' buy')
end sub

Вот что получилось.
Сдается мне, что я забиваю микросокопом гвозди. Как получить из ,info значение Name? Можно ли как по другому вызвать ловушку? Как сделать, чтобы скрипт ждал, пока я на кого-нибудь не кликну, а не фиксированное время?


Top
   
 Post subject:
PostPosted: 2005-01-02 15:45:16 
Offline
Junior Expert
User avatar

Joined: 2004-11-13 00:43:55
Posts: 474
Location: Киберзадроцк
Попробуй так, но у меня с ним глюки бывают... когда тыкаеш на вендора то обджект с 1 клика не заносится
Code:
sub Shopping()
var name='Vendor'
UO.Print("!!!SELECT VENDOR!!!")
UO.Exec('addobject Vendor')
While UO.Targeting()
wait(100)
Wend
UO.Click('Vendor')
wait(1500) ; Задержка(1.5сек)
name=UO.GetName('Vendor')
UO.msg(name+' buy')
End sub


Top
   
 Post subject:
PostPosted: 2005-01-02 16:25:36 
Offline
User avatar

Joined: 2004-12-29 15:16:45
Posts: 112
666Man666 ,спасибо, работет пока отлично


Top
   
 Post subject:
PostPosted: 2005-01-03 03:37:00 
Offline
Expert!

Joined: 2004-04-03 17:36:29
Posts: 2544
Location: Saint-Petersburg
JIupus wrote:
name = uo.getname(UO.getserial("lasttarget"))


UO.GetSerial лишний. Вполне достаточно UO.GetName( 'lasttarget' )


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: No registered users and 8 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited