Yoko
http://forum.yoko.com.ua/

Народ помогите закольцевать скрипт!
http://forum.yoko.com.ua/viewtopic.php?f=20&t=3368
Page 1 of 1

Author:  Balu [ 2005-03-12 08:30:04 ]
Post subject:  Народ помогите закольцевать скрипт!

Скрипт проходит один круг и останавливается! помогите сделать, что бы он не прекращался пока бутылки с пойзоном не закончатся!!!

Code:
sub Poisoning()
UO.FindType('0x0F0A','0x0000','backpack')
      While UO.GetQuantity('finditem') > 0
         UO.DeleteJournal()
         repeat
         UO.UseSkill("Poisoning")
         UO.WaitTargetObject(dagger,'finditem')
         while  NOT UO.InJournal("You apply")
         if UO.InJournal("You fail to apply")then
         Healing()
         end if
            wait(300)           
      wend
end sub

Author:  666Man666 [ 2005-03-12 08:40:18 ]
Post subject: 

Используй
Code:
REPEAT
.....
Until (Условие)
или
Code:
While (Условие)
.....
Wend

Author:  Balu [ 2005-03-12 08:44:09 ]
Post subject: 

а по подробней нельзя?

Author:  I'm [ 2005-03-12 11:58:07 ]
Post subject:  Re: Народ помогите закольцевать скрипт!

Code:
sub Poisoning()
UO.FindType('0x0F0A','0x0000','backpack')
      While UO.GetQuantity('finditem') > 0
         UO.DeleteJournal()
         repeat
         UO.UseSkill("Poisoning")
         UO.WaitTargetObject(dagger,'finditem')
         while  NOT UO.InJournal("You apply")
         if UO.InJournal("You fail to apply")then
         Healing()
         end if
            wait(300)           
      wend
end sub

А гдеже Until? :shock:

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/