summaryrefslogtreecommitdiff
path: root/npc/commands/event.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-02-09 00:19:39 -0200
committerJesusaves <cpntb1@ymail.com>2019-02-09 00:19:39 -0200
commit5dac604d77833adad6bd127218153397ddce299e (patch)
tree7a529562e2556c166dd76590d374019028580507 /npc/commands/event.txt
parent9b637bc4da3ba580415c51897a21bc90b60aad1f (diff)
downloadserverdata-5dac604d77833adad6bd127218153397ddce299e.tar.gz
serverdata-5dac604d77833adad6bd127218153397ddce299e.tar.bz2
serverdata-5dac604d77833adad6bd127218153397ddce299e.tar.xz
serverdata-5dac604d77833adad6bd127218153397ddce299e.zip
Lilica, the Easter Ending NPC - automatic enable/disalbe
Diffstat (limited to 'npc/commands/event.txt')
-rw-r--r--npc/commands/event.txt15
1 files changed, 10 insertions, 5 deletions
diff --git a/npc/commands/event.txt b/npc/commands/event.txt
index 12ea6f301..9631f7d73 100644
--- a/npc/commands/event.txt
+++ b/npc/commands/event.txt
@@ -47,11 +47,16 @@ function script GlobalEventMenu {
// WARNING, possibly dangerous.
function sClear {
- // Delete all event-only item from every player
- DelItemFromEveryPlayer(GoldenEasteregg);
- DelItemFromEveryPlayer(GoldenEasteregg);
- DelItemFromEveryPlayer(ClosedChristmasBox);
- DelItemFromEveryPlayer(OpenedChristmasBox);
+ // Delete all Easter Stuff
+ if ($EVENT$ != "Easter") {
+ DelItemFromEveryPlayer(GoldenEasteregg);
+ DelItemFromEveryPlayer(GoldenEasteregg);
+ DelItemFromEveryPlayer(ClosedChristmasBox);
+ DelItemFromEveryPlayer(OpenedChristmasBox);
+ disablenpc "Lilica#final";
+ } else {
+ enablenpc "Lilica#final";
+ }
// Delete all Christmas stuff
if ($EVENT$ != "Christmas") {