summaryrefslogtreecommitdiff
path: root/npc/commands/rate-management.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-03-06 12:36:28 -0300
committerJesusaves <cpntb1@ymail.com>2019-03-06 12:36:28 -0300
commitb88361918970a261683cf84e841ddd0b9cd94137 (patch)
treed67a02cd36e8ed5cafd1c437128bfa711f055cc3 /npc/commands/rate-management.txt
parentcc482f5f648573ea9d9da2899876262837f04126 (diff)
downloadserverdata-b88361918970a261683cf84e841ddd0b9cd94137.tar.gz
serverdata-b88361918970a261683cf84e841ddd0b9cd94137.tar.bz2
serverdata-b88361918970a261683cf84e841ddd0b9cd94137.tar.xz
serverdata-b88361918970a261683cf84e841ddd0b9cd94137.zip
Send in #world messages about EXP/DROP rate events begin/end.
Diffstat (limited to 'npc/commands/rate-management.txt')
-rw-r--r--npc/commands/rate-management.txt12
1 files changed, 10 insertions, 2 deletions
diff --git a/npc/commands/rate-management.txt b/npc/commands/rate-management.txt
index 52757227f..8d5daa2e7 100644
--- a/npc/commands/rate-management.txt
+++ b/npc/commands/rate-management.txt
@@ -12,6 +12,7 @@
charcommand("@reloadmobdb"); // this is on purpose (callable without RID)
//charcommand("@reloadquestdb");
SeasonReload(1);
+ channelmes("#world", "The EXP Rate Bonus is now over.");
}
function remainingTime {
@@ -42,7 +43,10 @@ OnCall:
SeasonReload(1);
initnpctimer; // start counting
- announce strcharinfo(0)+" increased experience rate to "+str(.@new_rate)+"%. It will only last "+str(FuzzyTime(time_from_hours(.max_hours), 2, 2))+"!", bc_all;
+ .@msg$=strcharinfo(0)+" increased experience rate to "+str(.@new_rate)+"%. It will only last "+str(FuzzyTime(time_from_hours(.max_hours), 2, 2))+"!";
+
+ announce .@msg$, bc_all;
+ channelmes("#world", .@msg$);
//dispbottom l("You successfully set the exp rate to @@%. It will reset to @@% (default value) in @@.",
// .@new_rate, .original_exp_rate, FuzzyTime(time_from_hours(.max_hours), 2, 2));
@@ -132,6 +136,7 @@ OnReload:
setbattleflag("item_rate_card_boss", 100);
charcommand("@reloadmobdb"); // this is on purpose (callable without RID) - no idea what is the purpose
SeasonReload(1);
+ channelmes("#world", "The Drop Rate Bonus is now over.");
}
function remainingTime {
@@ -170,7 +175,10 @@ OnCall:
SeasonReload(1);
initnpctimer; // start counting
- announce strcharinfo(0)+" increased drop rates to "+str(.@new_rate)+"%. It will only last "+str(FuzzyTime(time_from_hours(.max_hours), 2, 2))+"!", bc_all;
+ .@msg$=strcharinfo(0)+" increased drop rates to "+str(.@new_rate)+"%. It will only last "+str(FuzzyTime(time_from_hours(.max_hours), 2, 2))+"!";
+
+ announce .@msg$, bc_all;
+ channelmes("#world", .@msg$);
//dispbottom l("You successfully set the drop rate to @@%. It will reset to @@% (default value) in @@.",
// .@new_rate, .org_dcn, FuzzyTime(time_from_hours(.max_hours), 2, 2));