Место для checklag()

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
Spirit
Posts: 101
Joined: 2006-03-23 19:25:23

Место для checklag()

Post by Spirit »

Code: Select all

sub tactics()
   var monster = '0x0007'
   var b = '0x401C1DB6'
   var t
   uo.set('finddistance','5')
   while not uo.dead()
      uo.findtype(monster,'-1','ground')
      if uo.findcount() then
         t = uo.getserial('finditem')
         uo.warmode(true)
         uo.Attack('finditem')
         wait(1000)
         while uo.gethp(t)>uo.getmaxhp(t)/3
            wait(600)
         wend
         if uo.gethp(t)<=uo.getmaxhp(t)/3 then
            while uo.gethp(t)<uo.getmaxhp(t)
                  uo.warmode(false)
               uo.waittargetobject(t)
               uo.usetype('0x0E21')
               wait(3500)
            wend
         endif
         if uo.count('0x0E20') then
            uo.waittargetobject(b)
            uo.usetype('0x0E20')
            wait(200)
         endif
      wend
   endif
endsub


Сделал скрипт на битьё и лечение монстра, а теперь подскажите, куда желательней вставить chechlag ?
:O
Scripts Writer
Posts: 2259
Joined: 2005-04-19 18:00:29
Location: Московская область
Contact:

Re: Место для checklag()

Post by Scripts Writer »

Code: Select all

sub tactics()
var monster = '0x0007'
var b = '0x401C1DB6'
var t
uo.set('finddistance','5')
while not uo.dead()
uo.findtype(monster,'-1','ground')
if uo.findcount() then
t = uo.getserial('finditem')
<---------------------------------------- сюда
uo.warmode(true)
uo.Attack('finditem')
wait(1000)
while uo.gethp(t)>uo.getmaxhp(t)/3
wait(600)
wend
if uo.gethp(t)<=uo.getmaxhp(t)/3 then
while uo.gethp(t)<uo.getmaxhp(t)
<---------------------------------------- сюда
uo.warmode(false)
uo.waittargetobject(t)
uo.usetype('0x0E21')
wait(3500)
wend
endif
if uo.count('0x0E20') then
uo.waittargetobject(b)
uo.usetype('0x0E20')
wait(200)
endif
<---------------------------------------- сюда
wend
endif
endsub
Spirit
Posts: 101
Joined: 2006-03-23 19:25:23

Re: Место для checklag()

Post by Spirit »

Благодарствую. :)
:O
Post Reply