Проверка на фэил руны и её марк

Anything and all.

Moderators: Murderator+, Murderator

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

Проверка на фэил руны и её марк

Post by Balu »

Народ скиньте плиз толковую проверку на фэил руны и её марк!!!
Sfagnum
Expert!
Posts: 1284
Joined: 2004-07-04 00:14:58
Contact:

Re: Проверка на фэил руны и её марк

Post by Sfagnum »

Code: Select all

sub Recall(rune)
var lastX=uo.getX(),lastY=uo.getY()
   while uo.getX()==LastX and uo.getY()==LastY
      CheckLag()
      while UO.MANA < 20
         UO.UseSkill('Meditation')
         wait(5000)
         UO.Say('! <GUARDS> ')
      wend
      uo.waittargetobject(rune)
      uo.cast('Recall')
      repeat
         wait(1000)         
      until uo.getX()<>LastX or uo.getY()<>LastY or UO.InJournal(uo.getname()+": The spell fizzles.") or UO.InJournal('You lack') or UO.Dead()
      if UO.InJournal('You lack') or UO.Dead() then
         return 1
      end if            
   wend   
   return Markrune(rune)
end sub

sub markRune(rune)
   repeat
      UO.DeleteJournal()
      UO.Click(rune)
      while not UO.InJournal(" charges")
         wait(50)
      wend      
      if val(Left(UO.Journal(UO.InJournal(" charges")-1),2)) > 4 then
         return 0
      end if      
      CheckLag()
      while UO.MANA < 20
         UO.UseSkill('Meditation')
         wait(5000)
         UO.Say('! <GUARDS> ')
      wend
      uo.waittargetobject(rune)
      uo.cast('Mark')
      wait(5000)
      CheckLag()
   until UO.Dead()
end sub
перед медитированием можно поставить юз манки
Post Reply