Народ помогите закольцевать скрипт!

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
Balu
Posts: 76
Joined: 2004-10-30 21:28:19

Народ помогите закольцевать скрипт!

Post by Balu »

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

Code: Select all

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
666Man666
Junior Expert
Posts: 474
Joined: 2004-11-13 00:43:55
Location: Киберзадроцк
Contact:

Post by 666Man666 »

Используй

Code: Select all

REPEAT
.....
Until (Условие)
или

Code: Select all

While (Условие)
.....
Wend
Balu
Posts: 76
Joined: 2004-10-30 21:28:19

Post by Balu »

а по подробней нельзя?
I'm
Expert!
Posts: 1396
Joined: 2004-10-15 22:38:04
Location: Moscow City.
Contact:

Re: Народ помогите закольцевать скрипт!

Post by I'm »

Code: Select all

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:
Post Reply