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

елем
http://forum.yoko.com.ua/viewtopic.php?f=20&t=16459
Page 1 of 1

Author:  Irina E [ 2011-04-27 21:17:23 ]
Post subject:  елем

значит так почему скрипт не игнорировает елема после того как другой чел убил раньше меня и слутал руду то скрипт иногда кастует постоянна вортиксы и надо постоянна выхадить из игры и заходить обратно
Code:
Sub checkelem()
   var n, i
   var flagvortex, Elemental

   uo.set('finddistance','3')
   uo.findtype('0x0010',-1,'ground')
   while uo.findcount()
      Elemental=uo.getserial('finditem')
      if checkcolor(Elemental)==1 then
      invis()
         flagvortex=1
         castvortex()
         uo.textopen()
         uo.textprint(uo.getname(Elemental)+' Galambur '+MakeTime())
         for n=0 to 10
            wait(1000)
            checkpk()
            if flagpk==1 then
               return
            endif
         next
      else
         uo.ignore(Elemental)
      endif
      uo.findtype('0x0010',-1,'ground')
   wend
   if flagvortex==1 then
      repeat
      UO.DeleteJournal()
         checklag()
         while uo.mana<22
            wait(500)
         wend
         uo.waittargetobject('self')
         uo.cast('Mass Dispel')
         WaitForMana()
         wait(1000)
      until not uo.injournal('The spell fizzles')
colore()
      return 1
   endif
endsub

Author:  Irina E [ 2011-04-28 08:33:14 ]
Post subject:  Re: елем

uo.ignorereset() и UO.DeleteJournal() не помогает почемута

Author:  Mirage [ 2011-04-28 09:24:51 ]
Post subject:  Re: елем

тебе надо немного структуру поменять
Этот кусок
Code:
   while uo.findcount()
      Elemental=uo.getserial('finditem')
      if checkcolor(Elemental)==1 then
      invis()
         flagvortex=1
         castvortex()
         uo.textopen()
         uo.textprint(uo.getname(Elemental)+' Galambur '+MakeTime())
         for n=0 to 10
            wait(1000)
            checkpk()
            if flagpk==1 then
               return
            endif
         next
      else
         uo.ignore(Elemental)
      endif
      uo.findtype('0x0010',-1,'ground')
   wend

нужно заменить вот таким
Code:
if uo.findcount() then
   Elemental=uo.getserial('finditem')
   repeat
      if checkcolor(Elemental)==1 then
         invis()
         flagvortex=1
         castvortex()
         uo.textopen()
         uo.textprint(uo.getname(Elemental)+' Galambur '+MakeTime())
         for n=0 to 10
            wait(1000)
            checkpk()
            if flagpk==1 then
               return
            endif
         next
      else
         uo.ignore(Elemental)
#         return   ; возможно потребуется раскоментировать ретурн
      endif
   until uo.dead() or uo.GetX(Elemental)==0
endif

Фишка в том что мой вариант будет срабатывать на цветного элементаля пока он находится в зоне видимости или пока чар не умрет.

PS ниже скрипт не смотрел - это редактирование относится только к заданному вопросу.

Author:  Irina E [ 2011-04-28 10:26:28 ]
Post subject:  Re: елем

спс будем пробовать :D

Author:  Irina E [ 2011-04-29 19:42:45 ]
Post subject:  Re: елем

Code:
            if checkelem()==1 then
            return
         endif

не могу понять почему если я запускаю checkelem() одельна то он не наХодит елема а если запускать скрипт полностю то он находит елема хоть его и нету там
Code:
Sub checkelem()
   var n, i, a
   var flagvortex, Elemental
Dim OreColor[10] ## ìàññèâ öâåòîâ òðåøåâîé ðóäû
OreColor[1] = '0x0750'
OreColor[2] = '0x0590'
OreColor[3] = '0x060A'
OreColor[4] = '0x096B'
OreColor[5] = '0x0088'
OreColor[6] = '0x0488'
OreColor[7] = '0x0193'
OreColor[8] = '0x0032'
OreColor[9] = '0x0014'
OreColor[10] = '0x0482'
for a=1 to 10
   uo.set('finddistance','3')
   uo.findtype('0x0010',-1,'ground')
if uo.findcount() then
uo.ignore(OreColor[a])
   Elemental=uo.getserial('finditem')
   repeat
      if checkcolor(Elemental)==1 then
         invis()
         flagvortex=1
         castvortex()
         uo.textopen()
         uo.textprint(uo.getname(Elemental)+' Galambur '+MakeTime())
         for n=0 to 10
            wait(1000)
            checkpk()
            if flagpk==1 then
               return
            endif
         next
      else
         uo.ignore(Elemental)
