Protect Down

This will automatically protect down and will also protect over your protectee if he or she dies.
#defgroup {protect down}
#action {^$protectee is dead} {#remkey grouplist $protectee;protdown;grouptell $protectee is dead-----------------------------------I will protect over.} {G|protect down}
#action {consists of:} {#capture {groupcapture}{<%0hp};#match grouplist groupcapture {%0 [} {%0}} {G|protect down}
#alias {protdown} {group;#var f 0;#loop {$grouplist} {#if {$f=1}{prot %%0;#var f 0;#showme I should be protecting %%0;#var protectee %%0};#if {[%%0]=[Rub]}{#var f 1}}} {G|protect down}
Cheers,
Jugg
#defgroup {protect down}
#action {^$protectee is dead} {#remkey grouplist $protectee;protdown;grouptell $protectee is dead-----------------------------------I will protect over.} {G|protect down}
#action {consists of:} {#capture {groupcapture}{<%0hp};#match grouplist groupcapture {%0 [} {%0}} {G|protect down}
#alias {protdown} {group;#var f 0;#loop {$grouplist} {#if {$f=1}{prot %%0;#var f 0;#showme I should be protecting %%0;#var protectee %%0};#if {[%%0]=[Rub]}{#var f 1}}} {G|protect down}
Cheers,
Jugg