Jump to content
  • 0

Removing a map in @go


Question

Posted

How can i remove the eclage map in the @go list and change it to my main town?

I already try using the @go guide and do some edit but i can @go 35 to my main town yet the name on @go 35 is still eclage. Please help.

11 answers to this question

Recommended Posts

Posted (edited)

Go to /src/common/mapindex.h: https://rathena.svn....mmon/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"

Change #define MAP_ECLAGE "eclage" to #define MAP_<YOUR CUSTOM MAP NAME> "<your custom map name>"

Now, go to /src/map/atcommand.c: https://rathena.svn....map/atcommand.c

Find:

/*==========================================

* @go [city_number or city_name] - Updated by Harbin

*------------------------------------------*/

Scroll down till you see:

{ MAP_PRONTERA, 156, 191 }, // 0=Prontera
	{ MAP_MORROC,	  156,  93 }, //  1=Morroc
	{ MAP_GEFFEN,	  119,  59 }, //  2=Geffen
	{ MAP_PAYON,	   162, 233 }, //  3=Payon
	{ MAP_ALBERTA,	 192, 147 }, //  4=Alberta
	{ MAP_IZLUDE,	  128, 114 }, //  5=Izlude
	{ 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,   197, 176 }, // 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

Change : { MAP_ECLAGE, 110, 39 }, // 35=Eclage to : { MAP_<YOUR MAP NAME>, 110, 39 }, // 35=Your Map Name

Scroll down till you see:

// get possible name of the city
map_name[MAP_NAME_LENGTH-1] = '0';
for (i = 0; map_name[i]; i++)
	map_name[i] = TOLOWER(map_name[i]);
// try to identify the map name
if (strncmp(map_name, "prontera", 3) == 0) {
	town = 0;
} else if (strncmp(map_name, "morocc", 3) == 0) {
	town = 1;
} else if (strncmp(map_name, "geffen", 3) == 0) {
	town = 2;
} else if (strncmp(map_name, "payon", 3) == 0 ||
		   strncmp(map_name, "paion", 3) == 0) {
	town = 3;
} else if (strncmp(map_name, "alberta", 3) == 0) {
	town = 4;
} else if (strncmp(map_name, "izlude", 3) == 0 ||
		   strncmp(map_name, "islude", 3) == 0) {
	town = 5;
} else if (strncmp(map_name, "aldebaran", 3) == 0 ||
		   strcmp(map_name,  "al") == 0) {
	town = 6;
} else if (strncmp(map_name, "lutie", 3) == 0 ||
		   strcmp(map_name,  "christmas") == 0 ||
		   strncmp(map_name, "xmas", 3) == 0 ||
		   strncmp(map_name, "x-mas", 3) == 0) {
	town = 7;
} else if (strncmp(map_name, "comodo", 3) == 0) {
	town = 8;
} else if (strncmp(map_name, "yuno", 3) == 0) {
	town = 9;
} else if (strncmp(map_name, "amatsu", 3) == 0) {
	town = 10;
} else if (strncmp(map_name, "gonryun", 3) == 0) {
	town = 11;
} else if (strncmp(map_name, "umbala", 3) == 0) {
	town = 12;
} else if (strncmp(map_name, "niflheim", 3) == 0) {
	town = 13;
} else if (strncmp(map_name, "louyang", 3) == 0) {
	town = 14;
} else if (strncmp(map_name, "new_1-1", 3) == 0 ||
		   strncmp(map_name, "startpoint", 3) == 0 ||
		   strncmp(map_name, "begining", 3) == 0) {
	town = 15;
} else if (strncmp(map_name, "sec_pri", 3) == 0 ||
		   strncmp(map_name, "prison", 3) == 0 ||
		   strncmp(map_name, "jails", 3) == 0) {
	town = 16;
} else if (strncmp(map_name, "jawaii", 3) == 0 ||
		   strncmp(map_name, "jawai", 3) == 0) {
	town = 17;
} else if (strncmp(map_name, "ayothaya", 3) == 0 ||
		   strncmp(map_name, "ayotaya", 3) == 0) {
	town = 18;
} else if (strncmp(map_name, "einbroch", 5) == 0 ||
		   strncmp(map_name, "ainbroch", 5) == 0) {
	town = 19;
} else if (strncmp(map_name, "lighthalzen", 3) == 0) {
	town = 20;
} else if (strncmp(map_name, "einbech", 3) == 0) {
	town = 21;
} else if (strncmp(map_name, "hugel", 3) == 0) {
	town = 22;
} else if (strncmp(map_name, "rachel", 3) == 0) {
	town = 23;
} else if (strncmp(map_name, "veins", 3) == 0) {
	town = 24;
} else if (strncmp(map_name, "moscovia", 3) == 0) {
	town = 25;
} else if (strncmp(map_name, "mid_camp", 3) == 0) {
	town = 26;
} else if (strncmp(map_name, "manuk", 3) == 0) {
	town = 27;
} else if (strncmp(map_name, "splendide", 3) == 0) {
	town = 28;
} else if (strncmp(map_name, "brasilis", 3) == 0) {
	town = 29;
} else if (strncmp(map_name, "dicastes01", 3) == 0) {
	town = 30;
} else if (strncmp(map_name, "mora", 3) == 0) {
	town = 31;
} else if (strncmp(map_name, "dewata", 3) == 0) {
	town = 32;
} else if (strncmp(map_name, "malangdo", 3) == 0) {
	town = 33;
} else if (strncmp(map_name, "malaya", 3) == 0) {
	town = 34;
} else if (strncmp(map_name, "eclage", 3) == 0) {
	town = 35;
}

