Yoko

All sides of Injection
It is currently 2026-01-18 14:42:01

All times are UTC+02:00




Post new topic  Reply to topic  [ 12 posts ] 
Author Message
PostPosted: 2005-03-25 18:50:56 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
Есть обьект Victim.
Нужно, чтобы команда UO.Print Выводило сообщение
ATTACKING Имя Чара, айди которого прописсано в обьекте Victim.
Пробовал так, но не работает:


Code:
UO.Print ('ATTACKING ' + Str( UO.GetName( 'Victim' ) ))


Разьясните плиз.


Top
   
 Post subject:
PostPosted: 2005-03-25 19:13:28 
Offline

Joined: 2005-03-06 00:08:51
Posts: 5
Code:
UO.Print("ATTACKING: "+uo.GetName("Victim"))


Top
   
 Post subject:
PostPosted: 2005-03-26 12:27:42 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
Все равно наотрез не желает выводить имя чара.


Top
   
 Post subject:
PostPosted: 2005-03-26 13:06:18 
Offline
Junior Expert
User avatar

Joined: 2004-11-13 00:43:55
Posts: 474
Location: Киберзадроцк
Включина ли опция TWI ?
и помойму чтобы взять имя чара, надо сделать Алл Неймс...


Top
   
 Post subject:
PostPosted: 2005-03-26 13:16:03 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
Обычно выключенна. Но пробовал и с включенной, разницы нет.

All Names? А поподробнее можно?


Top
   
 Post subject:
PostPosted: 2005-03-26 14:03:10 
Offline
Expert!
User avatar

Joined: 2004-07-04 00:14:58
Posts: 1284
Code:
UO.Click("Victim")
while uo.GetName("Victim")==""
wait(100)
wend
UO.Print("ATTACKING: "+uo.GetName("Victim"))


Top
   
 Post subject:
PostPosted: 2005-03-27 00:51:57 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
Нет, опять не канает. :(


Top
   
 Post subject:
PostPosted: 2005-03-27 02:12:46 
Offline
Expert!
User avatar

Joined: 2004-07-04 00:14:58
Posts: 1284
flake wrote:
Нет, опять не канает. :(
проверь правильность получения объекта.


Top
   
 Post subject:
PostPosted: 2005-03-27 11:02:12 
Offline
Expert!

Joined: 2004-04-03 17:36:29
Posts: 2544
Location: Saint-Petersburg
flake wrote:
Нет, опять не канает. :(


Я тебе уже говорил, это не будет работать с выключенным TWI. Лучше поставь свежий АСМ и включай/выключай TWI прямо в скрипте. Не забывай после включения TWI поставить UO.Resend(), хотя может и не надо (экспериментируй).


Top
   
 Post subject:
PostPosted: 2005-03-27 11:05:37 
Offline
Expert!

Joined: 2004-04-03 17:36:29
Posts: 2544
Location: Saint-Petersburg
Sfagnum wrote:
Code:
UO.Click("Victim")
while uo.GetName("Victim")==""
wait(100)
wend
UO.Print("ATTACKING: "+uo.GetName("Victim"))


После клика надо поставить какую-нибудь паузу. Подбирается в зависимости от коннекта.


Top
   
 Post subject:
PostPosted: 2005-03-27 12:29:05 
Offline
Expert!
User avatar

Joined: 2004-07-04 00:14:58
Posts: 1284
Edred wrote:
Sfagnum wrote:
Code:
UO.Click("Victim")
while uo.GetName("Victim")==""
wait(100)
wend
UO.Print("ATTACKING: "+uo.GetName("Victim"))


После клика надо поставить какую-нибудь паузу. Подбирается в зависимости от коннекта.
она стоит ;) как кто то сказал, "сама подбирается в зависимости от коннекта":lol: - как то так.

ЗЫ код Ёко упёрт, он его где то тут на форуме обронил ;)


Top
   
 Post subject:
PostPosted: 2005-03-27 13:04:35 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
Ед, я у тебя немного о другом спрашивал.
А это не работает даже с включенным ТВИ.
Вобщем сенк всем за помощь, я уже достигнул цели другим способом :)


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


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