In order to use these triggers, you must be using a version of zMUD that supports PERL expressions (most versions). Ensure that parsing is ON (it is on by default). Copy the blocks of code desired and simply paste them into your command line (the place at the bottom where you type your commands).
Installment #1 - Automatic Login - Last Updated 07/06/2008
This module automatically logs in your character, depending on the character and password stored for your connection in zMUD.
Code: Select all
#// Automatic Connection Character Login
#REGEX {^By what name do you wish to be known.?} {#CH} "Automatic Login" {nocr|prompt}
#REGEX {^Do you wish to create a new character.? Y/N} {N} "Automatic Login" {nocr|prompt}
#REGEX {^Password:} {#PW} "Automatic Login" {nocr|prompt}
#REGEX {^\*\*\* PRESS RETURN: } {#CR;#WAIT 250;1} "Automatic Login"
#REGEX {^Please enter your term type \(\<CR\> ansi, '\?' help\)\:} {#CR} "Automatic Login" {nocr|prompt}
Developer Notes
- Creates a folder named Automatic Login
- Creates triggers inside Automatic Login
- No aliases.
- No variables.
- Uses Character Name and Password stored in the zMUD connection properties.
* You can replace the #PW and #CH with the password and character name of your choice. This is not secure.
Installment #2 - Communications - Last Updated 07/06/2008
This module captures communications channels, both individual and mudwide and puts them into windows separate from the mud output.
Code: Select all
#// Mudwide Communications Channels (auction, gcc, etc.)
#REGEX {^Acheron:} {#CAP MUDWIDE} "Communications"
#REGEX { > Acheron:} {#CAP MUDWIDE} "Communications"
#REGEX {^\[Acheron\] \a+:} {#CAP MUDWIDE} "Communications"
#REGEX { > [Acheron] \a+:} {#CAP MUDWIDE} "Communications"
#REGEX {^Auction:} {#CAP MUDWIDE} "Communications"
#REGEX { > Auction:} {#CAP MUDWIDE} "Communications"
#REGEX {^\a+ GCC:} {#CAP MUDWIDE} "Communications"
#REGEX { > \a+ GCC:} {#CAP MUDWIDE} "Communications"
#REGEX {^\a+ LFG:} {#CAP MUDWIDE} "Communications"
#REGEX { > \a+ LFG:} {#CAP MUDWIDE} "Communications"
#REGEX {^\a+ OOC:} {#CAP MUDWIDE} "Communications"
#REGEX { > \a+ OOC:} {#CAP MUDWIDE} "Communications"
#REGEX {^(\a+) NHC:} {#CAP MUDWIDE} "Communications"
#REGEX { > \a+) NHC:} {#CAP MUDWIDE} "Communications"
#REGEX {^(\a+) (H) NHC:} {#CAP MUDWIDE} "Communications"
#REGEX { > \a+) (H) NHC:} {#CAP MUDWIDE} "Communications"
#// Incoming and Outging Individual and Group Channels (gsay, tells, etc.)
#REGEX {^\a+ group-say} {#CAP LOCAL} "Communications"
#REGEX { > \a+ group-say} {#CAP LOCAL} "Communications"
#REGEX {^\a+ group-project} {#CAP LOCAL} "Communications"
#REGEX { > \a+ group-project} {#CAP LOCAL} "Communications"
#REGEX {^\a+ project} {#CAP LOCAL} "Communications"
#REGEX { > \a+ project} {#CAP LOCAL} "Communications"
#REGEX {^\a+ say} {#CAP LOCAL} "Communications"
#REGEX { > \a+ say} {#CAP LOCAL} "Communications"
#REGEX {^\a+ tell} {#CAP LOCAL} "Communications"
#REGEX { > \a+ tell} {#CAP LOCAL} "Communications"
#REGEX {^\a+ whisper} {#CAP LOCAL} "Communications"
#REGEX { > \a+ whisper} {#CAP LOCAL} "Communications"
#// Petition Channels (petitions)
#REGEX {^\a+ responds to your petition with} {#CAP PETITION} "Communications"
#REGEX { > \a+ responds to your petition with} {#CAP PETITION} "Communications"
#REGEX {^You petition} {#CAP PETITION} "Communications"
#REGEX { > You petition} {#CAP PETITION} "Communications"
Alternative & Add-On Modules
Code: Select all
#// Incoming ONLY Individual and Group Channels (incoming gsays, incoming tells, etc.)
#REGEX {^\a+ group-says} {#CAP LOCAL} "Communications"
#REGEX { > \a+ group-says} {#CAP LOCAL} "Communications"
#REGEX {^\a+ group-projects} {#CAP LOCAL} "Communications"
#REGEX { > \a+ group-projects} {#CAP LOCAL} "Communications"
#REGEX {^\a+ projects} {#CAP LOCAL} "Communications"
#REGEX { > \a+ projects} {#CAP LOCAL} "Communications"
#REGEX {^\a+ says} {#CAP LOCAL} "Communications"
#REGEX { > \a+ says} {#CAP LOCAL} "Communications"
#REGEX {^\a+ tells} {#CAP LOCAL} "Communications"
#REGEX { > \a+ tells} {#CAP LOCAL} "Communications"
#REGEX {^\a+ whispers} {#CAP LOCAL} "Communications"
#REGEX { > \a+ whispers} {#CAP LOCAL} "Communications"
#// Outgoing ONLY Individual and Group Channels (outgoing gsays, outgoing tells, etc.)
#REGEX {^You group-say} {#CAP LOCAL} "Communications"
#REGEX { > You group-say} {#CAP LOCAL} "Communications"
#REGEX {^You group-project} {#CAP LOCAL} "Communications"
#REGEX { > You group-project} {#CAP LOCAL} "Communications"
#REGEX {^You project '} {#CAP LOCAL} "Communications"
#REGEX { > You project '} {#CAP LOCAL} "Communications"
#REGEX {^You say '} {#CAP LOCAL} "Communications"
#REGEX { > You say '} {#CAP LOCAL} "Communications"
#REGEX {^You tell \a+} {#CAP LOCAL} "Communications"
#REGEX { > You tell \a+} {#CAP LOCAL} "Communications"
#REGEX {^You whisper} {#CAP LOCAL} "Communications"
#REGEX { > You whisper} {#CAP LOCAL} "Communications"
Developer Notes
- Creates a folder named Communications
- Creates triggers inside Communnications
- No aliases.
- No variables.
* You can change the name of the windows created for each type of communication. You can also make them use the same window by using the same name.
* You can selectively remove types of communications and channels you do not wish to include.
Installment #3 - Spellout Reporter - Last Updated 07/06/2008
This module alerts the group when your enchantment has worn off. NOTICE: In groups playing at higher operating levels, many of these spellout reports are considered unnecessary spam, as many high operating level spellcasters keep track of when their spells expire. However, for other types of groups, often times these spellout reports are considered helpful as it can be difficult to track so many spells.
Code: Select all
#REGEX {You feel less wooden\.} {#beep;gsay >>> Barkskin Out} "Spellout Reporter"
#REGEX {Your form stops blurring\.} {#beep;gsay >>> Blur Out} "Spellout Reporter"
#REGEX {Your image is no longer displaced\.} {#beep;gsay >>> Displace Out} "Spellout Reporter"
#REGEX {Your displaced form snaps back to your physical location!} {#beep;gsay >>> Displace Out} "Spellout Reporter"
#REGEX {Your dragon scales melt back into your regular flesh\.} {#beep;gsay >>> Dragonscales Out} "Spellout Reporter"
#REGEX {Your body shimmers and sheds its elemental form, returning to normal\.} {#beep;gsay >>> Elemental Embodiment Out} "Spellout Reporter"
#REGEX {The elemental ward protecting you shudders and disappears\.} {#beep;gsay >>> Elemental Ward Out} "Spellout Reporter"
#REGEX {Your globe shimmers, and fades into the air\.} {#beep;gsay >>> Globe Out} "Spellout Reporter"
#REGEX {The world speeds up around you\.} {#beep;gsay >>> Haste Out} "Spellout Reporter"
#REGEX {Your mind seems vulnerable again\.} {#beep;gsay >>> Mind Blank Out} "Spellout Reporter"
#REGEX {Your mental barrier blinks out of existence\.} {#beep;gsay >>> Non-Detection Out} "Spellout Reporter"
#REGEX {Your flesh loses its stony texture\.} {#beep;gsay >>> Stone Skin Out} "Spellout Reporter"
#REGEX {Your vitality drains away\.} {#beep;gsay >>> Vitality Out} "Spellout Reporter"
Developer Notes
- Creates a folder named Spellout Reporter
- Creates triggers inside Spellout Reporter
- No aliases.
- No variables.
* You can edit the gsay commands to say what you want them to say. You can also replace them with a tell command for your specific spellcaster.
Installment #4 - Friends Chat Channel - Last Updated 07/08/2008
B E T A
This module allows you to create and manage a communications channel that only reaches the members you add to the conversation. All participants will need the triggerset for this to work properly.
Code: Select all
#// Friends Chat Channel, Version 0.3 Beta
#// Creates FCC Folder
#CLASS {FCCBETA}
#// Creates FCC Commands
#// FLIST: Lists the friends in the current list you are using or holding.
#ONINPUT {^FLIST} {#GAG;#SHOW FADMIN FCC: 'Your Current Friends List: @FriendsList'} "" {regex}
#// FHELP: Lists commands.
#ONINPUT {^FLIST} {#GAG;#SHOW FADMIN FCC: 'ALL: FLIST, FHELP, FLEAVE HOLDER: FADD FDEL'} "" {regex}
#// FDEL: Removes a friend from your list IFF you are the list holder.
#ONINPUT {^FDEL (\a+)} {#IF (@FriendsListStatus = "1") {FCC Friend Removed: %1;#DELITEM FriendsList %1;#SHOW FADMIN FCC: '%1 has been removed from your Friends List.'};#IF (@FriendsListStatus = "2") {#GAG;#SHOW FADMIN FCC: 'You are currently using somebody else's friends list. Type FLEAVE to abandon current friendslist.'}} "" {regex}
#// FLEAVE: Allows you to drop ONLY your list - other people may still have you on their lists.
#ONINPUT {^FLEAVE} {#GAG;FriendsList = %null;FriendsListStatus = 1;#SHOW FADMIN FCC: 'You have abandoned your friends list and may now create your own list. You may still receive FCC messages from former list members.'} "" {regex}
#// FCC: This is the FCC chat command, like tell or ooc.
#ONINPUT {^FCC (.*)} {#GAG;#FO @FriendsList {#GAG;#SEND "tell %i FCC %1"};#SHOW "";#SHOW "";#SHOW You FCC: '%1'} "" {regex}
#// FADD: Allows you to add a friend IFF you are the list holder.
#ONINPUT {^FADD (\a+)} {#IF (@FriendsListStatus = "1") {#GAG;FCC Friend Added: %1;#ADDITEM FriendsList %lower( %1);#send "tell %1 You are invited to join my friends chat channel. Reply with 'join' to accept my friends list. Reply with 'FCCHelp' to get help with installing FCC triggers."};#IF (@FriendsListStatus = "2") {#GAG;#SHOW FCC FADMIN: 'You are currently using somebody else's friends list. Type FLEAVE to abandon current friendslist.'}} "" {regex}
#// Recieves FCC Messages
#REGEX {^(\a+) tells you 'FCC (.*)'} {#GAG;#SHOW "";#SHOW %1 FCC: '%2'}
#REGEX {> (\a+) tells you 'FCC (.*)'} {#GAG;#SHOW "";#SHOW %1 FCC: '%2'}
#// Processes list refresh requests from list members.
#REGEX {^(\a+) tells you 'join'} {#IF ((%ismember( %lower( %1), @FriendsList)) & (@FriendsListStatus = "1")) {#DELITEM FriendsList %lower( %1);tell %1 FCCJoin @FriendsList;#ADDITEM FriendsList %lower( %1)};#IF (!(%ismember( %lower( %1), @FriendsList)) OR !(@FriendsListStatus = "1")) {tell %1 Get the fuch outta here!}}
#REGEX { > (\a+) tells you 'join'} {#IF ((%ismember( %lower( %1), @FriendsList)) & (@FriendsListStatus = "1")) {#DELITEM FriendsList %lower( %1);tell %1 FCCJoin @FriendsList;#ADDITEM FriendsList %lower( %1)};#IF (!(%ismember( %1, @FriendsList)) OR !(@FriendsListStatus = "1")) {tell %1 Get the fuch outta here!}}
#// Processes list refresh response from list holder.
#REGEX {^(\a+) tells you 'FCCJoin (.*)'} {FriendsList = %2;#ADDITEM FriendsList %1;FriendsListStatus = "2"}
#REGEX { > (\a+) tells you 'FCCJoin (.*)'} {FriendsList = %2;#ADDITEM FriendsList %1;FriendsListStatus = "2"}
#// Initiates new members.
#REGEX {^(\a+) tells you 'FCCHelp'} {tell %1 Goto http://www.torilmud.org/phpBB2/viewtopic.php?f=4~&t=17343 and scroll down to Installment ~#4, FCC.}
#REGEX {> \a+ tell (\a+) 'FCC (.*)'} {#GAG}
#REGEX { > (\a+) tells you 'FCCHelp'} {tell %1 Goto http://www.torilmud.org/phpBB2/viewtopic.php?f=4~&t=17343 and scroll down to Installment ~#4, FCC.}
#REGEX {^\a+ tell (\a+) 'FCC (.*)'} {#GAG}
#// Updates list members on changes to friends list.
#REGEX {^(\a+) tells you 'FCC Friend Added: (\a+)'} {#GAG;#SEND "tell %1 join";#SHOW FADMIN FCC: 'Friends List Updated.'}
#REGEX { > (\a+) tells you 'FCC Friend Added: (\a+)'} {#GAG;#SEND "tell %1 join";#SHOW FADMIN FCC: 'Friends List Updated.'}
#REGEX {^(\a+) tells you 'FCC Friend Removed: (\a+)'} {#GAG;#SEND "tell %1 join";#SHOW FADMIN FCC: 'Friends List Updated.'}
#REGEX { > (\a+) tells you 'FCC Friend Removed: (\a+)'} {#GAG;#SEND "tell %1 join";#SHOW FADMIN FCC: 'Friends List Updated.'}
#// End Class
#CLASS 0
User Notes
The FCC is tells based, larger FCC lists will make sending FCC messages more laggy and difficult. It is not recommended for use while in combat.
FOR ALL USERS:
FLIST - displays the currently list you are using to send FCC messages.
FLEAVE - deletes your current friends list, however, your friends may still have you on their lists. This also restores you as the list holder for yourself (with a blank list of friends.)
FCC Hello - Works like OOC, in that your friends will have CharacterName FCC: 'Hello' appear on their screens.
FOR LIST HOLDERS/STARTERS:
FADD Teflor - adds Teflor to your friends list.
FDEL Teflor - removes Teflor from your friends list (however, he still may have you on his friends list).
Developer Notes
- Creates a folder named FCC
- Creates triggers inside FCC
- No aliases.
- No variables.
* Be very careful as each user should have the same set of triggers.