Protect Down

Scripts for wintin.

Protect Down

Postby *juggleblood* » Sun Jan 22, 2006 11:11 am

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
User avatar
*juggleblood*
Hall of Fame Avatar Poster
 
Posts: 1304
Joined: Sun Jan 22, 2006 6:36 am
Location: Beyond Yonder
Status: Offline

Postby *juggleblood* » Sun Jan 22, 2006 11:15 am

:? Oh yeah...

Don't forget to put your name in place of 'Rub' in the above script.
User avatar
*juggleblood*
Hall of Fame Avatar Poster
 
Posts: 1304
Joined: Sun Jan 22, 2006 6:36 am
Location: Beyond Yonder
Status: Offline

One last tweak

Postby *juggleblood* » Wed Feb 01, 2006 6:04 pm

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>}
User avatar
*juggleblood*
Hall of Fame Avatar Poster
 
Posts: 1304
Joined: Sun Jan 22, 2006 6:36 am
Location: Beyond Yonder
Status: Offline


Return to WinTin Scripts

Who is online

Users browsing this forum: No registered users and 4 guests