diff options
Diffstat (limited to 'npc/003-0/mainquest.txt')
-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; |