Kim 0 Posted May 27, 2013 (edited) Help i want to change my @go 0 to poring_w02 but i can't find out this line in my src/map/atcommand.c clif_displaymessage(fd, " 24=Veins 25=Moscovia"); Here's the script https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/src/map/atcommand.c Here's the tutorial http://rathena.org/wiki/@go Edited May 27, 2013 by ejay0378 Quote Share this post Link to post Share on other sites
0 Phenomena 1 Posted May 27, 2013 (edited) /src/map/atcommand.c /*==========================================* @go [city_number or city_name] - Updated by Harbin*------------------------------------------*/ACMD_FUNC(go){ int i; int town; char map_name[MAP_NAME_LENGTH]; int16 m; const struct { char map[MAP_NAME_LENGTH]; int x, y; } data[] = {{ MAP_PORING_W02, X, Y }, // 0=YOUR MAP { MAP_MORROC, 156, 93 }, // 1=Morroc { MAP_GEFFEN, 119, 59 }, // 2=Geffen { MAP_PAYON, 162, 233 }, // 3=Payon { MAP_ALBERTA, 192, 147 }, // 4=Alberta#ifdef RENEWAL { MAP_IZLUDE, 128, 146 }, // 5=Izlude (Renewal)#else { MAP_IZLUDE, 128, 114 }, // 5=Izlude#endif { MAP_ALDEBARAN, 140, 131 }, // 6=Al de Baran { MAP_LUTIE, 147, 134 }, // 7=Lutie { MAP_COMODO, 209, 143 }, // 8=Comodo { MAP_YUNO, 157, 51 }, // 9=Yuno { MAP_AMATSU, 198, 84 }, // 10=Amatsu { MAP_GONRYUN, 160, 120 }, // 11=Gonryun { MAP_UMBALA, 89, 157 }, // 12=Umbala { MAP_NIFLHEIM, 21, 153 }, // 13=Niflheim { MAP_LOUYANG, 217, 40 }, // 14=Louyang { MAP_NOVICE, 53, 111 }, // 15=Training Grounds { MAP_JAIL, 23, 61 }, // 16=Prison { MAP_JAWAII, 249, 127 }, // 17=Jawaii { MAP_AYOTHAYA, 151, 117 }, // 18=Ayothaya { MAP_EINBROCH, 64, 200 }, // 19=Einbroch { MAP_LIGHTHALZEN, 158, 92 }, // 20=Lighthalzen { MAP_EINBECH, 70, 95 }, // 21=Einbech { MAP_HUGEL, 96, 145 }, // 22=Hugel { MAP_RACHEL, 130, 110 }, // 23=Rachel { MAP_VEINS, 216, 123 }, // 24=Veins { MAP_MOSCOVIA, 223, 184 }, // 25=Moscovia { MAP_MIDCAMP, 180, 240 }, // 26=Midgard Camp { MAP_MANUK, 282, 138 }, // 27=Manuk { MAP_SPLENDIDE, 201, 147 }, // 28=Splendide { MAP_BRASILIS, 182, 239 }, // 29=Brasilis { 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 }; /src/common/mapindex.h //Some definitions for the mayor city maps. #define MAP_PRONTERA "prontera"#define MAP_GEFFEN "geffen"#define MAP_MORROC "morocc"#define MAP_ALBERTA "alberta"#define MAP_PAYON "payon"#define MAP_IZLUDE "izlude"#define MAP_ALDEBARAN "aldebaran"#define MAP_LUTIE "xmas"#define MAP_COMODO "comodo"#define MAP_YUNO "yuno"#define MAP_AMATSU "amatsu"#define MAP_GONRYUN "gonryun"#define MAP_UMBALA "umbala"#define MAP_NIFLHEIM "niflheim"#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_PORING_W02 "PoringWars" Edited May 27, 2013 by Phenomena 1 jaBote reacted to this Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted May 27, 2013 What Phenomena said should work. Just don't forget to recompile your server after performing the source edits. P.S.: Moving to correct section. Quote Share this post Link to post Share on other sites
0 Kim 0 Posted May 27, 2013 Its working but, when u type in the game @go only It will show like Prontera=0 Morroc=1 Geffen=3 like that Its still prontera how to change poring market instead prontera Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted May 27, 2013 It's in here: /conf/help.txt. Check line 40 onwards: go: "Params: <city name|number>n" "Warps you to a city.n"" -3: (Memo point 2) 14: louyang 31: moran"" -2: (Memo point 1) 15: start point 32: dewatan"" -1: (Memo point 0) 16: prison/jail 33: malangdo islandn"" 0: prontera 17: jawaii 34: malaya portn"" 1: morocc 18: ayothaya 35: eclagen"" 2: geffen 19: einbrochn"" 3: payon 20: lighthalzenn"" 4: alberta 21: einbechn"" 5: izlude 22: hugeln"" 6: aldebaran 23: racheln"" 7: xmas (lutie) 24: veinsn"" 8: comodo 25: moscovian"" 9: yuno 26: midgard campn"" 10: amatsu 27: manukn"" 11: gonryun 28: splendiden"" 12: umbala 29: brasilisn"" 13: niflheim 30: el dicastesn" P.D.: I've just realized I mis-moved this topic. In order not to make a big mess, this topic will stay here until solved if you don't mind. Sorry for the inconvenience. 1 Kim reacted to this Quote Share this post Link to post Share on other sites
0 Mystery 594 Posted May 27, 2013 P.D.: I've just realized I mis-moved this topic. In order not to make a big mess, this topic will stay here until solved if you don't mind. Sorry for the inconvenience.Don't worry. Topic Moved to Source Support. Quote Share this post Link to post Share on other sites
0 Kim 0 Posted May 28, 2013 on wiki they must be change because they still have old script like that btw. Thanks for help Quote Share this post Link to post Share on other sites
Help i want to change my @go 0 to poring_w02
but i can't find out this line in my src/map/atcommand.c
Here's the script
https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/src/map/atcommand.c
Here's the tutorial
http://rathena.org/wiki/@go
Edited by ejay0378Share this post
Link to post
Share on other sites