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
Ghedemonas
Novice


Joined: 15 Aug 2007
Posts: 39

PostPosted: Mon Mar 30, 2009 8:10 pm   

Show CMUD Colors
 
The following script is displaying the different colors that one can chose in a more or less sorted manner.

Command 1: ShowCWColors Colors for #cw Command
Command 2: ShowANSIColors Colors for %ansi() Command

<class name="Show Available Colors" id="7614">
<alias name="ShowCWColors" id="7615">
<value>#t+ UntriggerGag
#show %ansi(green)#CW COLORS START
#forall @System.CWcolors {#if (%i=black) {#show black} {#cw %i %i;#show %i;#untrigger %i}}
#show %ansi(green)#CW COLORS END
#t- UntriggerGag</value>
<notes>I used the following to create the color triggers:
#forall @System.CWcolor {#cw %i %i}</notes>
</alias>
<class name="Untriggergag" initdisable="true" enabled="false" id="7616">
<trigger priority="28570" id="7617">
<pattern>^Trigger {*} removed.$</pattern>
<value>#gag</value>
</trigger>
</class>
<alias name="ShowANSIColors" id="7618">
<value>#t+ UntriggerGag
#show %ansi(green)ANSI COLORS START
#forall @System.ANSIcolors {#if (%i=black) {#show black} {#show %ansi(%i)%i}}
#show %ansi(green)ANSI COLORS END
#t- UntriggerGag</value>
<notes>I used the following to create the color triggers:
#forall @System.CWcolor {#cw %i %i}</notes>
</alias>
<var name="System" type="Record" id="13053">CWColors="greenyellow
yellowgreen
lawngreen
chartreuse
limegreen
lime
green
forestgreen
darkgreen
seagreen
mediumseagreen
springgreen
mediumspringgreen
lightgreen
palegreen
paleturquoise
lightblue
powderblue
skyblue
lightskyblue
lightsteelblue
steelblue
darkseagreen
aquamarine
mediumaquamarine
darkturquoise
aqua
deepskyblue
turquoise
mediumturquoise
lightseagreen
darkcyan
teal
cyan
cadetblue
cornflowerblue
dodgerblue
royalblue
mediumblue
darkblue
blue
navy
midnightblue
darkslateblue
slateblue
mediumslateblue
mediumpurple
plum
violet
orchid
mediumorchid
darkorchid
darkviolet
blueviolet
indigo
magenta
purple
darkmagenta
fuchsia
hotpink
mediumvioletred
deeppink
crimson
firebrick
darkred
maroon
red
orangered
tomato
coral
lightpink
lightsalmon
darksalmon
palevioletred
lightcoral
salmon
indianred
chocolate
darkorange
orange
darkgoldenrod
olive
peru
rosybrown
saddlebrown
sienna
tan
olivedrab
darkolivegreen
burlywood
brown
antiquewhite
bisque
darkkhaki
gold
yellow
goldenrod
sandybrown
khaki
lemonchiffon
lightgoldenrodyellow
moccasin
navajowhite
palegoldenrod
peachpuff
wheat
thistle
aliceblue
azure
cornsilk
beige
blanchedalmond
floralwhite
gainsboro
ghostwhite
honeydew
ivory
lavender
lavenderblush
lightcyan
lightyellow
linen
mintcream
mistyrose
oldlace
papayawhip
pink
seashell
snow
whitesmoke
white
gray
lightgrey
silver
darkgray
lightslategray
darkslategray
slategray
dimgray
black
"|ANSIColors="green
cyan
blue
magenta
purple
red
brown
black
yellow
white
gray"</var>
</class>
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Mon Mar 30, 2009 10:01 pm   
 
Ghedemonas, the Finished MUD scripts is typically intended for zMUD scripts, not CMUD ones. CMUD scripts should be posted in the package library.
_________________
Asati di tempari!
Reply with quote
Ghedemonas
Novice


Joined: 15 Aug 2007
Posts: 39

PostPosted: Mon Mar 30, 2009 10:20 pm   
 
Ok - I'll put it there - it might work with zmud, too .....
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Thu Jul 09, 2009 12:35 am   
 
Got this from here ages ago
Code:
#ALIAS ShowColors {#VARIABLE Colors {%replace( @Colors, " remove me |", "")};#FORALL @Colors {:1:#SAYPROMPT ~<color %i~>%i~</color~>%char( 32)};%cr} "colortest"
#VAR Colors {aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen} {_nodef} "colortest"
Best part is the "remove me |" cause i have no idea why that is there, nor why it works despite it being there Laughing
Reply with quote
Fallyn
Newbie


Joined: 20 Oct 2008
Posts: 1

PostPosted: Tue Sep 01, 2009 1:51 pm   Library?
 
Yeah except that package library is screwed. It takes forever to open on my computers no matter how good the computer is and when it finally does, if it doesn't crash cMUD in the process, there's virtually nothing there that is worth all of that trouble.
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Wed Sep 02, 2009 3:38 pm   
 
In general the package library should not be running very slowly and certainly should not be causing CMUD to crash.

To try and figure out what's happening please provide the following.

1. What version of CMUD are you using?
2. Did you upgrade from a previous version?
3. What steps do you use to open the Package Library?
4. Does it take long to open, or long to update?
5. When you first open the package library do you do a File -> Get All From Library?
6. Do you get any crashes before you open up the Library?
7. Are you submitting the error reports when you get the errors?
8. Can you post the exact output of some of the errors you're getting?

The utility/practicality of the library is dependent on user-uploaded scripts so your mileage will vary. If you play one of the more popular MUDs then you will likely find several scripts that help you. There are those who do generic or utility scripts. The Package Library is intended to be a more robust alternative to the Finished Scripts forum.

If there is particular feature that you're looking for in the Library post it here, as Zugg is very keen on customer feedback.
_________________
Asati di tempari!
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