Jump to content
  • 0

@go mall for the latest revision


Question

Posted

i want to add @go mall. i know how to add it on the old revision. but on the latest revision i don't know how?i try to make it but it always warp me to malangdo instead of mall.

7 answers to this question

Recommended Posts

Posted

Add in your mall to a new @go number extension. VIA through mapindex, then editing atcommand.

my @go 36 = mall. it works it warps me to the mall.

but when i type @go mall it brings me to the other map.

Posted

Add in your mall to a new @go number extension. VIA through mapindex, then editing atcommand.

my @go 36 = mall. it works it warps me to the mall.

but when i type @go mall it brings me to the other map.

Make sure you've edited this part.


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

Posted (edited)

Add in your mall to a new @go number extension. VIA through mapindex, then editing atcommand.

my @go 36 = mall. it works it warps me to the mall.

but when i type @go mall it brings me to the other map.

Make sure you've edited this part.


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

Edit this file: https://rathena.svn....k/conf/help.txt to make @go 36 = Mall when you type in @go

i did it all correctly but it still not working.

Edited by Brynner
Posted

Try add this

} else if (strncmp(map_name, "mall", 3) == 0) {
         town = 36;
}

Did it warp you to malangdo map when using @go mall?

Then try change this

Find

} else if (strncmp(map_name, "malangdo", 3) == 0) {
         town = 33;
}

Replace

} else if (strncmp(map_name, "malangdo", 4) == 0) {
         town = 33;
}

  • Upvote 1
Posted

Try add this

} else if (strncmp(map_name, "mall", 3) == 0) {
town = 36;
}

Did it warp you to malangdo map when using @go mall?

Then try change this

Find

} else if (strncmp(map_name, "malangdo", 3) == 0) {
town = 33;
}

Replace

} else if (strncmp(map_name, "malangdo", 4) == 0) {
town = 33;
}

thanks problem solve.

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