summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2024-01-23 19:19:08 -0300
committerJesusaves <cpntb1@ymail.com>2024-01-23 19:19:08 -0300
commita18d7f02922a178d4331baa137483c04af574518 (patch)
tree556b04a6c50a9d069cf9bd428b42ceedbeae9502
parentbc74b8853844cd9bceb5727fb571788414f33604 (diff)
downloadserverdata-a18d7f02922a178d4331baa137483c04af574518.tar.gz
serverdata-a18d7f02922a178d4331baa137483c04af574518.tar.bz2
serverdata-a18d7f02922a178d4331baa137483c04af574518.tar.xz
serverdata-a18d7f02922a178d4331baa137483c04af574518.zip
[untested] Losing the Monster King showdown will LOWER exp rate on server.
This was done before on Nivalis Liberation Day, but was 50% and lasted 24 hours. This one is a 5% for a hour, but it can be stacked and repeated.
-rw-r--r--npc/026-7/boss.txt4
-rw-r--r--npc/commands/rate-management.txt2
2 files changed, 5 insertions, 1 deletions
diff --git a/npc/026-7/boss.txt b/npc/026-7/boss.txt
index 9ad30f33a..ecf130fb8 100644
--- a/npc/026-7/boss.txt
+++ b/npc/026-7/boss.txt
@@ -214,6 +214,10 @@ OnTimer10000:
} else {
// We actually lost?!
kamibroadcast("The MONSTER KING has WON the showdown!", "WORLD HEART");
+ // TODO: Apply some kind of penalty, like lowering EXP rate in 1%
+ $@EXP_EVENT=-5;
+ $@EXP_EVENT_TIME=1;
+ donpcevent "@exprate::OnPlayerCall";
}
stopnpctimer;
//end;
diff --git a/npc/commands/rate-management.txt b/npc/commands/rate-management.txt
index 14c45509d..1dbf7efef 100644
--- a/npc/commands/rate-management.txt
+++ b/npc/commands/rate-management.txt
@@ -116,7 +116,7 @@ OnPlayerCall:
*/
// $@EXP_EVENT will determine the boost and should not be above 25%
// Default duration is one hour, or whatever $@EXP_EVENT_TIME is
- $@EXP_EVENT=limit(0, $@EXP_EVENT, 100);
+ $@EXP_EVENT=limit(-5, $@EXP_EVENT, 100);
$@EXP_EVENT+=.current_rate;
if ($@EXP_EVENT_TIME > 6 && gettime(4) != SATURDAY && gettime(3)) {
consolewarn("Tried to set EXP Event Time to %d hours, but max is 6", $@EXP_EVENT_TIME);