diff options
author | Jesusaves <cpntb1@ymail.com> | 2025-02-28 21:40:36 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2025-02-28 21:40:36 -0300 |
commit | dae3bcd398ce02bb6320466f4dfbccfd6b0ad45d (patch) | |
tree | 79f3a872ff7a5103d37792ec05e915a3d6cc6f4b | |
parent | 242ba59915e5139643a2127d9e8aa37159e31f7f (diff) | |
download | serverdata-dae3bcd398ce02bb6320466f4dfbccfd6b0ad45d.tar.gz serverdata-dae3bcd398ce02bb6320466f4dfbccfd6b0ad45d.tar.bz2 serverdata-dae3bcd398ce02bb6320466f4dfbccfd6b0ad45d.tar.xz serverdata-dae3bcd398ce02bb6320466f4dfbccfd6b0ad45d.zip |
Fix the bug in Moubootaur Legends Anniversary. Maybe.
-rw-r--r-- | npc/commands/event.txt | 3 | ||||
-rw-r--r-- | npc/functions/event.txt | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/npc/commands/event.txt b/npc/commands/event.txt index 2100e341e..f845f942a 100644 --- a/npc/commands/event.txt +++ b/npc/commands/event.txt @@ -69,6 +69,9 @@ function script sClear { if ($EVENT$ == "Anniversary") { $BCONFB_EXPR-=50; kamibroadcast(sprintf("EXP Rate changed from %d%% to %d%%", $BCONFB_EXPR+50, $BCONFB_EXPR)); + .@curio = getvariableofnpc(.current_rate, "@exprate") - 50; + set getvariableofnpc(.current_rate, "@exprate"), .@curio; + donpcevent "@exprate::OnReload"; } // Nullify Regnum Blessing diff --git a/npc/functions/event.txt b/npc/functions/event.txt index 70e87ea77..d04f6ca92 100644 --- a/npc/functions/event.txt +++ b/npc/functions/event.txt @@ -849,8 +849,12 @@ OnClock0000: // Begin the event if (.@d == .tmw2day_stday) { kamibroadcast("Moubootaur Legends Anniversary Event begun!"); - if ($EVENT$ != "Anniversary") + if ($EVENT$ != "Anniversary") { $BCONFB_EXPR+=50; + .@curio = getvariableofnpc(.current_rate, "@exprate") + 50; + set getvariableofnpc(.current_rate, "@exprate"), .@curio; + donpcevent "@exprate::OnReload"; + } $EVENT$="Anniversary"; } // End the event the day after |