Home
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Details for command announce:
* announce "Message",<flag>{,<color>};
This command will broadcast a message to all or most players, similar to
@kami/@kamib GM commands.
The region the broadcast is heard in and the color the message will come up as
will be determined by the flags:
announce "This will be shown to everyone at all in yellow.",0;
The flag values are coded as constants in db/const.txt to make them easier to use:
- bc_all: Broadcast message is sent server-wide
- bc_map: Message is sent to everyone in the same map
- bc_area: Message is sent to players in the vecinity of the source.
- bc_self: Message is sent only to current player.
- bc_npc: 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)
- bc_yellow: The default is to send broadcasts in yellow color.
- bc_blue: Alternate broadcast is displayed in blue color.
The optional parameter, color, allows usage of broadcasts in any custom color.
The color parameter is a single number which can be in hexadecimal notation.
For example:
announce "This will be shown to everyone at all in yellow.",bc_all,0xFFFF00;
Will display a global announce in yellow. The color format is in RGB (0xRRGGBB).
Using this for private messages to players is probably not that good an idea,
but it can be used instead in NPCs to "preview" an announce.
Examples:
> announce "This is my message just for you",bc_blue|bc_self;
This will be a private message to the player using the NPC that made the annonucement
> announce "This is my message just for you people here",bc_area;
This wiLl be shown on everyones screen that is in sight of the NPC.