|
horks Apprentice
Joined: 20 Jul 2001 Posts: 127 Location: USA
|
Posted: Mon May 03, 2004 8:46 pm
Room Color |
I'm looking for something I can put into an alias to change the Room Color on the map. I'm digging through the help file, but not finding anything. Any help? thanks.
|
|
|
|
horks Apprentice
Joined: 20 Jul 2001 Posts: 127 Location: USA
|
Posted: Mon May 03, 2004 8:52 pm |
hmm, okay, i found a function that sounds like it might do what I want:
Code: |
roomcol
Syntax: %roomcol([vNum], [color])
Return or set the color of a room. The Color can be a string
like "red", "blue", etc. Or it can be an RGB value in the format
$RRGGBB where each value is a hexadecimal value. For example,
$FF0000 sets the color to all red. If vNum is omitted, the current
room is used.
|
What sort of command do i use to activate this? |
|
|
|
Guede Wanderer
Joined: 30 Nov 2003 Posts: 65 Location: United Kingdom
|
Posted: Mon May 03, 2004 8:53 pm |
Hi,
#ALIAS croom {%maplocked(0);%roomcol(,%1);%maplocked(1)}
Type croom <colour> to colour the room for example: croom yellow will make the room you are currently in (the one the mapper says you are in) yellow.
HTH
Guede |
|
|
|
horks Apprentice
Joined: 20 Jul 2001 Posts: 127 Location: USA
|
Posted: Mon May 03, 2004 9:10 pm |
awsome! thanks. Your alias has one undesired effect, and that's sending the results of those functions to the mud. In the help file for %maplocked, there is a sample that uses the function in a #NOOP command. doing this, removes the function resules from being sent.
Thanks again for your help |
|
|
|
|
|