Heal dvou

Základní skripty pro všeobecné využití
Odpovědět
Lara Craft
Site Admin
Příspěvky:36
Registrován:čtv bře 08, 2018 9:00 pm
Heal dvou

Příspěvek od Lara Craft » pon bře 12, 2018 10:09 pm

Používané při sparringu:

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

Odpovědět