and change

} else if (strncmp(map_name, "eclage", 3) == 0) {
	town = 35;

So that:

} else if (strncmp(map_name, "<your map name>", 3) == 0) {
	town = 35;

is there.

Edit:

You want to remove it? or Add a custom map to @go? Confused by your title and description you want.. =/

Edited by Mysterious
Posted

I would like remove the @go 35 which is eclage because it gives me error ( no rsw file )

And then i will just change my @go 35 ( instead of eclage ) to my custom map which is merullian

Posted

But wait. Do you have a eclage.rsw file? and the gats.

Aww. When i check the @go list

it says 35: eclage but when i command the @go 35 it sends me to my custom map.

I am bothered by the @go list which shows the eclage. How can i change the @go list?

Posted

I remember in eAthena you can also change the @go list:

this was from my old eA svn I wonder where it is now on rA:

// if no value, display all value
if (!message || !*message || sscanf(message, "%11s", map_name) < 1 || town < 0 || town >= ARRAYLENGTH(data)) {
 clif_displaymessage(fd, msg_txt(38)); // Invalid location number, or name.
 clif_displaymessage(fd, msg_txt(82)); // Please provide a name or number from the list provided:
 clif_displaymessage(fd, " 0=Prontera		 1=Morroc	   2=Geffen");
 clif_displaymessage(fd, " 3=Payon		    4=Alberta	  5=Izlude");
 clif_displaymessage(fd, " 6=Al De Baran	  7=Lutie	    8=Comodo");
 clif_displaymessage(fd, " 9=Yuno			 10=Amatsu	  11=Gonryun");
 clif_displaymessage(fd, " 12=Umbala		  13=Niflheim    14=Louyang");
 clif_displaymessage(fd, " 15=Novice Grounds  16=Prison	  17=Jawaii");
 clif_displaymessage(fd, " 18=Ayothaya	    19=Einbroch    20=Lighthalzen");
 clif_displaymessage(fd, " 21=Einbech		 22=Hugel	   23=Rachel");
 clif_displaymessage(fd, " 24=Veins		   25=Moscovia    26=Mall");
 return -1;
}

It's under atcommand_go

Posted

I can't get to put my caspen custom to @go 0 -___- help please? i tried and did all the steps (Mysterious) posted but when i try to debug the files the map server crashes. tried @go guide on wiki 2 xD

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...