summaryrefslogtreecommitdiff
path: root/npc/023-3
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-17 14:20:38 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-17 14:20:38 -0300
commit0aed0edea26764b4debc7104e3a663af25d4142a (patch)
tree996a4f199b1e97b5111ae682c5f4c0641c940bf2 /npc/023-3
parent7e91a5df4912ad192beda9d997abea237e42f3b4 (diff)
downloadserverdata-0aed0edea26764b4debc7104e3a663af25d4142a.tar.gz
serverdata-0aed0edea26764b4debc7104e3a663af25d4142a.tar.bz2
serverdata-0aed0edea26764b4debc7104e3a663af25d4142a.tar.xz
serverdata-0aed0edea26764b4debc7104e3a663af25d4142a.zip
Rolling Stones :> (TODO, ALPHA)
Diffstat (limited to 'npc/023-3')
-rw-r--r--npc/023-3/logic.txt46
1 files changed, 46 insertions, 0 deletions
diff --git a/npc/023-3/logic.txt b/npc/023-3/logic.txt
index d9320848b..422605410 100644
--- a/npc/023-3/logic.txt
+++ b/npc/023-3/logic.txt
@@ -227,7 +227,53 @@ OnInit:
// TODO: Spike traps and etc. at the corritor
// TODO: Rolling Stone Trap
+// Delete rolling stones as they hit this wall
+/*023-3,47,40,0 script #0233DelStone NPC_HIDDEN,1,0,{
+OnTouch:
+ end;
+
+OnTouchNPC:
+ //percentheal -100, -100;
+ //unitkill(0);
+ unitwarp(0, "023-3", 42, 26);
+ end;
+}
+*/
+// TODO: Rolling Stone core
+023-3,0,0,0 script #0233RollStone NPC_HIDDEN,{
+ end;
+OnInit:
+ $@0233_STONEA=monster("023-3", 47, 23, "Rolling Stone", RollingStone, 1);
+ $@0233_STONEB=monster("023-3", 48, 25, "Rolling Stone", RollingStone, 1);
+ $@0233_STONEC=monster("023-3", 47, 30, "Rolling Stone", RollingStone, 1);
+ $@0233_STONED=monster("023-3", 48, 37, "Rolling Stone", RollingStone, 1);
+ initnpctimer;
+ end;
+
+OnTimer250:
+ unitwalk($@0233_STONEA, 47, 40);
+ unitwalk($@0233_STONEC, 47, 40);
+ unitwalk($@0233_STONEB, 48, 40);
+ unitwalk($@0233_STONED, 48, 40);
+
+ getmapxy(.@m$, .@x, .@y, UNITTYPE_MOB, $@0233_STONEA);
+ if (.@y >= 40)
+ unitwarp($@0233_STONEA, "023-3", 47, 23);
+
+ getmapxy(.@m$, .@x, .@y, UNITTYPE_MOB, $@0233_STONEB);
+ if (.@y >= 40)
+ unitwarp($@0233_STONEB, "023-3", 48, 23);
+ getmapxy(.@m$, .@x, .@y, UNITTYPE_MOB, $@0233_STONEC);
+ if (.@y >= 40)
+ unitwarp($@0233_STONEC, "023-3", 47, 23);
+ getmapxy(.@m$, .@x, .@y, UNITTYPE_MOB, $@0233_STONED);
+ if (.@y >= 40)
+ unitwarp($@0233_STONED, "023-3", 48, 23);
+
+ initnpctimer;
+ end;
+}