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

BladeSpirits, drw, нехелиться. :(
http://forum.yoko.com.ua/viewtopic.php?f=17&t=13461
Page 1 of 1

Author:  Dron D. [ 2008-04-06 23:30:05 ]
Post subject:  BladeSpirits, drw, нехелиться. :(

пользуюсь след. скриптом, чар который бьет блейд спирита, запускает функцию Bladespirit1, но после убийства спирита не хилиться :(

Code:
sub bladespirit1()
var spirit = '0x023E', spiritid
while true
   uo.findtype(spirit,-1,'ground')
   if uo.findcount() > 0 then
      spiritid = uo.getserial('finditem')
      uo.warmode(true)
      uo.attack(spiritid)
      wait(5000)
   else
      if uo.gethp() < uo.str then
         uo.bandageself()
         wait(3000)
                        sword()
      endif
   endif
wend
endsub

sub sword()   ; Одевание щита и оружия
Var Svord='0x13E3' ;Тип оружия, используемый вами
Var Shield='0x1B76' ;Тип оружия, используемый вами
UO.Equipt('Lhand',Shield)
wait(1000)
UO.Equipt('Rhand',Svord)
wait(100)
end sub

Author:  Purgen [ 2008-04-07 08:57:58 ]
Post subject: 

Строку
Code:
 if uo.gethp() < uo.str then

замени на
Code:
 if uo.gethp ('self') < uo.getmaxhp ('self') then

Должно помочь.

Author:  to4a [ 2008-04-07 22:07:43 ]
Post subject: 

Врядле поможет, uo.str=uo.getmaxhp()
да и вообще одной бандагой не вылечишься то особо

Author:  666||TORCHKI [ 2008-04-09 11:23:44 ]
Post subject: 

Code:
sub e2()
UO.Exec("set finddistance 15")
repeat
UO.FindType('0x023E','0000x0',1)
If UO.FindCount('finditem')>0 then
UO.Attack('finditem')
repeat
wait(5000)
UO.FindType('0x023E','0000x0',1)
until UO.FindCount('finditem')<1
else
While uo.GetHP('self')<uo.GetMaxHP('self')

UO.SetArm('CWeapon')
stirka()
UO.Exec("bandageself")
wait (1000)
UO.Arm('CWeapon')
wait(5000)
wend
end if
wait(1000)
until UO.DEAD()
end sub


Стирать бинты
Code:
sub stirka() 
if UO.Count('0x0E21')<1 then
UO.FindType('0x0E20','0x0000','backpack')
UO.WaitTargetType('0x1008')
UO.UseObject('finditem')
wait(1000)
endif
end sub

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