Kód: Vybrat vše
#---------------------------------------------------------------
sub healdvou()
#---------------------------------------------------------------
#UO.exec('exec afkalarm')
UO.Print('zamer prvniho healovaneho!')
UO.exec('addobject prvni')
while UO.Targeting()
wait(100)
wend
UO.Print('zamer druheho healovaneho!')
UO.exec('addobject druhy')
while UO.Targeting()
wait(100)
wend
WHILE NOT UO.DEAD()
if UO.Count('0x0e21') < 2 then
UO.Say('Dosly bandy, jdete od sebe!!')
wait(2000)
UO.Say('Dosly bandy, jdete od sebe!!')
return
endif
if UO.GetHP('prvni') < UO.GetHP('druhy') then
if UO.GetHP('prvni') < UO.GetMaxHP('prvni') then
UO.UseType(0x0e21)
UO.WaitTargetObject('prvni')
repeat
wait(500)
Until UO.InJournal('Chces vytvorit mumii?|You put the bloody bandagess in your pack.|You apply the bandages, but they barely help.')
endif
else
if UO.GetHP('druhy') < UO.GetMaxHP('druhy') then
UO.UseType(0x0e21)
UO.WaitTargetObject('druhy')
repeat
wait(500)
Until UO.InJournal('Chces vytvorit mumii?|You put the bloody bandagess in your pack.|You apply the bandages, but they barely help.')
endif
endif
wait(500)
wend
end sub