EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Completed (https://www.eqemulator.org/forums/forumdisplay.php?f=633)
-   -   Announcement Script (https://www.eqemulator.org/forums/showthread.php?t=36979)

Kingly_Krab 06-20-2013 11:27 AM

Announcement Script
 
This script is pretty handy, you can use /broadcast or implement this script on an NPC and announce things to the entire server in a Green text, you could use this to announce events or just to notify people of something in a rather eye-popping text, rather than a bland yellow. It is rather simple, it utilizes quest::gmsay to send a message server wide, script below.

P.S. It is currently for GMs only, but you can just take out the status check if you want everyone to use it.

Code:

sub EVENT_SAY
{
        if($status >= 200)
        {
                quest::gmsay("$name Announces: $text", 14, 1, 0, 0);
        }
}


Dunge0nMastr 06-20-2013 12:19 PM

#we #color #text
in game can do the same thing

or alternatively for scripts, using quest::we(#color,"Text");
or quest::ze(#color,"Text"); (for zone only).

Dunge0nMastr 06-20-2013 12:21 PM

Quote:

0 - white
1 - gray
2 - dark green
3 - gray
4 - light blue
5 - light purple
6 - grey
7 - white
8 - grey
9 - grey
10 - white
11 - grey
12 - light silver
13 - red
14 - light green
15 - yellow
16 - dark blue
17 - grey
18 - cyan
257 - darkish purple
258 - lighter cyan
259 - green, light
260 - ooc green, slightly lighter
261 - ooc green, slightly lighter
263 - blue, emote/spell
264 - blue emote, filters under spells
269 - yellow, filters under broadcast
270 - blue, filters under broadcast
271 - white, filters under spells
272 - white, filters under broadcast
300 - odd blue color
315 maroon
pulled from wiki for the color #s

Kingly_Krab 06-20-2013 12:29 PM

I know all of this, I just thought it was a pretty handy script, can't a man post a script in peace?

Dunge0nMastr 06-20-2013 12:42 PM

just seemed a bit wordy :P

Post away :D

Kingly_Krab 06-20-2013 12:45 PM

Not everyone in the community quite understands the ins and outs of coding, thus why I posted this, some may not know all the commands but may know the basics of adding a script, but not modifying it, or nothing at all thus why I explained what it did, how you could use it, how you could modify it and how you could use /broadcast rather than this script. Just trying to simplify things for people, I know I hate getting something and having no idea what it's for, haha.

Aquaojo 06-19-2015 06:48 AM

Oops - necro'd for no good reason. Found answer.

Kingly_Krab 06-19-2015 09:38 PM

What was your question? It may help someone else.

Shendare 06-19-2015 10:13 PM

https://imgs.xkcd.com/comics/wisdom_of_the_ancients.png

https://xkcd.com/979/

Kingly_Krab 06-19-2015 10:55 PM

Exactly, haha, thank you.

provocating 06-20-2015 09:15 AM

Quote:

Originally Posted by Shendare (Post 241101)

Good one Shendare.


All times are GMT -4. The time now is 03:34 PM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.