summaryrefslogtreecommitdiff
path: root/world/map/npc/botcheck
diff options
context:
space:
mode:
authorVincent Petithory <vincent.petithory@gmail.com>2013-06-11 01:04:13 +0200
committerVincent Petithory <vincent.petithory@gmail.com>2013-06-11 01:04:13 +0200
commit862bc17e83cc2e0f94bb5c70c76a1530e21f11a6 (patch)
treea5162b41cad5185850c00db6beede30c1b15719d /world/map/npc/botcheck
parent575f4774d34648e8847b244ee279dd2e0cf35325 (diff)
downloadclassic-serverdata-862bc17e83cc2e0f94bb5c70c76a1530e21f11a6.tar.gz
classic-serverdata-862bc17e83cc2e0f94bb5c70c76a1530e21f11a6.tar.bz2
classic-serverdata-862bc17e83cc2e0f94bb5c70c76a1530e21f11a6.tar.xz
classic-serverdata-862bc17e83cc2e0f94bb5c70c76a1530e21f11a6.zip
GM Broadcasts NPC: record and display additional info...
Record the name of the GM/Admin who scheduled the broadcast and display it where relevant.
Diffstat (limited to 'world/map/npc/botcheck')
-rw-r--r--world/map/npc/botcheck/announcements.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/world/map/npc/botcheck/announcements.txt b/world/map/npc/botcheck/announcements.txt
index ec0b9f6c..34e98273 100644
--- a/world/map/npc/botcheck/announcements.txt
+++ b/world/map/npc/botcheck/announcements.txt
@@ -7,6 +7,7 @@
// $@GMSA_STATUS values:
// 0: Broadcasts not running
// 1: Broadcasts running
+// $@GMSA_NAME$: the GM/Admin who created the broadcast, if any
// $@GMSA_MSG$: the message to be broadcasted
// $@GMSA_MAX: the number of times the broadcast will be performed, if > 0
// $@GMSA_TICK: broadcast the message every $@GMSA_TICK hours
@@ -28,7 +29,7 @@ L_InfoBroadcast:
set @next_broadcast_m, (@next_broadcast_ts - @next_broadcast_h*3600)/60;
mes "[GM Scheduled Broadcasts Board]";
- mes "The current message is broadcasted every " + $@GMSA_TICK + " hour(s):";
+ mes $@GMSA_NAME$ + " scheduled the current message, every " + $@GMSA_TICK + " hour(s):";
mes $@GMSA_MSG$;
next;
if (@next_broadcast_h > 0)
@@ -129,6 +130,7 @@ S_StopBroadcast:
stopnpctimer;
setnpctimer 0;
set $@GMSA_STATUS, 0;
+ set $@GMSA_NAME$, "";
set $@GMSA_MSG$, "";
set $@GMSA_TICK, 0;
set $@GMSA_MAX, 0;
@@ -143,6 +145,7 @@ L_StartBroadcast:
if ($@GMSA_STATUS == 1)
goto L_Abort;
set $@GMSA_STATUS, 1;
+ set $@GMSA_NAME$, strcharinfo(0);
set $@GMSA_CURRENT_TICK, 0;
initnpctimer;
mes "Done.";
@@ -150,7 +153,7 @@ L_StartBroadcast:
L_Abort:
mes "[GM Scheduled Broadcasts Board]";
- mes "Another GM has created a scheduled broadcast just before you, hence yours will abort.";
+ mes $@GMSA_NAME$ + " has created a scheduled broadcast just before you, hence yours will abort.";
goto L_Close;
L_Close: