From 98af0b189e243b052f936ba9e0d04f9750a173c5 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 27 Feb 2020 13:26:15 -0300 Subject: Add the block which prevents you from escaping. Defeating the assassin will make block vanish, but will not complete the quest --- npc/003-0/mainquest.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'npc/003-0/mainquest.txt') 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; -- cgit v1.2.3-60-g2f50