Yoko

All sides of Injection
It is currently 2026-01-23 10:11:35

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 2007-04-19 17:06:59 
Offline
User avatar

Joined: 2006-09-15 18:16:29
Posts: 35
АА помогите сделать в скрипте следушую фичу:
Vortex:
end if
wait(300)
uo.cast('Energy Vortex','self')
repeat
wait(4000)
until uo.injournal("fizzles") or uo.injournal("Vortex")
if uo.injournal("fizzles") then
goto Vortex
else
end if
Пишит: GoTo Неккорректное определение цикла в скрипте?!! при физле.
Зы: Сори что отрезок без кода, просто нужно было выделить цветом.


Top
   
 Post subject:
PostPosted: 2007-04-19 17:10:56 
Offline

Joined: 2005-01-06 11:49:28
Posts: 205
Выложи полный код скрипта, я уверен там можно сделать без гото


Top
   
 Post subject:
PostPosted: 2007-04-19 18:53:04 
Offline
User avatar

Joined: 2005-07-17 15:30:52
Posts: 308
Location: www.drw.ru
Code:
repeat
  uo.delejournal('fizzles')
  wait(300)
  uo.cast('Energy Vortex', 'self')
  repeat
     wait(4000)
  until uo.injournal("fizzles") or uo.injournal("Vortex")
until not uo.injournal('fizzles')


Top
   
 Post subject:
PostPosted: 2007-04-19 20:55:00 
Offline
User avatar

Joined: 2006-09-15 18:16:29
Posts: 35
Code:
sub KillElem() 
   UO.FindType('0x0F0E','0x0631','backpack')
    if UO.GetQuantity('finditem')>0 then
       UO.UseType('0x0F0E','0x0631')
       Vortex:
       end if
   wait(300)
   uo.cast('Energy Vortex','self')
   repeat
      wait(4000)
   until uo.injournal("fizzles") or uo.injournal("Vortex")
   if uo.injournal("fizzles") then
     goto Vortex
     else 
        end if
      wait(12000)
        uo.deletejournal()
      vasanort:
      UO.FindType('0x0F0E','0x09DF','backpack')
     if UO.GetQuantity('finditem')>0 then
         UO.UseType('0x0F0E','0x09DF')
         end if
      wait(300)
      uo.cast('Mass Dispel','self')
      wait(6000)
      if uo.injournal("fizzles") then
         goto vasanort
      endif
       uo.deletejournal()
      UO.SetReceivingContainer('backpack')
      UO.FindType('0x19B9',-1,'ground')
      if UO.GetQuantity('finditem')>0 then
         UO.Grab('0','finditem')
         wait(2000)
      endif
      UO.FindType('0x19B7',-1,'ground')
          if UO.GetQuantity('finditem')>0 then
          UO.Grab('0','finditem')
          wait(2000)
      endif
      UO.FindType('0x19BA',-1,'ground')
      if UO.GetQuantity('finditem')>0 then
         UO.Grab('0','finditem')
         wait(2000)
      endif
      UO.FindType('0x19B8',-1,'ground')
      if UO.GetQuantity('finditem')>0 then
         UO.Grab('0','finditem')
         wait(2000)
       endif
         UO.FindType('0x0EED',-1,'ground')
      if UO.GetQuantity('finditem')>0 then
         UO.Grab('0','finditem')
         wait(2000)
       UO.UnSetReceivingContainer()
       end if
       wait(1000)
        if UO.Dead() Then
       UO.Exec('terminate mine')
       end if
end sub


Top
   
 Post subject:
PostPosted: 2007-04-19 22:05:19 
Offline
User avatar

Joined: 2006-09-15 18:16:29
Posts: 35
Все сенк, вот готовое:
Code:
sub KillElem() 
   UO.FindType('0x0F0E','0x0631','backpack')
    if UO.GetQuantity('finditem')>0 then
       UO.UseType('0x0F0E','0x0631')
       end if
   wait(300)
   uo.cast('Energy Vortex','self')
   repeat
      wait(4000)
   until uo.injournal("fizzles") or uo.injournal("Vortex")
   if uo.injournal("fizzles") then
   repeat
  uo.deletejournal('fizzles')
  wait(300)
  uo.cast('Energy Vortex', 'self')
  repeat
     wait(4000)
  until uo.injournal("fizzles") or uo.injournal("Vortex")
until not uo.injournal('fizzles')
     else 
        end if
      wait(12000)
        uo.deletejournal()
      UO.FindType('0x0F0E','0x09DF','backpack')
     if UO.GetQuantity('finditem')>0 then
         UO.UseType('0x0F0E','0x09DF')
         end if
      wait(300)
      uo.cast('Mass Dispel','self')
      wait(6000)
      if uo.injournal("fizzles") then
   repeat
  uo.deletejournal('fizzles')
  wait(300)
  uo.cast('Mass Dispel', 'self')
  repeat
     wait(4000)
  until uo.injournal("fizzles") or not uo.injournal('fizzles')
   else
      end if
       uo.deletejournal()
      UO.SetReceivingContainer('backpack')
      UO.FindType('0x19B9',-1,'ground')
      if UO.GetQuantity('finditem')>0 then
         UO.Grab('0','finditem')
         wait(2000)
      endif
      UO.FindType('0x19B7',-1,'ground')
          if UO.GetQuantity('finditem')>0 then
          UO.Grab('0','finditem')
          wait(2000)
      endif
      UO.FindType('0x19BA',-1,'ground')
      if UO.GetQuantity('finditem')>0 then
         UO.Grab('0','finditem')
         wait(2000)
      endif
      UO.FindType('0x19B8',-1,'ground')
      if UO.GetQuantity('finditem')>0 then
         UO.Grab('0','finditem')
         wait(2000)
       endif
         UO.FindType('0x0EED',-1,'ground')
      if UO.GetQuantity('finditem')>0 then
         UO.Grab('0','finditem')
         wait(2000)
       UO.UnSetReceivingContainer()
       end if
       wait(1000)
        if UO.Dead() Then
       UO.Exec('terminate mine')
       end if
end sub

Кому надо - юзайте. -)


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 0 guests


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