Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7

Помогите разобратся

тут можно задать вопрос по скриптингу
Post Reply
lol-man
Neophyte
Neophyte
Posts: 10
Joined: 04.07.2005 17:26

Помогите разобратся

Post by lol-man »

напешите пожалуйсто скрипт в цикле, чтобы если ты мёртвый говорил слово какоето, если живой то ждал пока умрёш..... плиз :)
Mouse
Posts: 3
Joined: 11.03.2005 22:13

Post by Mouse »

Так "помогите разобраться" или "сделайте все за меня"?
Поможем, но делать будеш сам!
lol-man
Neophyte
Neophyte
Posts: 10
Joined: 04.07.2005 17:26

Post by lol-man »

Ну это понятно, что сам... правельно?

Code: Select all

Begin
 Repeat 
  If((Dead) and Connected) Then
	Begin
	UOSay('Vendor Ress');
		Repeat
		Until (Not Dead);
	End;
 Until 1<>1
End.
Miralex
Developer
Developer
Posts: 656
Joined: 11.03.2005 19:12
Contact:

Post by Miralex »

Лучше так:

Code: Select all

Begin 
 Repeat 
  If((Dead) and Connected) Then 
   Begin 
   UOSay('Vendor Ress'); 
      Repeat 
      wait(1000);
      Until (Not Dead); 
   End;
 wait(1000);
 Until 1<>1 
End.
lol-man
Neophyte
Neophyte
Posts: 10
Joined: 04.07.2005 17:26

Post by lol-man »

А если надо чтобы он быстро ресался? без пауз...
Miralex
Developer
Developer
Posts: 656
Joined: 11.03.2005 19:12
Contact:

Post by Miralex »

Уменьши задержки.
Post Reply