помогите горнику

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
pika
Posts: 118
Joined: 2007-06-11 22:57:49

помогите горнику

Post by pika »

прет.вот скрипт на убевание элементалей вортексами,када капаеш.а вот вопросик.
скажите пожалуста как сделать,чтобы чар кастовал вортексы не из книжки а со скролов?

Code: Select all

;----------- Summon Energy Vortex, kill elem and loot him -----------
sub killelem()
if uo.injournal("heavy") then # вырыли элемента #
   # убиваем элемента #
   Vortex:
   uo.exec('usetype 0x0f0e 0x0631') # пьем инвизку, а то энергетик порвет =) #
   wait(300)
   uo.cast('Energy Vortex','self')
   repeat
      wait(300)
   until uo.injournal("fizzles") or uo.injournal("Vortex")
   if uo.injournal("fizzles") then
      goto Vortex
   else
                   wait(15000)
      vasanort:
      uo.exec('usetype 0x0f0e 0x09DF') # пьем манку #
      wait(300)
      uo.cast('Mass Dispel','self')
      wait(7000)
      if uo.injournal("fizzles") then
         goto vasanort
      endif
# собираем руду и копаем дальше #
      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.UnSetReceivingContainer()
   endif
endif
end sub
$!@m
Posts: 106
Joined: 2006-08-10 08:25:32

Post by $!@m »

В сабе Vortex вместо

Code: Select all

uo.cast('Energy Vortex','self') 
написать

Code: Select all

UO.WaitTargetSelf();
UO.UseType('тип вортекс скролов');
Post Reply