<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.herc.ws/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.herc.ws/w/index.php?action=history&amp;feed=atom&amp;title=Announce</id>
		<title>Announce - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.herc.ws/w/index.php?action=history&amp;feed=atom&amp;title=Announce"/>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Announce&amp;action=history"/>
		<updated>2026-05-03T21:08:28Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21.11</generator>

	<entry>
		<id>https://wiki.herc.ws/w/index.php?title=Announce&amp;diff=388&amp;oldid=prev</id>
		<title>Via: Created page with &quot;Category:Script_Command ==Syntax== * announce &quot;Message&quot;,&lt;flag&gt;{,&lt;color&gt;}; ==Description== This command will broadcast a message to all or most players, similar to @kam...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Announce&amp;diff=388&amp;oldid=prev"/>
				<updated>2013-06-09T05:28:38Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/wiki/Category:Script_Command&quot; title=&quot;Category:Script Command&quot;&gt;Category:Script_Command&lt;/a&gt; ==Syntax== * &lt;a href=&quot;/wiki/Announce&quot; title=&quot;Announce&quot;&gt;announce&lt;/a&gt; &amp;quot;Message&amp;quot;,&amp;lt;flag&amp;gt;{,&amp;lt;color&amp;gt;}; ==Description== This command will broadcast a message to all or most players, similar to @kam...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Script_Command]]&lt;br /&gt;
==Syntax==&lt;br /&gt;
* [[announce]] &amp;quot;Message&amp;quot;,&amp;lt;flag&amp;gt;{,&amp;lt;color&amp;gt;};&lt;br /&gt;
==Description==&lt;br /&gt;
This command will broadcast a message to all or most players, similar to @kami/@kamib GM commands.&lt;br /&gt;
The region the broadcast is heard in and the color the message will come up as will be determined by the flags.&lt;br /&gt;
&lt;br /&gt;
Using this command for private messages to players is probably not that good an idea, but it can be used instead in NPCs to &amp;quot;preview&amp;quot; an announce.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
===Flag===&lt;br /&gt;
The flag values are coded as constants in db/const.txt to make them easier to use:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Flag !! Value !! Description&lt;br /&gt;
|-&lt;br /&gt;
| bc_all || 0 || Broadcast message is sent server-wide.&lt;br /&gt;
|-&lt;br /&gt;
| bc_map || 1 || Message is sent to everyone in the same map.&lt;br /&gt;
|-&lt;br /&gt;
| bc_area || 2 || Message is sent to players in the vicinity of the source.&lt;br /&gt;
|-&lt;br /&gt;
| bc_self || 3 || Message is sent only to current player.&lt;br /&gt;
|-&lt;br /&gt;
| bc_npc || 8 || Broadcast source is the npc, not the player attached to the script (useful when a player is not attached or the message should be sent to those nearby the npc)&lt;br /&gt;
|-&lt;br /&gt;
| bc_yellow || 0 || The default is to send broadcasts in yellow color.&lt;br /&gt;
|-&lt;br /&gt;
| bc_blue || 16 || Alternate broadcast is displayed in blue color.&lt;br /&gt;
|}&lt;br /&gt;
===Color===&lt;br /&gt;
The optional parameter, color, allows usage of broadcasts in any custom color.&lt;br /&gt;
The color parameter is a single number which can be in hexadecimal notation.&lt;br /&gt;
For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
//This will display a global announce in yellow. The color format is in RGB (0xRRGGBB).&lt;br /&gt;
announce &amp;quot;This will be shown to everyone at all in yellow.&amp;quot;,bc_all,0xFFFF00;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
announce &amp;quot;This will be shown to everyone at all in yellow.&amp;quot;,0;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
//This will be a private message to the player using the NPC that made the announcement&lt;br /&gt;
announce &amp;quot;This is my message just for you&amp;quot;,bc_blue|bc_self;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
//This will be shown on everyone's screen that is in sight of the NPC.&lt;br /&gt;
announce &amp;quot;This is my message just for you people here&amp;quot;,bc_area;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Via</name></author>	</entry>

	</feed>