summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-02-27 13:26:15 -0300
committerJesusaves <cpntb1@ymail.com>2020-02-27 13:26:15 -0300
commit98af0b189e243b052f936ba9e0d04f9750a173c5 (patch)
tree64b8f88931611003a43bc16b33373e4091a59975
parentf53ab82aae5508d3bd55e694d6940ea2151d736c (diff)
downloadserverdata-98af0b189e243b052f936ba9e0d04f9750a173c5.tar.gz
serverdata-98af0b189e243b052f936ba9e0d04f9750a173c5.tar.bz2
serverdata-98af0b189e243b052f936ba9e0d04f9750a173c5.tar.xz
serverdata-98af0b189e243b052f936ba9e0d04f9750a173c5.zip
Add the block which prevents you from escaping.
Defeating the assassin will make block vanish, but will not complete the quest
-rw-r--r--npc/003-0/mainquest.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/npc/003-0/mainquest.txt b/npc/003-0/mainquest.txt
index 936cac844..f03bf6d9c 100644
--- a/npc/003-0/mainquest.txt
+++ b/npc/003-0/mainquest.txt
@@ -39,7 +39,20 @@ OnBegin:
if (.@y < 34)
.@y=34;
}
+ setcells .@m$, 47, 35, 51, 35, 3, "MQ2Wall"+getcharid(0), .@n$+"::OnAssassinDefeat";
+ if (isin(.@m$, 44, 24, 54, 34)) {
+ warp .@m$, 49, 33;
+ atcommand("@refresh");
+ }
@ASSASSIN=monster(.@m$, .@x, .@y, l("Assassin"), Assassin, 1);
+ unittalk(@ASSASSIN, l("Die now!!"));
+ dispbottom col(l("SCRIPT ERROR (%s/%s)", .@m$, .@n$), 1);
+ end;
+
+OnAssassinDefeat:
+ .@m$=getmap();
+ .@n$=instance_npcname(.name$);
+ delcells "MQ2Wall"+getcharid(0);
dispbottom col(l("SCRIPT ERROR (%s/%s)", .@m$, .@n$), 1);
end;