viewing paste Unknown #4998 | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
Index: common/mapindex.h
===================================================================
--- common/mapindex.h   (revision 17067)
+++ common/mapindex.h   (working copy)
@@ -46,6 +46,7 @@
 #define MAP_MALANGDO "malangdo"
 #define MAP_MALAYA "malaya"
 #define MAP_ECLAGE "eclage"
+#define MAP_PRTFILD08 "prt_fild08"
 
 const char* mapindex_getmapname(const char* string, char* output);
 const char* mapindex_getmapname_ext(const char* string, char* output);
Index: map/atcommand.c
===================================================================
--- map/atcommand.c (revision 17067)
+++ map/atcommand.c (working copy)
@@ -1788,6 +1788,7 @@
        { MAP_MALANGDO,    140, 114 }, // 33=Malangdo Island
        { MAP_MALAYA,      242, 211 }, // 34=Malaya Port
        { MAP_ECLAGE,      110,  39 }, // 35=Eclage
+       { MAP_PRTFILD08,   110,  39 }, // 36=prt_fild08 NOTE: set the desired landing coordinates [clydelion]
    };
 
    nullpo_retr(-1, sd);
@@ -1907,8 +1908,10 @@
        town = 34;
    } else if (strncmp(map_name, "eclage", 3) == 0) {
        town = 35;
+   } else if (strncmp(map_name, "prt_fild08", 3) == 0 || //[clydelion]
+              strncmp(map_name, "main", 3) == 0) {
+       town = 36;
    }
-
    if (town >= 0 && town < ARRAYLENGTH(data))
    {
        m = map_mapname2mapid(data[town].map);
Viewed 1101 times, submitted by clydelion.