diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-02-27 13:09:10 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-02-27 13:09:10 -0300 |
commit | f53ab82aae5508d3bd55e694d6940ea2151d736c (patch) | |
tree | a4c4cd12fac27a3a5b4b35bf87d7dc746b657905 /npc | |
parent | d9fc1b9e39d08f002ac488fee12bd27b1b27bd8c (diff) | |
download | serverdata-f53ab82aae5508d3bd55e694d6940ea2151d736c.tar.gz serverdata-f53ab82aae5508d3bd55e694d6940ea2151d736c.tar.bz2 serverdata-f53ab82aae5508d3bd55e694d6940ea2151d736c.tar.xz serverdata-f53ab82aae5508d3bd55e694d6940ea2151d736c.zip |
Prepare assassin's spawn.
Wait, maybe I need to remove this monster collision?
Or better make it a regular collision after assassin spawns?
Diffstat (limited to 'npc')
-rw-r--r-- | npc/003-0/mainquest.txt | 12 |
1 files changed, 12 insertions, 0 deletions
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; |