summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2024-07-30 13:07:48 -0300
committerJesusaves <cpntb1@ymail.com>2024-07-30 13:07:48 -0300
commiteacc7a8967687e4a8a9189c695254883b4b9d3f2 (patch)
tree03fe1c599ff0f2c9f5f945fa811e32209fce9fe9
parent2e2cae36af800f6caab18e3d7dc463bba97db5d1 (diff)
downloadserverdata-eacc7a8967687e4a8a9189c695254883b4b9d3f2.tar.gz
serverdata-eacc7a8967687e4a8a9189c695254883b4b9d3f2.tar.bz2
serverdata-eacc7a8967687e4a8a9189c695254883b4b9d3f2.tar.xz
serverdata-eacc7a8967687e4a8a9189c695254883b4b9d3f2.zip
Refactor this slightly weird logic
-rw-r--r--npc/functions/seasons.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/npc/functions/seasons.txt b/npc/functions/seasons.txt
index b3f4ce80b..d29f2c378 100644
--- a/npc/functions/seasons.txt
+++ b/npc/functions/seasons.txt
@@ -125,10 +125,10 @@ function script sEaster {
addmonsterdrop(SmokeDragon, GoldenEasteregg, 7500);
addmonsterdrop(SmokeDragon, SilverEasteregg, 9000);
// Enable event
- if (playerattached()) {
+ if (getarg(0, true))
set $EVENT$, "Easter";
+ if (playerattached())
logmes "Enabled EASTER event.", LOGMES_ATCOMMAND;
- }
return;
}
@@ -218,7 +218,7 @@ function script SeasonReload {
if ($EVENT$ == "Valentine")
sValentine();
if ($EVENT$ == "Easter")
- sEaster();
+ sEaster(false);
$@SEASON=season();
initnpctimer("#SeasonCore");