summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-08-13 10:48:27 -0300
committerJesusaves <cpntb1@ymail.com>2021-08-13 10:48:27 -0300
commit3bd0a73678e433ee8a9256f9aaf23db1ce03e1c7 (patch)
treeeffa3002680cd58a63775c0c7faa344598eff2a4
parenta81d57cb02f1690f11d3ad3408d673ee878bf37a (diff)
downloadserverdata-3bd0a73678e433ee8a9256f9aaf23db1ce03e1c7.tar.gz
serverdata-3bd0a73678e433ee8a9256f9aaf23db1ce03e1c7.tar.bz2
serverdata-3bd0a73678e433ee8a9256f9aaf23db1ce03e1c7.tar.xz
serverdata-3bd0a73678e433ee8a9256f9aaf23db1ce03e1c7.zip
Friday 13th event by Hocus
-rw-r--r--db/pre-re/mob_db.conf48
-rw-r--r--npc/annuals/fathertime.txt22
2 files changed, 70 insertions, 0 deletions
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)) {