From f7c53b6945a84c02120b45c99cfc11cfd36c0545 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 14 Mar 2019 17:24:38 -0300 Subject: Add the NPC with information about St. Patrick Day. --- npc/003-1/events.txt | 42 ++++++++++++++++++++++++++++++++++++++++++ npc/functions/event.txt | 2 ++ 2 files changed, 44 insertions(+) (limited to 'npc') diff --git a/npc/003-1/events.txt b/npc/003-1/events.txt index 71c2bdba1..d5888768c 100644 --- a/npc/003-1/events.txt +++ b/npc/003-1/events.txt @@ -151,6 +151,48 @@ OnInit: + + + +// St. Patrick Day +003-1,47,53,0 script Patrick Saulc NPC_WEIRDGREEN,{ + mesn; + mesc l("It's St. Patrick Event!"), 3; + mes l("At 00:00, 06:00, 12:00, 15:00, 18:00 and 21:00 server time"); + mes l("Several special clovers will show up at forests."); + next; + mes l("They have 10x more chance to drop a @@, so it is a great deal!", getitemlink(FourLeafClover)); + mes l("Also, hidden in a forest which is not either hot or cold, is the Gold Pot Cauldron..."); + mes l("You can get daily something from it, but unless you're green like me, you will have no luck..."); + close; + +OnInit: + .sex = G_OTHER; + .distance = 5; + + disablenpc(.name$); + end; +} + + + + + + + + + + + + + + + + + + + + diff --git a/npc/functions/event.txt b/npc/functions/event.txt index 1b17b40b6..21bfc8444 100644 --- a/npc/functions/event.txt +++ b/npc/functions/event.txt @@ -156,6 +156,7 @@ OnClock0000: $EVENT$="St. Patrick"; $@PATRICK_DAYMAX=.patrick_endday; enablenpc "sPatrick"; + enablenpc "Patrick Saulc"; } // End the event the day after if (.@d == .patrick_endday+1) { @@ -164,6 +165,7 @@ OnClock0000: sClear(); $EVENT$=""; donpcevent "sPatrick::OnCleanUp"; + disablenpc "Patrick Saulc"; } } -- cgit v1.2.3-70-g09d2