diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-03-14 18:31:10 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-03-14 18:31:10 -0300 |
commit | 25e0439638f1f5a5b686c86009f539b49277efc5 (patch) | |
tree | 0706e1ed5452e676a99e1aff8b89c01243f1ffda /npc/commands | |
parent | f7c53b6945a84c02120b45c99cfc11cfd36c0545 (diff) | |
download | serverdata-25e0439638f1f5a5b686c86009f539b49277efc5.tar.gz serverdata-25e0439638f1f5a5b686c86009f539b49277efc5.tar.bz2 serverdata-25e0439638f1f5a5b686c86009f539b49277efc5.tar.xz serverdata-25e0439638f1f5a5b686c86009f539b49277efc5.zip |
St. Patrick Gold Pot - Spin it today, and get lucky!
(Not properly balanced)
Diffstat (limited to 'npc/commands')
-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; |