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 --- db/pre-re/mob_db.conf | 48 ++++++++++++++++++++++++++++++++++++++++++++++ npc/annuals/fathertime.txt | 22 +++++++++++++++++++++ 2 files changed, 70 insertions(+) diff --git a/db/pre-re/mob_db.conf b/db/pre-re/mob_db.conf index 55ed858e..21cdf78a 100644 --- a/db/pre-re/mob_db.conf +++ b/db/pre-re/mob_db.conf @@ -6955,4 +6955,52 @@ mob_db: ( RedNose: 10 } }, +{ + Id: 1163 + SpriteName: "FridayCat" + Name: "Friday" + Lv: 70 + Hp: 450 + Sp: 0 + Exp: 130 + JExp: 17 + AttackRange: 1 + Attack: [40, 45] + Def: 2 + Mdef: 7 + Stats: { + Str: 12 + Agi: 8 + Vit: 2 + Int: 1 + Dex: 25 + Luk: 1 + } + ViewRange: 9 + ChaseRange: 10 + Size: 1 + Race: 0 + Element: (1, 1) + Mode: { + CanMove: true + Looter: true + Aggressive: true + CanAttack: true + ChangeTargetMelee: true + ChangeTargetChase: true + } + MoveSpeed: 1300 + AttackDelay: 1500 + AttackMotion: 672 + DamageMotion: 480 + Drops: { + RubberBat: 10 + RealisticBrain: 5 + JarofBlood: 9 + PumpkinSeeds: 250 + TonoriDelight: 750 + Marshmallow: 1000 + CandyPumpkin: 1250 + } +}, ) 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-60-g2f50