From 3bd0a73678e433ee8a9256f9aaf23db1ce03e1c7 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 13 Aug 2021 10:48:27 -0300 Subject: Friday 13th event by Hocus --- npc/annuals/fathertime.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'npc/annuals/fathertime.txt') diff --git a/npc/annuals/fathertime.txt b/npc/annuals/fathertime.txt index bb2361a1..b813eaa7 100644 --- a/npc/annuals/fathertime.txt +++ b/npc/annuals/fathertime.txt @@ -12,6 +12,28 @@ OnClock0000: initnpctimer; end; +OnMinute13: + if (gettime(GETTIME_WEEKDAY) == FRIDAY && gettime(GETTIME_DAYOFMONTH) == 13) { + areamonster("009-1", 20, 20, + getmapinfo(MAPINFO_SIZE_X, "009-1"), getmapinfo(MAPINFO_SIZE_Y, "009-1"), + "Friday", FridayCat, any(1,3), "#HolidayConfig::OnFriday"); + areamonster("020-1", 20, 20, + getmapinfo(MAPINFO_SIZE_X, "009-1"), getmapinfo(MAPINFO_SIZE_Y, "009-1"), + "Friday", FridayCat, any(1,3), "#HolidayConfig::OnFriday"); + areamonster("001-1", 20, 20, + getmapinfo(MAPINFO_SIZE_X, "009-1"), getmapinfo(MAPINFO_SIZE_Y, "009-1"), + "Friday", FridayCat, any(1,3), "#HolidayConfig::OnFriday"); + } + end; + +OnFriday: + if (!playerattached()) end; + getmapxy(.@m$, .@x, .@y, 0); + sleep2(rand(500, 1200)); // Plenty time to move away + if (gettime(GETTIME_WEEKDAY) == FRIDAY && gettime(GETTIME_DAYOFMONTH) == 13) + monster .@m$, .@x, .@y, "JackO", JackO, 1; + end; + OnTimer1000: // There are no NPC timers ongoing, loop forever if (!htsize(.evtc)) { -- cgit v1.2.3-70-g09d2