diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-02-27 17:44:42 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-02-27 17:44:42 -0300 |
commit | 1cde1c1a88955c6a87e24e7dbb7fece27d6a65e1 (patch) | |
tree | 311cb03dbb56a0498e0bc457cba275bf2103036e | |
parent | b5e4c5c4256b9eaba8e8171e8aa9c8377ae5d550 (diff) | |
download | serverdata-1cde1c1a88955c6a87e24e7dbb7fece27d6a65e1.tar.gz serverdata-1cde1c1a88955c6a87e24e7dbb7fece27d6a65e1.tar.bz2 serverdata-1cde1c1a88955c6a87e24e7dbb7fece27d6a65e1.tar.xz serverdata-1cde1c1a88955c6a87e24e7dbb7fece27d6a65e1.zip |
Reduce the area. On hindsight, NOW it is a real 5x5 area, isn't it?
-rw-r--r-- | npc/functions/manhole.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/npc/functions/manhole.txt b/npc/functions/manhole.txt index ae0901e3..669adef9 100644 --- a/npc/functions/manhole.txt +++ b/npc/functions/manhole.txt @@ -5,7 +5,8 @@ // Description: // Handles Artis manholes // Relies on getmap, be sure coords are enough compatible -// ie. Leave a 5x5 area free of collision +// ie. Leave a 2x2 area free of collision in the target coordinates +// Heights weren't checked // manhole_interact( dest_map ) // Carries over getmapxy() for NPC @@ -53,7 +54,7 @@ function script manhole_interact { } // Delete item and spawn it on the equivalent map delitem .@id, 1; - makeitem .@id, 1, .@dest_map$, .@x+rand(-5, 5), .@y+rand(-5, 5); + makeitem .@id, 1, .@dest_map$, .@x+rand(-2, 2), .@y+rand(-2, 2); // May spawn a monster if it is food (33% odds) if (getiteminfo(.@id, ITEMINFO_TYPE) == IT_HEALING && rand(1,3) == 3) { |