Page 1 of 1

вопрос по WaitJournalLine

Posted: 11.09.2011 10:31
by Lietman
Проблема в том что почему не видет в жрунале появления вортекса :( а физл видет, почему так ?

Code: Select all

repeat
                   AddToSystemJournal('Кастуем вортекса.');
                   FindType(Elem,Ground);
                   cast('Energy Vortex')
                   WaitForTarget(5000);
                   if targetpresent then
                   begin
                      TargetToObject(FindItem);
                   end;
                   ClearJournal;
                 WaitJournalLine(Now, 'Energy|fizzles.', 40000);
                until FindType(Vortex,Ground)=1

Re: вопрос по WaitJournalLine

Posted: 12.09.2011 10:58
by MuDaCk
Может у вас не выводится сообщение с ником появившегося моба... типо на него надо кликнуть или ещё чёто...

Re: вопрос по WaitJournalLine

Posted: 12.09.2011 20:28
by Lietman
вы водится ! В журнале появляется.

Re: вопрос по WaitJournalLine

Posted: 13.09.2011 0:20
by Alex
покажи 10 строчек из журнала, когда там вортекс появляется, но WaitJournal не видит этого, и еще, перед вызовом WaitJourlal, добавь команду UOSay('waiting') что бы видно где он ждать начинает

Re: вопрос по WaitJournalLine

Posted: 13.09.2011 20:05
by Lietman

Code: Select all

[19:00:22:484] You see: Stone Golem
[19:00:22:859] You see: Stone Golem
[19:00:25:312] ShreK: You have hidden yourself well
[19:00:30:828] ShreK: ShreK
[19:00:34:578] System: You are simply too full to eat any more!
[19:00:34:578] System: You can't think of a way to use that item.
[19:00:34:843] System: You are simply too full to eat any more!
[19:00:34:843] System: You can't think of a way to use that item.
[19:01:40:593] System: Where would you like to summon the creature ?
[19:01:40:796] System: Target is not in line of sight
[19:01:40:921] System: You have been revealed
[19:01:40:937] ShreK: waiting
[19:01:44:296] You see: *Stone Golem is attacking you*
[19:01:51:484] You see: *Stone Golem is attacking you*
[19:01:53:312] ShreK: You have hidden yourself well
[19:01:56:000] System: Where would you like to summon the creature ?
[19:01:56:234] System: You have been revealed
[19:01:56:234] ShreK: Vas Corp Por 
[19:01:56:359] ShreK: waiting
[19:01:58:078] You see: *Stone Golem is attacking you*
[19:02:06:765] You see: Energy Vortex
[19:02:06:765] You see: Energy Vortex
[19:02:15:953] ShreK: You have hidden yourself well
[19:02:16:359] Stone Golem: *You see Stone Golem attacking Energy Vortex*
[19:02:18:859] Stone Golem: *You see Stone Golem attacking Energy Vortex*

Re: вопрос по WaitJournalLine

Posted: 13.09.2011 20:38
by Alex
может WaitJournalLine не учитывает сообщения типа "You see: ..."? проверь в тестовом скрипте, у меня сейчас стелса нет под рукой

Re: вопрос по WaitJournalLine

Posted: 13.09.2011 22:24
by Lietman
походу не учитывает :(