From f53ab82aae5508d3bd55e694d6940ea2151d736c Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 27 Feb 2020 13:09:10 -0300 Subject: Prepare assassin's spawn. Wait, maybe I need to remove this monster collision? Or better make it a regular collision after assassin spawns? --- npc/003-0/mainquest.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'npc') diff --git a/npc/003-0/mainquest.txt b/npc/003-0/mainquest.txt index be32fc935..936cac844 100644 --- a/npc/003-0/mainquest.txt +++ b/npc/003-0/mainquest.txt @@ -28,6 +28,18 @@ OnCheck: OnBegin: .@m$=getmap(); .@n$=instance_npcname(.name$); + + // Is assassin ambushing you or professor? + if (is_night()) { + .@x=any(46, 52); + .@y=34; + } else { + getmapxy(.@m$, .@x, .@y, 0); + .@y-=3; + if (.@y < 34) + .@y=34; + } + @ASSASSIN=monster(.@m$, .@x, .@y, l("Assassin"), Assassin, 1); dispbottom col(l("SCRIPT ERROR (%s/%s)", .@m$, .@n$), 1); end; -- cgit v1.2.3-70-g09d2