diff options
Diffstat (limited to 'npc/commands/event.txt')
-rw-r--r-- | npc/commands/event.txt | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/npc/commands/event.txt b/npc/commands/event.txt index 48dd5bef5..fe5c39b78 100644 --- a/npc/commands/event.txt +++ b/npc/commands/event.txt @@ -57,6 +57,9 @@ function script sClear { // Simpler events $PATRICK_DAYCTRL=0; $PATRICK_DAYMAX=0; + DelAccRegFromEveryPlayer("#PATRICK_DAY"); + DelAccRegFromEveryPlayer("#PATRICK_CTRL"); + DelAccRegFromEveryPlayer("#TMW2_LOGINBONUS"); // We must remove any event drop charcommand("@reloadmobdb"); @@ -137,6 +140,7 @@ function script GlobalEventMenu { menu l("Disable event"), -, l("Enable Valentine Day"), -, + l("Enable St. Patrick Day"), -, l("Enable Easter"), -, l("Enable Worker's Day"), -, l("Enable Christmas"), -, @@ -149,8 +153,17 @@ function script GlobalEventMenu { case 2: set $EVENT$, "Valentine"; $@VALENTINE_LOVELETTER = htnew(); $@VALENTINE_GIFTSTACKS = htnew(); logmes "Enabled VALENTINE DAY event.", LOGMES_ATCOMMAND; break; - case 3: sEaster(); break; - case 4: + case 3: + $EVENT$="St. Patrick"; + $@PATRICK_DAYMAX=31; + enablenpc "sPatrick"; + enablenpc "Patrick Saulc"; + enablenpc "St. Patrick Gold Pot"; + donpcevent "St. Patrick Gold Pot::OnForcedMove"; + logmes "Enabled ST. PATRICK DAY event (until day 31).", LOGMES_ATCOMMAND; + break; + case 4: sEaster(); break; + case 5: set $EVENT$, "Worker Day"; logmes "Enabled WORKERS DAY event.", LOGMES_ATCOMMAND; /* @@ -158,16 +171,16 @@ function script GlobalEventMenu { debugmes "Snakes are now dropping Pearls."; */ break; - case 5: + case 6: logmes "Enabled CHRISTMAS event.", LOGMES_ATCOMMAND; query_sql("DELETE FROM `quest` WHERE `quest_id` = '"+SQuest_Christmas+"'"); sChristmas(); break; - case 6: + case 7: $EVENT$=any("Demure Birthday", "Blame Saulc"); dispbottom("Maybe in future this increases everyone attack speed? Well, for now,"); dispbottom("This is not actually an event, it just lower prices at Lua GM shop."); break; - case 7: DelItemFromEveryPlayer(MurdererCrown); break; + case 8: DelItemFromEveryPlayer(MurdererCrown); break; } return; |