diff options
Diffstat (limited to 'npc/025-1')
-rw-r--r-- | npc/025-1/ctrl.c | 48 |
1 files changed, 47 insertions, 1 deletions
diff --git a/npc/025-1/ctrl.c b/npc/025-1/ctrl.c index 4833c6561..28ae146d5 100644 --- a/npc/025-1/ctrl.c +++ b/npc/025-1/ctrl.c @@ -10,6 +10,15 @@ // $FORTRESS_STATE = int // 0 - Locked // 1 - Unlocked +// $@FORTRESS_STATUE = bitmask +// 1,2,4,8... broken statues +// TODO: Use bg() - maybe with dummysd? +// TODO: Gate control during siege (not $FORTRESS_STATE). Gate monster. +// TODO: Spawn the monster general for each statue. Count their deaths. +// TODO: Spawn Monster Governor (and add it) once statue is broken. ::OnConquest +// TODO: Record nÂș of victories. Strengthen the governor. +// TODO: Provide a way to resume failed attempts. Move Phoenix inside. +// TODO: Testing // MAPFLAGS 025-1 mapflag zone MMO @@ -21,12 +30,49 @@ // FTCleanup(status) function script FTCleanup { $FORTRESS_STATE=getarg(0); - //enablenpc + // TODO: Magic Statues (FTStatue) + $@FORTRESS_STATUE=0; + //enablenpc "Magic Statue#F_1"; + //enablenpc "Magic Statue#F_2"; + //enablenpc "Magic Statue#F_4"; + //enablenpc "Magic Statue#F_8"; + //enablenpc "Magic Statue#F_16"; + // TODO: Gate + // TODO: ::OnConquest + // TODO: Kill stray monsters //killmonsterall return; } +// FTStatue(id) +function script FTStatue { + .@id=getarg(0); + mesn l("Magic Statue"); + mes l("There is a reading: The Mana Source. The Moubootaur. The Monster King."); + mes l("The war. The blood. The inspiration. The mana. The world. The defiance."); + mes l("The guard. The heir. The originals. The races. The later. The seal."); + mes l("The fragments. The war. The Terranite. AEGIS MAGNUS PROTECT SHIELD."); + next; + mesc l("It seems to be a defensive spell."); + if ($FORTRESS_STATE) + return; + + // Break the statues? + mesc l("Break the Statue?"), 1; + next; + if (askyesno() == ASK_YES) { + if ($@FORTRESS_STATUE & .@id) + return; + sc_start SC_STUN, 10000, 1; + //getmapxy(); + //areamonster(); + //mapannounce(); + //maybe spawn monster governor + $@FORTRESS_STATUE=$@FORTRESS_STATUE|.@id; + } + return; +} |