Jump to content

Recommended Posts

Posted (edited)

Huhu folgenes,

ich wollte heute die @go von pron (0) und izlude (5) tauschen.

 

Nun habe ich ein Problem ;)

 

Vorgehensweise:

1. in \src\map habe ich die atcommand © geöffnet

2. folgene Stelle aufgesucht:

 { MAP_IZLUDE,    128, 93 }, //  0=Izlude (Renewal)
        { 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_PRONTERA,      156, 191 }, //  5=Prontera
 

wie man sieht schon abgeändert. Danach die server compiled und getestet.

Soweit so gut, funktioniert auch.

 

Nun habe ich allerdings noch das problem das beim eingeben von @go (die auflistung) immernoch prontera an stelle 0 steht und izl an stelle 5

 

ich weiss das weiter unten sich folgenes befindet:

if (strncmp(map_name, "prontera", 3) == 0) {
		town = 0;
	} else if (strncmp(map_name, "morocc", 4) == 0 ||
	           strncmp(map_name, "morroc", 4) == 0) {
		town = 1;
	} else if (strncmp(map_name, "geffen", 3) == 0) {
		town = 2;
	} else if (strncmp(map_name, "payon", 3) == 0) {
		town = 3;
	} else if (strncmp(map_name, "alberta", 3) == 0) {
		town = 4;
	} else if (strncmp(map_name, "izlude", 3) == 0) {
		town = 5;

allerdings nach änderungen, sei es an der mapID oder den mapnamen, keinerlei änderungen ingame. Ich kriege die 0 nicht mit der 5 getauscht -_- (ja danach auch wieder compiled)

 

Wüsste einer ne Lösung? Vielen Dank

 

 

Edit: axo, den guide http://rathena.org/board/topic/57721-go-command-aendern-adden/ habsch mir auch angeschaut scheinbar hat sich mit der zeit vieles verändert

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

existiert in der atcommand © nichtmehr

Edited by Bayne

Join the conversation

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

Guest
Reply to this topic...

×   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...