#         return   ; âîçìîæíî ïîòðåáóåòñÿ ðàñêîìåíòèðîâàòü ðåòóðí
      endif
   until uo.dead() or uo.GetX(Elemental)==0
endif
   if flagvortex==1 then
      repeat
      UO.DeleteJournal()
         checklag()
         while uo.mana<22
            wait(500)
         wend
         uo.waittargetobject('self')
         uo.cast('Mass Dispel')
         WaitForMana()
         wait(1000)
      until not uo.injournal('The spell fizzles')
colore()
      return 1
   endif
endsub

Author:  Nmy [ 2011-07-05 22:34:15 ]
Post subject:  Re: елем

скрипт давно обновился
viewtopic.php?p=83648#p83648
Last edited by Nmy on Tue Nov 24, 2009 3:23 pm, edited 2 times in total. :lol:

Author:  Irina E [ 2011-07-07 09:51:44 ]
Post subject:  Re: елем

Nmy wrote:
скрипт давно обновился
viewtopic.php?p=83648#p83648
Last edited by Nmy on Tue Nov 24, 2009 3:23 pm, edited 2 times in total. :lol:

тупит этот скрипт то бывает слишком много диспелов кидает хоть там и нету уже вортекса

можна как то по другому сделать чтобы этот кусок скрипта был 2 разных скрипта каст вортеха и второй скрипт деспел вортеха
Code:
Sub checkelem()
   var n, i
   var flagvortex, Elemental
uo.ignorereset()
UO.DeleteJournal()
   uo.set('finddistance','3')
   uo.findtype('0x0010',-1,'ground')
   while uo.findcount()
      Elemental=uo.getserial('finditem')
      if checkcolor(Elemental)==1 then
      invis()
         flagvortex=1
         castvortex()
         uo.textopen()
         uo.textprint(uo.getname(Elemental)+' Galambur '+MakeTime())
         for n=0 to 10
            wait(1000)
            checkpk()
            if flagpk==1 then
               return
            endif
         next
      else
       uo.ignore('finditem')
      endif
      uo.findtype('0x0010',-1,'ground')
   wend
   if flagvortex==1 then
      repeat
      UO.DeleteJournal()
         checklag()
         while uo.mana<22
            wait(500)
         wend
         uo.waittargetobject('self')
         uo.cast('Mass Dispel')
         WaitForMana()
         wait(1000)
      until not uo.injournal('The spell fizzles')
colore()
      return 1
   endif
endsub

Author:  Mirage [ 2011-07-07 12:38:12 ]
Post subject:  Re: елем

немного не понял почему
Code:
   if flagvortex==1 then
      repeat
      UO.DeleteJournal()
         checklag()
         while uo.mana<22
            wait(500)
         wend
         uo.waittargetobject('self')
         uo.cast('Mass Dispel')
         WaitForMana()
         wait(1000)
      until not uo.injournal('The spell fizzles')

цикл работает до филза а не до удачного каста + отсутствия элема?

Author:  Irina E [ 2011-07-07 12:53:11 ]
Post subject:  Re: елем

Mirage wrote:
немного не понял почему

цикл работает до филза а не до удачного каста + отсутствия элема?


этот скрипт что я скинул сечас работает по лутше чем там у NMY

да тут есть ищо некоторые проблемы с марком рун иногда тоже самое тупит маркает руну пока реги не кончеца в бекпаке
Code:
Sub Mark(RuneID,Place)
   repeat
      if uo.mana<33 then
         meditation()
      endif
      checklag()
      Uo.Cast('Mark',RuneID)
      WaitForMana()
   until not uo.injournal('The spell fizzles')
   if Place==0 then
      Nrune=uo.getserial(RuneID)
   else
      Runehome=uo.getserial(RuneID)
   endif
endsub

Author:  Mirage [ 2011-07-07 13:45:02 ]
Post subject:  Re: елем

Ну та же история с циклом :)
Я как бы у него и спрашивал - просто не вижу смысла чтото править если это фишка а не баг.

Author:  Irina E [ 2011-07-07 13:59:00 ]
Post subject:  Re: елем

Mirage wrote:
Ну та же история с циклом :)
Я как бы у него и спрашивал - просто не вижу смысла чтото править если это фишка а не баг.

ыыы и что мне делать скрипт сбеваеца

Author:  Mirage [ 2011-07-07 14:02:42 ]
Post subject:  Re: елем

будем ждать Nmy чтобы либо пояснил либо поправил скрипт. Можешь поправить как нужно тебе ;)

Author:  Nmy [ 2011-07-12 23:06:09 ]
Post subject:  Re: елем

Я не помню. Вот я минера поставил он 2 недели откопал без сбоя. Ищите проблемы у себя.

там цикл такой - ждет ману, кидает ворт, ждет падение мп, если физл- повторяет...

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