BladeSpirits, drw, нехелиться. :(

Ask for scripts here

Moderators: Murderator+, Murderator

Post Reply
Dron D.
Posts: 190
Joined: 2004-12-13 01:27:00

BladeSpirits, drw, нехелиться. :(

Post by Dron D. »

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

Code: Select all

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
Purgen
Posts: 187
Joined: 2005-04-04 18:23:12

Post by Purgen »

Строку

Code: Select all

 if uo.gethp() < uo.str then
замени на

Code: Select all

 if uo.gethp ('self') < uo.getmaxhp ('self') then
Должно помочь.
to4a
Posts: 265
Joined: 2006-03-10 00:19:11
Location: http://drw.ru/

Post by to4a »

Врядле поможет, uo.str=uo.getmaxhp()
да и вообще одной бандагой не вылечишься то особо
[b][color=#666666][size=67]DRW - Glorior Belli[/size][/color][/b]
[url=http://tyv.name/action/][img]http://tyv.name/action/pishu.gif[/img][/url]
666||TORCHKI
Posts: 257
Joined: 2006-11-14 16:19:03
Contact:

Post by 666||TORCHKI »

Code: Select all

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: Select all

sub stirka() 
if UO.Count('0x0E21')<1 then 
UO.FindType('0x0E20','0x0000','backpack') 
UO.WaitTargetType('0x1008') 
UO.UseObject('finditem') 
wait(1000) 
endif 
end sub 
Post Reply