summaryrefslogtreecommitdiff
path: root/npc/commands
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-18 08:07:11 -0300
committerJesusaves <cpntb1@ymail.com>2020-05-18 08:07:11 -0300
commit677113d9eda0586138d86e1579f34af1df6a3ff0 (patch)
tree254794a82e01302e283f117fbc9084c1b3b52134 /npc/commands
parent6f921acbe3071b90f00bbdce87c4787327c17ff7 (diff)
downloadserverdata-677113d9eda0586138d86e1579f34af1df6a3ff0.tar.gz
serverdata-677113d9eda0586138d86e1579f34af1df6a3ff0.tar.bz2
serverdata-677113d9eda0586138d86e1579f34af1df6a3ff0.tar.xz
serverdata-677113d9eda0586138d86e1579f34af1df6a3ff0.zip
Really minor optimization during Christmas
Diffstat (limited to 'npc/commands')
-rw-r--r--npc/commands/event.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/commands/event.txt b/npc/commands/event.txt
index 605eae26b..af1081391 100644
--- a/npc/commands/event.txt
+++ b/npc/commands/event.txt
@@ -21,6 +21,8 @@ function script sClear {
if ($EVENT$ != "Christmas") {
$XMAS_MONEY=0; // Golbarez
$XMAS_GIFTS=0; // Chief
+ DelItemFromEveryPlayer(ClosedChristmasBox);
+ DelItemFromEveryPlayer(OpenedChristmasBox);
} else if ($EVENT$ == "Christmas") {
DelAccRegFromEveryPlayer("#XMAS_LOGINBONUS");
removemapmask "003-1", MASK_CHRISTMAS;
@@ -85,8 +87,6 @@ function script sClear {
DelAccRegFromEveryPlayer("#THANKS_STREAK");
// Not so simple but still needs cleanup.
- DelItemFromEveryPlayer(ClosedChristmasBox);
- DelItemFromEveryPlayer(OpenedChristmasBox);
DelItemFromEveryPlayer(Event1HSword);
DelItemFromEveryPlayer(Event2HSword);
DelItemFromEveryPlayer(EventBow);