diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-02-09 00:19:39 -0200 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-02-09 00:19:39 -0200 |
commit | 5dac604d77833adad6bd127218153397ddce299e (patch) | |
tree | 7a529562e2556c166dd76590d374019028580507 /npc | |
parent | 9b637bc4da3ba580415c51897a21bc90b60aad1f (diff) | |
download | serverdata-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')
-rw-r--r-- | npc/003-1/events.txt | 2 | ||||
-rw-r--r-- | npc/commands/event.txt | 15 |
2 files changed, 11 insertions, 6 deletions
diff --git a/npc/003-1/events.txt b/npc/003-1/events.txt index 66feed4f4..f270a1aff 100644 --- a/npc/003-1/events.txt +++ b/npc/003-1/events.txt @@ -4,7 +4,7 @@ // Description: // The NPCs on this file are for when events end. Must be manually enabled. -// Easte +// Easter 003-1,47,53,0 script Lilica#final NPC_EASTER,{ mesn; mesq l("Easter is over! I am the last chance to get rid of eggs!!"); 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") { |