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

Автохил для вампа...
http://forum.yoko.com.ua/viewtopic.php?f=20&t=7699
Page 1 of 1

Author:  BigMouseI [ 2006-05-16 17:26:59 ]
Post subject:  Автохил для вампа...

Вот собсна народ иногда просит, решил написать, написал, вроде достаточно оптимально сделано...

Ловите +)

Code:
########################
## Crafted by BigMouse##
########################

sub vamp_autoheal()
var hp, life
  while true
    repeat
      life = uo.str
      while life == uo.life
        wait(500)
      wend
      while uo.life <= 90 and not UO.dead()
        healmax()
      wend
      wait(1200)
    until uo.dead()
    uo.print('Упал =(')
    while uo.dead()
      wait(3000)
    wend
    uo.print('А вот и ожил!')
    wait(1200)
  wend
endsub

sub healmax()
While not uo.life >= (uo.str-25)
  UO.Findtype('0x0F06', '0x0020', 'my')
  If UO.Findcount()and not UO.Dead() then
    UO.Setarm('1')
    UO.Useobject('finditem')
    wait(500)
    UO.Arm('1')
    wait(500)
    If UO.InJournal('so fast') then
      wait(1000)
    endif
  endif
wend
end sub

Author:  kooler [ 2006-05-17 19:21:37 ]
Post subject: 

Чето он ваще ниче нехелит :))))

Author:  BigMouseI [ 2006-05-17 19:23:22 ]
Post subject: 

А запускать не пробовал? Он отхил не сразу начинает, а когда хитов меньше 90, чтобы удар не сбивал...

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