From b88361918970a261683cf84e841ddd0b9cd94137 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 6 Mar 2019 12:36:28 -0300 Subject: Send in #world messages about EXP/DROP rate events begin/end. --- npc/commands/rate-management.txt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'npc/commands') 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)); -- cgit v1.2.3-60-g2f50