Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » Finished MUD Scripts
jaimonkhan
Newbie


Joined: 05 Aug 2019
Posts: 4

PostPosted: Mon Aug 05, 2019 9:34 am   

3 KINGDOMS CHATLINE MONITOR!!
 
YOU MUST "#WINDOW chats"
This Captures most of the normal chatlines and also some of the ones that I use most often. Figured I would put this up because I have been asked for it often enough.

FOR MORE SPECIFIC CLASSIFICATION OF CHATLINES:
#WINDOW tells
#WINDOW Guild
#WINDOW Other
#WINDOW pkstuff
#WINDOW ClanWorld


#CLASS {chatlines}

#REGEX {(?:> )?([(?:Mage\(\d+\)|Arch Mage|High Arch)] [A-Z][a-z]+ : .*)$} {:chats:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( yellow)"%1"};:Guild:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( yellow)"%1"}}

#REGEX {(?:> )?((?:You tell [A-Z][a-z]+|[A-Z][a-z]+ tells you): .*)$} {#BEEP;:chats:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( hi, red)"%1"};:tells:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( hi, red)"%1"}}
#COND {^ (.*)$} {:chats:#SAYPROMPT {%ansi( hi, red)" %1"};:tells:#SAYPROMPT {%ansi( hi, red)" %1"}} {looplines|prompt|regex}

#REGEX {(?:> )?((?:You LT|[A-Z][a-z]+ LTs) \(.*\))$} {#BEEP;:chats:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( hi, red)"%1"};:tells:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( hi, red)"%1"}}
#COND {^(?: LT: | )(.*)$} {:chats:#SAYPROMPT {%ansi( white)" %1"};:tells:#SAYPROMPT {%ansi( white)" %1"}} {looplines|prompt|regex}

#TRIGGER {~-~-~<~@ (%w) ~@~>~-~- (*)} {:chats:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( hi, green, red)"~-~-~<~@ %1 ~@~-~-"%ansi( yellow)" %2"};:Other:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( hi, green, red)"~-~-~<~@ %1 ~@~-~-"%ansi( yellow)" %2"}}

#TRIGGER {(%w)~[NEX~] : (*)$} {:chats:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( green)"%1[NEX] : %2"};:Other:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( green)"%1[NEX] : %2"}}
#COND {^ (*)$} {:chats:#SAYPROMPT {%ansi( green)" %1"};:Other:#SAYPROMPT {%ansi( green)" %1"}} {looplines|param=3}

#TRIGGER {~[Clan~] (%w) : (*)$} {#BEEP;:chats:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( hi, blue)"~[Clan~] %1: "%ansi( hi, red)"%2"};:ClanWorld:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( hi, blue)"~[Clan~] %1: "%ansi( hi, red)"%2"}}

#TRIGGER {(%w) ~<ALPHA Uplink~>: (*)$} {:chats:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( hi, yellow, blue)"%1 ~<ALPHA Uplink~>:"%ansi( yellow)" %2"};:Other:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( hi, yellow, blue)"%1 ~<ALPHA Uplink~>:"%ansi( yellow)" %2"}}
#COND {^ (*)$} {:chats:#SAYPROMPT {%ansi( yellow)"%1"};:Other:#SAYPROMPT {%ansi( yellow)"%1"}} {looplines}

#TRIGGER {newb (%w) ~[(%w)/(%d)~]: (*)$} {:chats:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( black, white)"newb %1 ~[%2/%3~] :"%ansi( yellow)" %4"};:Other:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( black, white)"newb %1 ~[%2/%3~] :"%ansi( yellow)" %4"}}
#COND {^ (*)$} {:chats:#SAYPROMPT {%ansi( yellow)"%1"};:Other:#SAYPROMPT {%ansi( yellow)"%1"}} {looplines}

#TRIGGER {newb (%w) ~[(%w)~]: (*)$} {#BEEP;#IF ((%lower( %2)="newbie") OR (%lower( %2)="wizard")) {:chats:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( black, white)"newb %1 ~[%2~]:"%ansi( yellow)" %3"}};#IF ((%lower( %2)="newbie") OR (%lower( %2)="wizard")) {:Other:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( black, white)"newb %1 ~[%2~]:"%ansi( yellow)" %3"}}}

#TRIGGER {(%w) ~[HELPER~]: (*)$} {:chats:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( hi, red)"%1 ~[HELPER~]:"%ansi( yellow)" %2"};:Other:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( hi, red)"%1 ~[HELPER~]:"%ansi( yellow)" %2"}}
#COND {^ (*)$} {:chats:#SAYPROMPT {%ansi( yellow)"%1"};:Other:#SAYPROMPT {%ansi( yellow)"%1"}} {looplines}

