diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-08-13 10:48:27 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-08-13 10:48:27 -0300 |
commit | 3bd0a73678e433ee8a9256f9aaf23db1ce03e1c7 (patch) | |
tree | effa3002680cd58a63775c0c7faa344598eff2a4 /npc | |
parent | a81d57cb02f1690f11d3ad3408d673ee878bf37a (diff) | |
download | serverdata-3bd0a73678e433ee8a9256f9aaf23db1ce03e1c7.tar.gz serverdata-3bd0a73678e433ee8a9256f9aaf23db1ce03e1c7.tar.bz2 serverdata-3bd0a73678e433ee8a9256f9aaf23db1ce03e1c7.tar.xz serverdata-3bd0a73678e433ee8a9256f9aaf23db1ce03e1c7.zip |
Friday 13th event by Hocus
Diffstat (limited to 'npc')
-rw-r--r-- | npc/annuals/fathertime.txt | 22 |
1 files changed, 22 insertions, 0 deletions
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)) { |