ZMud Scripts

From LSWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 08:46, 4 September 2007 (edit)
Kilelen (Talk | contribs)
(Simple Chat Capture)
← Previous diff
Revision as of 17:05, 5 March 2008 (edit)
Kilelen (Talk | contribs)

Next diff →
Line 17: Line 17:
#TRIGGER {^Capture text ON$} {#GAG} #TRIGGER {^Capture text ON$} {#GAG}
#TRIGGER {~"$} {#C-} #TRIGGER {~"$} {#C-}
 + #CLASS 0
 +
 +==Speedwalks==
 +
 + #CLASS {Speedwalks}
 + #ALIAS goto {#IF (%1 == "lh") {Speedwalks/current_run = @Speedwalks/current_area;
 + #ADD Speedwalks/current_run lh;
 + #EXEC %db( @Speedwalks/dirs, @current_run)} {Speedwalks/current_run = lh%1;Speedwalks/current_area = %1;
 + #EXEC %db( @Speedwalks/dirs, @current_run)}}
 + #VAR current_run {}
 + #VAR current_area {}
#CLASS 0 #CLASS 0

Revision as of 17:05, 5 March 2008

This is a place for people to post and share ZMud Scripts that might be of interest to others.

Simple Chat Capture

This script will properly capture long multi-line OOC channel chats to a seperate window. In order for this to work properly, you must execute the command:

switch depiction Quote Channel Text

so that OOC channel chats are bounded by double quotation marks.

Just copy and paste this into your command line, no spaces, and it should work:

#CLASS {OOCCap}
#TRIGGER {(*)~[OOC (%w) (*)~]$} {#CAP Chats}
#TRIGGER {(*)~[OOC (%w)~] ~"(*)} {
  #CAP Chats
  #C+ Chats
  }
#TRIGGER {^Capture text OFF$} {#GAG}
#TRIGGER {^Capture text ON$} {#GAG}
#TRIGGER {~"$} {#C-}
#CLASS 0

Speedwalks

#CLASS {Speedwalks}
 #ALIAS goto {#IF (%1 == "lh") {Speedwalks/current_run = @Speedwalks/current_area;
  #ADD Speedwalks/current_run lh;
  #EXEC %db( @Speedwalks/dirs, @current_run)} {Speedwalks/current_run = lh%1;Speedwalks/current_area = %1;
  #EXEC %db( @Speedwalks/dirs, @current_run)}}
#VAR current_run {}
#VAR current_area {}
#CLASS 0
Personal tools