auto heal

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
kaulins1122
Posts: 2
Joined: 2006-04-11 18:59:44

auto heal

Post by kaulins1122 »

sub heal ()
while NOT UO.Dead()
wait(1500)
If UO.Life<UO.Str Then
UO.SetArm('CWeapon')
UO.Exec("bandageself")
wait(500)
UO.Arm('CWeapon')
uo.print("Лечимся")
Endif
wend
end sub


vot etat script vso normalnoi TOKO KAK ZDELAT STOB >> stop aut_heal ?!?!?
Scripts Writer
Posts: 2259
Joined: 2005-04-19 18:00:29
Location: Московская область
Contact:

Post by Scripts Writer »

Code: Select all

sub healll () 
while NOT UO.Dead()
wait(1500)
If UO.Life<UO.Str Then
UO.SetArm('CWeapon')
UO.Exec("bandageself")
wait(500)
UO.Arm('CWeapon')
uo.print("Лечимся")
Endif
wend
end sub



Code: Select all

sub stop()
 uo.Say(',terminate healll')
end sub
BigMouseI
Posts: 93
Joined: 2006-04-15 09:00:35

Post by BigMouseI »

Code: Select all

sub heal ()
while NOT UO.Dead()
wait(1500)
If UO.Life<UO.Str Then
UO.SetArm('CWeapon')
UO.Exec("bandageself")
wait(500)
UO.Arm('CWeapon')
uo.print("Лечимся")
Endif
wend
end sub


Code: Select all

sub stop()
UO.Exec('terminate heal')
UO.Print('Вырубаем')
end sub
Scripts Writer
Posts: 2259
Joined: 2005-04-19 18:00:29
Location: Московская область
Contact:

Post by Scripts Writer »

BigMouseI wrote:

Code: Select all

sub heal ()
while NOT UO.Dead()
wait(1500)
If UO.Life<UO.Str Then
UO.SetArm('CWeapon')
UO.Exec("bandageself")
wait(500)
UO.Arm('CWeapon')
uo.print("Лечимся")
Endif
wend
end sub


Code: Select all

sub stop()
UO.Exec('terminate heal')
UO.Print('Вырубаем')
end sub


Потрясающе
BigMouseI
Posts: 93
Joined: 2006-04-15 09:00:35

Post by BigMouseI »

You Must Die wrote:
Потрясающе



Меня тоже радует...
flake
Expert!
Posts: 746
Joined: 2004-08-11 23:56:17
Location: The Citadel
Contact:

Post by flake »

Зачем же тратить 2 клавиши, когда хватает одной?

Code: Select all

sub heal () 
  if uo.GetGlobal( 'heal' ) == '1' then
    uo.SetGlobal( 'heal', '0' ) 
    return
  else
    uo.SetGlobal( 'heal', '1' )
  endif
while NOT UO.Dead() AND (uo.GetGlobal( 'heal' ) == '1')
wait(1500)
If UO.Life<UO.Str Then
UO.SetArm('CWeapon')
UO.Exec("bandageself")
wait(500)
UO.Arm('CWeapon')
uo.print("Лечимся")
Endif
wend
end sub
Post Reply