|
Kaioshin Beginner
Joined: 28 Sep 2002 Posts: 26 Location: USA
|
Posted: Sun Jul 06, 2003 6:00 pm
Random Color trigger/alias |
Greetings Zuggsters,
The normal command cc, is the command to talk with members of my guild, i want to set up a random color trig or alias so that if i type ccc or cc1 it will spit out random colors.
For example You guildchat hello. Everyone in my guild sees this as cyan.
But I want help creating something that if i type 1cc...it'll come out in multi colors.
colors are &@&l for blue, &@&r for red, &@&y for yell &@&w for white, and &@&c for cyan.
I also want to be able to input which colors i want to use...like i only want to use 2 colors, or 3...and so on! |
|
|
|
megamog75 Enchanter
Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: Sun Jul 06, 2003 6:30 pm |
Randomly coloring things you say is talked about quite often and is in the help files, I tjust might be one of the eaisiest things to do.
What I get from you is that you whant it so that it does this:
You guildchat hello
someone guildchats hello
but do it randomly? or did you want it to color word by word not letter by letter or did you mean person by person? |
|
|
|
Kaioshin Beginner
Joined: 28 Sep 2002 Posts: 26 Location: USA
|
Posted: Mon Jul 07, 2003 6:35 pm |
thxs for your response, as you've explained...
I would like letter by letter, same as the example you threw in... |
|
|
|
Kaioshin Beginner
Joined: 28 Sep 2002 Posts: 26 Location: USA
|
Posted: Wed Jul 09, 2003 5:45 am |
Greetings Zuggsters,
I don't work well with reading help files, they are like in another language or something, truthfully, I looked for it and dont know how to do it...maybe if u can post code/explain...i could actually learn something [8D] |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Wed Jul 09, 2003 11:35 pm |
#CLASS GuildChatColorer
#VAR cccColors {l|r|y|w|c}
#VAR cccLine {} {}
#AL ccc {#VAR cccLine {%-1};#SENDP {cc };#WHILE (@cccLine) {#SENDP {"&@&"%item(@cccColors,%random(1,%numitems(@cccColors)))%left(@cccLine,1)};cccLine=%delete(@cccLine,1,1)};#CR}
#CLASS 0
There you go you simply add the letter code for any other colors you want. You can duplicate letter codes if you want to adjust the frequency at which a given color appears. |
|
|
|
Kaioshin Beginner
Joined: 28 Sep 2002 Posts: 26 Location: USA
|
Posted: Thu Jul 10, 2003 4:06 am |
Thxs for posting the code, but its not working, not sure if i did anything wrong, I copied the code and pasted it, but its not going through [|)].
Hoping to hear from you again, and anyone else :) |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Fri Jul 11, 2003 12:27 am |
It seems this is caused by an obscure bug in zMud.
If you go into the settings editor and find the line:
#SENDP {cc }
in the ccc alias and change it to
#SENDP "cc "
everything should be right. |
|
|
|
Kaioshin Beginner
Joined: 28 Sep 2002 Posts: 26 Location: USA
|
Posted: Fri Jul 11, 2003 1:37 am |
thanks alot Vijilante, works perfect!
|
|
|
|
|
|