Page 1 of 1

Protect Down

PostPosted: Sun Jan 22, 2006 11:11 am
by *juggleblood*
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

PostPosted: Sun Jan 22, 2006 11:15 am
by *juggleblood*
:? Oh yeah...

Don't forget to put your name in place of 'Rub' in the above script.

One last tweak

PostPosted: Wed Feb 01, 2006 6:04 pm
by *juggleblood*
Problem: the client substitutes the grouplist before it has finished capturing and reformatting it.

Solution: add a 1 second timer after the groupcapture sequence

;#timer x +1 {<protecteefigureouter sequence>}