Zmud Auto Rescue

From AvatarWiki
Revision as of 08:35, 10 September 2010 by Rhodry (talk | contribs) (Created page with 'This is the Auto rescue set of triggers from the amezyarak site, added as the site is now defunct. Syntax: addrescue <charname>, adds character to the rescue list. Syntax: dontr…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is the Auto rescue set of triggers from the amezyarak site, added as the site is now defunct.

Syntax: addrescue <charname>, adds character to the rescue list. Syntax: dontrescue <charname>, remove a character from the rescue list. Syntax: clearrescue, clears the rescue list

A right click menu also lets you right click on a char name and it will either add or remove depending on what you select.

Code

Copy this section and paste it into a *.txt file. Then, in zMUD, go to "Settings -> File -> Import Text" and select the file you saved to:

#CLASS {autorescue}
#ALIAS autorescue {#ec autorescue - %1
#var groupie %additem(%lower(%1),@groupie)
#ec
#ec ---  CHARACTERS IN THE RESCUE LIST  ---
#ec
#fo @groupie {#ec %i}}
#ALIAS dontrescue {#ec don't rescue - %1
#var groupie %delitem(%lower(%1),@groupie)
#ec
#ec ---  CHARACTERS IN THE RESCUE LIST  ---
#ec
#fo @groupie {#ec %i}}
#ALIAS clearrescue {#ye {clear the rescue list?} {yes:groupie="";#ec rescue buffer - cleared} {no:}}
#ALIAS showrescue {#ec
#ec ---  CHARACTERS IN THE RESCUE LIST  ---
#ec
#fo @groupie {#ec %i}}
#VAR groupie {}
#MENU {rescue} {autorescue %selword} ""
#MENU {don't rescue} {dontrescue %selword} ""
#MENU {show rescue} {showrescue} ""
#MENU {clear rescue} {clearrescue} ""
#CLASS 0
#CLASS {autorescue|rescue}
#TRIGGER {(%*) attack[s ]strike[s ]({@groupmem})} {#if %ismember( %lower( %2), @groupie) {rescue %2;#t- rescue}}
#TRIGGER {(%*) attacks haven't hurt ({@groupmem})} {#if %ismember( %lower( %2), @groupie) {rescue %2;#t- rescue}}
#CLASS 0
#CLASS {autorescue|rescue2}
#TRIGGER {^(%*) is DEAD!!} {#T+ rescue}
#TRIGGER {You successfully rescue} {#T+ rescue}
#TRIGGER {doesn't need your help.} {#T+ rescue}
#CLASS 0

Designer comments

All the credits for this trigger set go to amezyarak.