Jump to content
  • 0

Trying to Change Main Town


Vinyasa

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  01/20/13
  • Last Seen:  

Okay.. I'm trying to change my main town from Prontera to Izlude. Now all of the guides that I've seen include these two certain codes:

// 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, use one of this number/name:
	clif_displaymessage(fd, " 0=Niflheim		 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=Prontera	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");
	return -1;
}

&

// 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;
}

My atcommand.c doesn't have those two codes

http://www.mediafire.com/view/?635q3v8rv3l68jh

As you can see, I edited the atcommands.c to the best of my ability..

So, how the hell am I supposed to change my main town to Izlude?!

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  01/20/13
  • Last Seen:  

Okay.. I'm trying to change my main town from Prontera to Izlude. Now all of the guides that I've seen include these two certain codes:

// 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, use one of this number/name:
	clif_displaymessage(fd, " 0=Niflheim		 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=Prontera	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");
	return -1;
}

&

// 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;
}

My atcommand.c doesn't have those two codes

http://www.mediafire...635q3v8rv3l68jh

As you can see, I edited the atcommands.c to the best of my ability..

So, how the hell am I supposed to change my main town to Izlude?!

Edited by Vinyasa
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   6
  • Joined:  12/20/12
  • Last Seen:  

You already do this

{ MAP_IZLUDE, 128, 145, "Izlude" }, // 0

in @go, so if you use @go 0 you are warped to IZLUDE

so maybe you forgot compile your server n_n ~

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  01/20/13
  • Last Seen:  

Lol, I didn't forget to compile it.

Okay, fixed everything :). And apparently I didn't need the display messages because it got edited when I edited my main town :) thanks for replying.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  297
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

perhaps you should stop ranting and look at your /trunk/conf/ folder, and look for help.txt

then find 'go:' without the quotes. there you can find the message being displayed when you use @go

and the atcommand.c still has the code in your second code box, in line 1823, that is if you are using the latest rathena svn.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  01/20/13
  • Last Seen:  

So, like I said, I solved it already...

Link to comment
Share on other sites

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.

×
×
  • Create New...