Delta Posted March 9, 2015 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 43 Reputation: 0 Joined: 09/27/12 Last Seen: April 10, 2015 Share Posted March 9, 2015 I am trying to add some custom commands that can be usable to my players. I'll try to add in go command the "PVP_Y_1-2" but suddenly im failed. can someone help me or explain me why this error comes This is my codes: src/map/atcommand.c { MAP_DICASTES, 198, 187 }, // 30=El Dicastes { MAP_MORA, 44, 151 }, // 31=Mora { MAP_DEWATA, 200, 180 }, // 32=Dewata { MAP_MALANGDO, 140, 114 }, // 33=Malangdo Island { MAP_MALAYA, 242, 211 }, // 34=Malaya Port { MAP_ECLAGE, 110, 39 }, // 35=Eclage { MAP_PVP_Y_1-2, 100, 100 }, // 35=Eclage }; } else if (strncmp(map_name, "dewata", 3) == 0) { town = 32; } else if (strncmp(map_name, "malangdo", 5) == 0) { town = 33; } else if (strncmp(map_name, "malaya", 5) == 0) { town = 34; } else if (strncmp(map_name, "eclage", 3) == 0) { town = 35; } else if (strncmp(map_name, "pvp", 3) == 0) { town = 36; } src/common/mapindex.h #define MAP_LOUYANG "louyang" #define MAP_JAWAII "jawaii" #define MAP_AYOTHAYA "ayothaya" #define MAP_EINBROCH "einbroch" #define MAP_LIGHTHALZEN "lighthalzen" #define MAP_EINBECH "einbech" #define MAP_HUGEL "hugel" #define MAP_RACHEL "rachel" #define MAP_VEINS "veins" #define MAP_JAIL "sec_pri" #define MAP_NOVICE "new_1-1" #define MAP_MOSCOVIA "moscovia" #define MAP_MIDCAMP "mid_camp" #define MAP_MANUK "manuk" #define MAP_SPLENDIDE "splendide" #define MAP_BRASILIS "brasilis" #define MAP_DICASTES "dicastes01" #define MAP_MORA "mora" #define MAP_DEWATA "dewata" #define MAP_MALANGDO "malangdo" #define MAP_MALAYA "malaya" #define MAP_ECLAGE "eclage" #define MAP_ECLAGE_IN "ecl_in01" #define MAP_PVP_Y_1-2 "pvp_y_1-2" Sorry for my bad english. Hope that someone can help me. Thanks in advance Quote Link to comment Share on other sites More sharing options...
Emistry Posted March 10, 2015 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted March 10, 2015 try change MAP_PVP_Y_1-2 to MAP_PVP_Y_1_2 or other name Quote Link to comment Share on other sites More sharing options...
Delta Posted March 10, 2015 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 43 Reputation: 0 Joined: 09/27/12 Last Seen: April 10, 2015 Author Share Posted March 10, 2015 bump~ bump Quote Link to comment Share on other sites More sharing options...
Emistry Posted March 11, 2015 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted March 11, 2015 i mean the variable name you used in the source code. #define MAP_PVP_Y_1-2 "pvp_y_1-2" to this #define MAP_PVP_Y_1_2 "pvp_y_1-2" not actual mapname of that map. Quote Link to comment Share on other sites More sharing options...
Delta Posted March 11, 2015 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 43 Reputation: 0 Joined: 09/27/12 Last Seen: April 10, 2015 Author Share Posted March 11, 2015 Working now! Thanks Quote Link to comment Share on other sites More sharing options...
Question
Delta
I am trying to add some custom commands that can be usable to my players.
I'll try to add in go command the "PVP_Y_1-2" but suddenly im failed. can someone help me or explain me why this error comes
This is my codes:
src/map/atcommand.c
src/common/mapindex.h
Sorry for my bad english. Hope that someone can help me. Thanks in advance
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.