diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-07-07 20:34:27 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-07-07 20:34:27 -0300 |
commit | 9877fd4ad81120af8e63e96d5d429092014dc017 (patch) | |
tree | ec045a0535109a2e0d82e0e8155eb01ed9776452 /world/map/npc/functions/ghost.txt | |
parent | aedbeb335a5ec5f55d22eace389076a18241ac9a (diff) | |
download | serverdata-9877fd4ad81120af8e63e96d5d429092014dc017.tar.gz serverdata-9877fd4ad81120af8e63e96d5d429092014dc017.tar.bz2 serverdata-9877fd4ad81120af8e63e96d5d429092014dc017.tar.xz serverdata-9877fd4ad81120af8e63e96d5d429092014dc017.zip |
Remove all Legacy files
Diffstat (limited to 'world/map/npc/functions/ghost.txt')
-rw-r--r-- | world/map/npc/functions/ghost.txt | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/world/map/npc/functions/ghost.txt b/world/map/npc/functions/ghost.txt deleted file mode 100644 index 921b8b79..00000000 --- a/world/map/npc/functions/ghost.txt +++ /dev/null @@ -1,36 +0,0 @@ -function|script|SpawnGhost -{ - if ($GHOSTS_DISABLED) - goto L_Return; - - if (BaseLevel >= 40 && - (getmap() == "026-1" || - getmap() == "027-1" || - getmap() == "027-2" || - getmap() == "027-3" || - getmap() == "027-4" || - getmap() == "027-5")) - goto L_Spawn; - return; - -L_Spawn: - set .@x, POS_X; - set .@y, POS_Y; - - if (!(iscollision(getmap(), .@x, .@y - 1))) set .@y, .@y - 1; // up - elif (!(iscollision(getmap(), .@x, .@y + 1))) set .@y, .@y + 1; // down - elif (!(iscollision(getmap(), .@x - 1, .@y))) set .@x, .@x - 1; // left - elif (!(iscollision(getmap(), .@x + 1, .@y))) set .@x, .@x + 1; // right - // else on the player - - if (@GHOST_MAP$ != "") - killmonster @GHOST_MAP$, "~GH~" + getcharid(0); - - set @GHOST_MAP$, getmap(); - specialeffect2 39; - monster getmap(), .@x, .@y, strcharinfo(0), 1136, 1, "~GH~" + getcharid(0); - return; - -L_Return: - return; -} |