From fe5196d6dc36e71c548cff0928b7fae335625d52 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 31 May 2020 20:05:24 +0000 Subject: Mob ID 1400 - Fortress Gate A stalwart with 200k HP Passive Guardian. It'll protect the Fortress Island. Destroying it is CRITICAL to conquer the town! (Death event will remove collision - aka. open the gate) (As we're using a workaround, though...) --- db/re/mob_db.conf | 19 +++++++++++++++++++ npc/025-1/ctrl.c | 6 +++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/db/re/mob_db.conf b/db/re/mob_db.conf index 104a00743..b42608da6 100644 --- a/db/re/mob_db.conf +++ b/db/re/mob_db.conf @@ -9997,6 +9997,25 @@ mob_db: ( // WARNING: ID 1250~1400 PERMANENTLY RESERVED - USE PROHIBTED // Reserved +{ + Id: 1400 + SpriteName: "FortressGate" + Name: "Fortress Gate" + Lv: 100 + Hp: 200000 + Exp: 10000 + Def: 100 + Mdef: 100 + Race: 3 + Element: (2, 1) + Mode: { + CanMove: false + CanAttack: false + } + WeaponAttacks: { + All: 6000 + } +}, { Id: 1493 SpriteName: "GameMaster" diff --git a/npc/025-1/ctrl.c b/npc/025-1/ctrl.c index 2e96f1c38..2d06d4378 100644 --- a/npc/025-1/ctrl.c +++ b/npc/025-1/ctrl.c @@ -12,7 +12,7 @@ // 1 - Unlocked // $@FORTRESS_STATUE = bitmask // 1,2,4,8... broken statues -// TODO: Use bg() - maybe with dummysd? +// TODO: Use bg() - maybe with dummysd? What will increase allies count? // TODO: mapwarp() everyone outside when FTCleanup(false) // TODO: Gate control during siege (not $FORTRESS_STATE). Gate monster. // TODO: Spawn the monster general for each statue. Count their deaths. @@ -20,6 +20,9 @@ // TODO: Record nÂș of victories. Strengthen the governor. // TODO: Provide a way to resume failed attempts. Move Phoenix inside. // TODO: Testing. Use setwall() instead of builtin collision? (Deprecates out NPC) +// TODO: NPCs from inside: Tolchi. Phoenix. Free Status Reset. Aeros Shop. Etc. +// TODO: Spawn inside and outside when siege begins. +// TODO: Heartbeat - (Re)Spawn monsters inside every X seconds // MAPFLAGS 025-1 mapflag zone MMO @@ -104,6 +107,7 @@ function script FTStatue { // Hey, you can assault the town! mesc ".:: "+l("THE FORTRESS ISLAND TOWN") + " ::.", 1; mes l("Behind this gate, lies the Fortress Island Town."); + //monster(FortressGate, ::OnOpenGate) close; OnTouch: -- cgit v1.2.3-60-g2f50