diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-01-14 16:04:16 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-01-14 16:04:16 -0300 |
commit | 2bb351e66238c018e9e88aeadd154884cb50dcd1 (patch) | |
tree | 84a463772e424c63896b2d7ea2b4706bc63aa6a6 /npc/025-1/ctrl.c | |
parent | 461a38b4341850212190736766896c486b3ce217 (diff) | |
download | serverdata-2bb351e66238c018e9e88aeadd154884cb50dcd1.tar.gz serverdata-2bb351e66238c018e9e88aeadd154884cb50dcd1.tar.bz2 serverdata-2bb351e66238c018e9e88aeadd154884cb50dcd1.tar.xz serverdata-2bb351e66238c018e9e88aeadd154884cb50dcd1.zip |
Prepare the Statues code - Statues still not placed, code untested and governor missing
Diffstat (limited to 'npc/025-1/ctrl.c')
-rw-r--r-- | npc/025-1/ctrl.c | 39 |
1 files changed, 35 insertions, 4 deletions
diff --git a/npc/025-1/ctrl.c b/npc/025-1/ctrl.c index 816bacee3..0a34871af 100644 --- a/npc/025-1/ctrl.c +++ b/npc/025-1/ctrl.c @@ -79,10 +79,8 @@ function script FTStatue { if ($@FORTRESS_STATUE & .@id) return; sc_start SC_STUN, 10000, 1; - //getmapxy(); - //areamonster(); - //mapannounce(); - //maybe spawn monster governor + doevent("Fortress::OnStatueBreach"); + mapannounce("025-1", strcharinfo(0)+" has broken a statue!", bc_map); $@FORTRESS_STATUE=$@FORTRESS_STATUE|.@id; } @@ -199,6 +197,20 @@ OnMPReinforce: summon("Allied Guard", any(FallenGuard1, FallenGuard2, FallenGuard3)); end; +OnStatueBreach: + spawnCore(true); + getmapxy(.@m$, .@x, .@y, 0); + .@x1=.@x-5; + .@x2=.@x+5; + .@y1=.@y-5; + .@y2=.@y+5; + // Statue Guardians (Lv 70~90) + for (.@i = 0; .@i < 6; ++.@i) { + spawnMob(any(AzulSkullSlime, YellowSkullSlime, Forain, GreenDragon, Michel, EliteDuck, Troll, Moonshroom, Terranite, JackO, BlackMamba, Centaur, GoboBear, TerraniteProtector), .@x1, .@y1, .@x2, .@y2); + } + //TODO: Maybe spawn monster governor + end; + ///////////////////////////////////////////////////////// // spawnMob(Mob, X1, Y1, X2, Y2) function spawnMob { @@ -289,6 +301,25 @@ OnConquest: } +///////////////////////////////////////////////////////// +// TODO: Statue NPCs +025-1,80,115,0 script Magic Statue#1 NPC_STATUE_WIZARD,{ + FTStatue(strnpcinfo(2, "0")); + close; + +OnInit: + .distance=2; + end; +} + +025-1,80,115,0 duplicate(Magic Statue#1) Magic Statue#2 NPC_STATUE_BACCHUS +025-1,80,115,0 duplicate(Magic Statue#1) Magic Statue#4 NPC_STATUE_FAFA +025-1,80,115,0 duplicate(Magic Statue#1) Magic Statue#8 NPC_STATUE_EVILMAN +025-1,80,115,0 duplicate(Magic Statue#1) Magic Statue#16 NPC_STATUE_GUARD + + + + ///////////////////////////////////////////////////////// // This exit must work even if gate is closed (bugfix) |