#TRIGGER {(%w) ~-~=PK~=~-: (*)$} {:chats:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( black, red)"%1 ~-~=PK~=~-"%ansi( white)" %2"};:pkstuff:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( black, red)"%1 ~-~=PK~=~-"%ansi( white)" %2"}}
#COND {^ (*)$} {:chats:#SAYPROMPT {%ansi( white)"%1"};:pkstuff:#SAYPROMPT {%ansi( black, red)"%1"}} {looplines}

#TRIGGER {~[Portal: (%w)~] (*)$} {:chats:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( blue)"~["%ansi( hi, cyan)"Portal : "%ansi( hi, green)"%1" %ansi( blue)"~]"%ansi( yellow)" %2"};:Other:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( blue)"~["%ansi( hi, cyan)"Portal : "%ansi( hi, green)"%1" %ansi( blue)"~]"%ansi( yellow)" %2"}}
#COND {^ (*)$} {:chats:#SAYPROMPT {%ansi( yellow)"%1"};:Other:#SAYPROMPT {%ansi( yellow)"%1"}} {looplines}

#TRIGGER {~[PARTY~] (%w): (*)$} {#BEEP;:chats:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( yellow, red)"~[PARTY~] %1:"%ansi( hi, white)" %2"};:tells:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( yellow, red)"~[PARTY~] %1:"%ansi( hi, white)" %2"}}

#TRIGGER {~[Sorcerer~] (%w) : (*)$} {:chats:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( yellow)"~[Sorcerer~] %1 : %2"};:Guild:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( yellow)"~[Sorcerer~] %1 : %2"}}

#TRIGGER {~[Arena Chat~] (%w): (*)$} {:chats:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( yellow, cyan)"~[Arena Chat~] %1 :"%ansi( white)" %2"};:Other:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( yellow, cyan)"~[Arena Chat~] %1 :"%ansi( white)" %2"}}
#COND {^ (*)$} {:chats:#SAYPROMPT {%ansi( white)"%1"};:Other:#SAYPROMPT {%ansi( white)"%1"}} {looplines}

#TRIGGER {(%w) ~>~>BOOK~>~> (*)$} {:chats:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( hi, blue)"%1"%ansi( hi, red)" ~>~>BOOK~>~> "%ansi( hi, blue)"%2"};:Other:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( hi, blue)"%1"%ansi( hi, red)" ~>~>BOOK~>~> "%ansi( hi, blue)"%2"}}

#TRIGGER {From afar, (*)$} {:chats:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( green, blue)"%1"}}

#TRIGGER {(%w) ~<(*)~>: (*)$} {:chats:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( black, green)"%1 ~<%2~>:"%ansi( white)" %3"};:Other:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( black, green)"%1 ~<%2~>:"%ansi( white)" %3"}}
#COND {^ (*)$} {:chats:#SAYPROMPT %ansi( white)"%1";:Other:#SAYPROMPT %ansi( white)"%1"} {looplines|param=1}

#TRIGGER {(*) ~-~=~(OMP~)~=~- (*)$} {:chats:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( red, blue)"%1~-~=~(OMP~)~=~-:"%ansi( white)" %2"};:Other:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( red, blue)"%1~-~=~(OMP~)~=~-:"%ansi( white)" %2"}}

#TRIGGER {(%w)~((*)~) (*)$} {:chats:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( yellow)"~[Clan Shout~] %1(%2) "%ansi( hi, white)"%3"};:ClanWorld:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( yellow)"~[Clan Shout~] %1(%2) "%ansi( hi, white)"%3"}}

#TRIGGER {~[CLAN DEATH~] (%w) gives (%w) a mild case of death, in Clanworld~!} {:chats:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( yellow)"~[Clan Death~] "%ansi( hi, white)"%1"%ansi( yellow)" gives "%ansi( hi, white)"%2"%ansi( yellow)" a mild case of death, in Clanworld~!"};:ClanWorld:#SAYPROMPT {%cr%ansi( white)"["%time( "h:nn:ss")"] "%ansi( yellow)"~[Clan Death~] "%ansi( hi, white)"%1"%ansi( yellow)" gives "%ansi( hi, white)"%2"%ansi( yellow)" a mild case of death, in Clanworld~!"}}
Reply with quote
Coopergetready
Newbie


Joined: 10 Jun 2021
Posts: 1

PostPosted: Thu Jun 10, 2021 6:11 am   
 
Hi,

You can convert some triggers (those that are not regex) into regex triggers. In this case, you can achieve a minor speed gain.
Have you tried that?
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » Finished MUD Scripts All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net