From 704bda1c205efc7ad2d32577f50e9b58da9700df Mon Sep 17 00:00:00 2001 From: Brandon Cornejo Date: Sun, 3 Feb 2019 14:38:47 -0600 Subject: [PATCH] colourpalette alias, 'talker log on/off' for chat window --- src/aliases.tin | 23 ++++++++++++++++++++++- src/channels.tin | 43 ++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 62 insertions(+), 4 deletions(-) diff --git a/src/aliases.tin b/src/aliases.tin index c0c691a..9449ccd 100644 --- a/src/aliases.tin +++ b/src/aliases.tin @@ -1,4 +1,4 @@ -#ALIAS {setsize} {rows 300;cols 110}; +#ALIAS {setsize} {rows 300;cols 148}; #ALIAS {setmsize} {rows 300;cols 60}; #ALIAS {^clear$} { @@ -22,3 +22,24 @@ #split {2} {1}; setsize; }; + + +#ALIAS {colourpalette} +{ + #foreach {a;b;c;d;e;f} {cnt1} + { + #foreach {a;b;c;d;e;f} {cnt2} + { + #var result <000>; + #foreach {a;b;c;d;e;f} {cnt3} + { + #var result $result <$cnt1$cnt2$cnt3> <<888>$cnt1$cnt2$cnt3><088> + }; + #showme $result + } + } +} + +#ALIAS {easyvote} { + #system {lynx http://www.topmudsites.com/vote-pinkfish.html}; +}; diff --git a/src/channels.tin b/src/channels.tin index cee9f1d..11c27e9 100644 --- a/src/channels.tin +++ b/src/channels.tin @@ -1,13 +1,50 @@ #CLASS {channels} {kill}; #CLASS {channels} {open}; +#VARIABLE {talker_log_toggle} {1}; + #ACTION {^You {tell|ask|exclaim to} %1:%2} {#LINE {LOG} {$chat_file}}; #ACTION {^%1 {tells|asks|exclaims to} %*you{|(?: in \w+)?}: %4} {#LINE {LOG} {$chat_file}}; #ACTION {^[%1] %2{:|} %3} {#LINE {LOG} {$chat_file}}; + +#ACTION {^(They Might Be Alts) } {#LINE {LOG} {$chat_file}}; + #ACTION {^(newbiehelpers)} {#LINE {LOG} {$chat_file}}; +#ACTION {^You newbiehelper-tell:%1} {#LINE {LOG} {$chat_file}}; #ACTION {^(newbie)} {#LINE {LOG} {$chat_file}}; -#ACTION {^(Playerkillers) %1 wisps:? %2} {#LINE {LOG} {$chat_file}}; -#ACTION {^(Thieves) %1 wisps:? %2} {#LINE {LOG} {$chat_file}}; -#ACTION {^(They Might Be Alts) } {#LINE {LOG} {$chat_file}}; +#ACTION {^You newbie-tell:%1} {#LINE {LOG} {$chat_file}}; +#ACTION {^You special-tell:%1} {#LINE {LOG} {$chat_file}}; +#ACTION {^You cre-tell:%1} {#LINE {LOG} {$chat_file}}; + + +#ACTION {^(Playerkillers) %1 wisps{:|} %2} { + #if {"$talker_log_toggle" == "1"} { + #LINE {LOG} {$chat_file} + }; +}; +#ACTION {^(Thieves) %1 wisps{:|} %2} { + #if {"$talker_log_toggle" == "1"} { + #LINE {LOG} {$chat_file} + }; +}; +#ACTION {^(Wizards) %1 wisps{:|} %2} { + #if {"$talker_log_toggle" == "1"} { + #LINE {LOG} {$chat_file} + }; +}; +#ACTION {^(Igame) %1 wisps{:|} %2} { + #if {"$talker_log_toggle" == "1"} { + #LINE {LOG} {$chat_file} + }; +}; + +#ALIAS {talker log %1} { + #if {%1 == "on"} { + #var {talker_log_toggle} {1}; + }; + #if {%1 == "off"} { + #var {talker_log_toggle} {0}; + }; +}; #CLASS {channels} {close};