Jump to content
  • 0

is it posible to change @go


lakasmonk

Question


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  231
  • Reputation:   23
  • Joined:  12/18/11
  • Last Seen:  

is it possible to change @go 0 (Prontera) to @go 0 (Mellina)

i change my main town i want to re edit it and change prontera to mellina or move prontera to @go 1 and so on and mellina will be @go 0

Link to comment
Share on other sites

23 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

everything single thing you have edited in SRC Folder...you have to RECOMPILE your emulator

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  43
  • Reputation:   2
  • Joined:  01/15/17
  • Last Seen:  

How can I change in game @go town list? I tried finding the 3rd step but I dont find anything like that in my atcommand.c

 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=Brasilis");
 clif_displaymessage(fd, " 27=Manuk		   28=Splendide");
 return -1;
}

I can't find anything like that in my atcommand.c

Only this

/*==========================================
 * @go [city_number or city_name] - Updated by Harbin
 *------------------------------------------*/
ACMD_FUNC(go)
{
    int i;
    int town;
    char map_name[MAP_NAME_LENGTH];

    const struct {
        char map[MAP_NAME_LENGTH];
        int x, y;
    } data[] = {
        { MAP_CRYSTILIA,    67,  79 }, //  0=Crystilia
        { MAP_PRONTERA,    156, 191 }, //  1=Prontera
        { MAP_MORROC,      156,  93 }, //  2=Morroc
        { MAP_GEFFEN,      119,  59 }, //  3=Geffen
        { MAP_PAYON,       162, 233 }, //  4=Payon
        { MAP_ALBERTA,     192, 147 }, //  5=Alberta
#ifdef RENEWAL
        { MAP_IZLUDE,      128, 146 }, //  6=Izlude (Renewal)
#else
        { MAP_IZLUDE,      128, 114 }, //  6=Izlude
#endif
        { MAP_ALDEBARAN,   140, 131 }, //  7=Al de Baran
        { MAP_LUTIE,       147, 134 }, //  8=Lutie
        { MAP_COMODO,      209, 143 }, //  9=Comodo
        { MAP_YUNO,        157,  51 }, //  10=Yuno
        { MAP_AMATSU,      198,  84 }, // 11=Amatsu
        { MAP_GONRYUN,     160, 120 }, // 12=Gonryun
        { MAP_UMBALA,       89, 157 }, // 13=Umbala
        { MAP_NIFLHEIM,     21, 153 }, // 14=Niflheim
        { MAP_LOUYANG,     217,  40 }, // 15=Louyang
#ifdef RENEWAL
        { MAP_NOVICE,       97, 90  }, // 16=Training Grounds (Renewal)
#else
        { MAP_NOVICE,       53, 111 }, // 16=Training Grounds
#endif
        { MAP_JAIL,         23,  61 }, // 17=Prison
        { MAP_JAWAII,      249, 127 }, // 18=Jawaii
        { MAP_AYOTHAYA,    151, 117 }, // 19=Ayothaya
        { MAP_EINBROCH,     64, 200 }, // 20=Einbroch
        { MAP_LIGHTHALZEN, 158,  92 }, // 21=Lighthalzen
        { MAP_EINBECH,      70,  95 }, // 22=Einbech
        { MAP_HUGEL,        96, 145 }, // 23=Hugel
        { MAP_RACHEL,      130, 110 }, // 24=Rachel
        { MAP_VEINS,       216, 123 }, // 25=Veins
        { MAP_MOSCOVIA,    223, 184 }, // 26=Moscovia
        { MAP_MIDCAMP,     180, 240 }, // 27=Midgard Camp
        { MAP_MANUK,       282, 138 }, // 28=Manuk
        { MAP_SPLENDIDE,   201, 147 }, // 29=Splendide
        { MAP_BRASILIS,    182, 239 }, // 30=Brasilis
        { MAP_DICASTES,    198, 187 }, // 31=El Dicastes
        { MAP_MORA,         44, 151 }, // 32=Mora
        { MAP_DEWATA,      200, 180 }, // 33=Dewata
        { MAP_MALANGDO,    140, 114 }, // 34=Malangdo Island
        { MAP_MALAYA,      242, 211 }, // 35=Malaya Port
        { MAP_ECLAGE,      110,  39 }, // 36=Eclage
    };

    nullpo_retr(-1, sd);

    if( map[sd->bl.m].flag.nogo && !pc_has_permission(sd, PC_PERM_WARP_ANYWHERE) ) {
        clif_displaymessage(sd->fd,msg_txt(sd,995)); // You cannot use @go on this map.
        return 0;
    }

    memset(map_name, '\0', sizeof(map_name));
    memset(atcmd_output, '\0', sizeof(atcmd_output));

    // get the number
    town = atoi(message);

    if (!message || !*message || sscanf(message, "%11s", map_name) < 1 || town < 0 || town >= ARRAYLENGTH(data))
    {// no value matched so send the list of locations
        const char* text;

        // attempt to find the text help string
        text = atcommand_help_string( command );

        clif_displaymessage(fd, msg_txt(sd,38)); // Invalid location number, or name.

        if( text )
        {// send the text to the client
            clif_displaymessage( fd, text );
        }

        return -1;
    }

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

    if (town >= 0 && town < ARRAYLENGTH(data))
    {
        int16 m = map_mapname2mapid(data[town].map);
        if (m >= 0 && map[m].flag.nowarpto && !pc_has_permission(sd, PC_PERM_WARP_ANYWHERE)) {
            clif_displaymessage(fd, msg_txt(sd,247));
            return -1;
        }
        if (sd->bl.m >= 0 && map[sd->bl.m].flag.nowarp && !pc_has_permission(sd, PC_PERM_WARP_ANYWHERE)) {
            clif_displaymessage(fd, msg_txt(sd,248));
            return -1;
        }
        if (pc_setpos(sd, mapindex_name2id(data[town].map), data[town].x, data[town].y, CLR_TELEPORT) == SETPOS_OK) {
            clif_displaymessage(fd, msg_txt(sd,0)); // Warped.
        } else {
            clif_displaymessage(fd, msg_txt(sd,1)); // Map not found.
            return -1;
        }
    } else { // if you arrive here, you have an error in town variable when reading of names
        clif_displaymessage(fd, msg_txt(sd,38)); // Invalid location number or name.
        return -1;
    }

    return 0;
}

 

screenBeastRO002.jpg

Edited by jmsngls
quote > code
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  02/22/18
  • Last Seen:  

On 7/3/2017 at 8:13 PM, jmsngls said:

How can I change in game @go town list? I tried finding the 3rd step but I dont find anything like that in my atcommand.c


 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=Brasilis");
 clif_displaymessage(fd, " 27=Manuk		   28=Splendide");
 return -1;
}

I can't find anything like that in my atcommand.c

Only this


/*==========================================
 * @go [city_number or city_name] - Updated by Harbin
 *------------------------------------------*/
ACMD_FUNC(go)
{
    int i;
    int town;
    char map_name[MAP_NAME_LENGTH];

    const struct {
        char map[MAP_NAME_LENGTH];
        int x, y;
    } data[] = {
        { MAP_CRYSTILIA,    67,  79 }, //  0=Crystilia
        { MAP_PRONTERA,    156, 191 }, //  1=Prontera
        { MAP_MORROC,      156,  93 }, //  2=Morroc
        { MAP_GEFFEN,      119,  59 }, //  3=Geffen
        { MAP_PAYON,       162, 233 }, //  4=Payon
        { MAP_ALBERTA,     192, 147 }, //  5=Alberta
#ifdef RENEWAL
        { MAP_IZLUDE,      128, 146 }, //  6=Izlude (Renewal)
#else
        { MAP_IZLUDE,      128, 114 }, //  6=Izlude
#endif
        { MAP_ALDEBARAN,   140, 131 }, //  7=Al de Baran
        { MAP_LUTIE,       147, 134 }, //  8=Lutie
        { MAP_COMODO,      209, 143 }, //  9=Comodo
        { MAP_YUNO,        157,  51 }, //  10=Yuno
        { MAP_AMATSU,      198,  84 }, // 11=Amatsu
        { MAP_GONRYUN,     160, 120 }, // 12=Gonryun
        { MAP_UMBALA,       89, 157 }, // 13=Umbala
        { MAP_NIFLHEIM,     21, 153 }, // 14=Niflheim
        { MAP_LOUYANG,     217,  40 }, // 15=Louyang
#ifdef RENEWAL
        { MAP_NOVICE,       97, 90  }, // 16=Training Grounds (Renewal)
#else
        { MAP_NOVICE,       53, 111 }, // 16=Training Grounds
#endif
        { MAP_JAIL,         23,  61 }, // 17=Prison
        { MAP_JAWAII,      249, 127 }, // 18=Jawaii
        { MAP_AYOTHAYA,    151, 117 }, // 19=Ayothaya
        { MAP_EINBROCH,     64, 200 }, // 20=Einbroch
        { MAP_LIGHTHALZEN, 158,  92 }, // 21=Lighthalzen
        { MAP_EINBECH,      70,  95 }, // 22=Einbech
        { MAP_HUGEL,        96, 145 }, // 23=Hugel
        { MAP_RACHEL,      130, 110 }, // 24=Rachel
        { MAP_VEINS,       216, 123 }, // 25=Veins
        { MAP_MOSCOVIA,    223, 184 }, // 26=Moscovia
        { MAP_MIDCAMP,     180, 240 }, // 27=Midgard Camp
        { MAP_MANUK,       282, 138 }, // 28=Manuk
        { MAP_SPLENDIDE,   201, 147 }, // 29=Splendide
        { MAP_BRASILIS,    182, 239 }, // 30=Brasilis
        { MAP_DICASTES,    198, 187 }, // 31=El Dicastes
        { MAP_MORA,         44, 151 }, // 32=Mora
        { MAP_DEWATA,      200, 180 }, // 33=Dewata
        { MAP_MALANGDO,    140, 114 }, // 34=Malangdo Island
        { MAP_MALAYA,      242, 211 }, // 35=Malaya Port
        { MAP_ECLAGE,      110,  39 }, // 36=Eclage
    };

    nullpo_retr(-1, sd);

    if( map[sd->bl.m].flag.nogo && !pc_has_permission(sd, PC_PERM_WARP_ANYWHERE) ) {
        clif_displaymessage(sd->fd,msg_txt(sd,995)); // You cannot use @go on this map.
        return 0;
    }

    memset(map_name, '\0', sizeof(map_name));
    memset(atcmd_output, '\0', sizeof(atcmd_output));

    // get the number
    town = atoi(message);

    if (!message || !*message || sscanf(message, "%11s", map_name) < 1 || town < 0 || town >= ARRAYLENGTH(data))
    {// no value matched so send the list of locations
        const char* text;

        // attempt to find the text help string
        text = atcommand_help_string( command );

        clif_displaymessage(fd, msg_txt(sd,38)); // Invalid location number, or name.

        if( text )
        {// send the text to the client
            clif_displaymessage( fd, text );
        }

        return -1;
    }

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

    if (town >= 0 && town < ARRAYLENGTH(data))
    {
        int16 m = map_mapname2mapid(data[town].map);
        if (m >= 0 && map[m].flag.nowarpto && !pc_has_permission(sd, PC_PERM_WARP_ANYWHERE)) {
            clif_displaymessage(fd, msg_txt(sd,247));
            return -1;
        }
        if (sd->bl.m >= 0 && map[sd->bl.m].flag.nowarp && !pc_has_permission(sd, PC_PERM_WARP_ANYWHERE)) {
            clif_displaymessage(fd, msg_txt(sd,248));
            return -1;
        }
        if (pc_setpos(sd, mapindex_name2id(data[town].map), data[town].x, data[town].y, CLR_TELEPORT) == SETPOS_OK) {
            clif_displaymessage(fd, msg_txt(sd,0)); // Warped.
        } else {
            clif_displaymessage(fd, msg_txt(sd,1)); // Map not found.
            return -1;
        }
    } else { // if you arrive here, you have an error in town variable when reading of names
        clif_displaymessage(fd, msg_txt(sd,38)); // Invalid location number or name.
        return -1;
    }

    return 0;
}

 

screenBeastRO002.jpg

same issue

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  05/16/21
  • Last Seen:  

Eu já consegui alterar o @go, funcionando perfeitamente.
Mas não estou encontrando onde muda o nome dos mapas na apresentação in-game.
Tipo, quando digita @go e da enter, são apresentadas os nomes das cidades e os números de seus respectivos go.

Antigamente esses nomes que são apresentados in-game, eram alterados no arquivo "help", mas no novo emulador não tem mais esse arquivo. Onde é feita a alteração atualmente dos nomes?

 

Repito, o comando @go já consegui alterar para os mapas desejados. Só gostaria de saber como altera o nome que apresenta na tela do jogo:

 

image.png.8b0782667a1ae303991336fb757bc460.png

 

-------------------------

Edit: ACHEIIIIIII!!

Para quem quiser saber é o arquivo atcommands.yml em rathena-master\conf\atcommands.yml

❤️

 

Edited by PBPaschoal
Link to comment
Share on other sites

  • -1

  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  296
  • Reputation:   4
  • Joined:  02/19/17
  • Last Seen:  

How to change @go 16 to pay_arche?

Current @go 16 is prison/jail

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  967
  • Reputation:   53
  • Joined:  11/13/11
  • Last Seen:  

of course

give some informations like mapname( x ) ( y ) of the @go 0 <-- melina

Edited by KeiKun
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

Read this.. @go

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   4
  • Joined:  11/10/11
  • Last Seen:  

For more @go support, please check this link

http://www.eathena.w...howtopic=205044

Just change

		{ 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

And define your custom map on mapindex.h

And don't forget to change this line too

   	 clif_displaymessage(fd, " 0=Prontera		 1=Morroc	   2=Geffen");

	if (strncmp(map_name, "prontera", 3) == 0) {
	town = 0;

Edited by GHul
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  231
  • Reputation:   23
  • Joined:  12/18/11
  • Last Seen:  

i put 64 64 mellina that will be @go 0 the the @go 1 will be prontera then @go 2 @go 3 etcc.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  491
  • Reputation:   19
  • Joined:  11/19/11
  • Last Seen:  

i put 64 64 mellina that will be @go 0 the the @go 1 will be prontera then @go 2 @go 3 etcc.

have you compiled?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  231
  • Reputation:   23
  • Joined:  12/18/11
  • Last Seen:  

nope im basing on rathena wiki

if i add another line then it will be 26 it is alright?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   4
  • Joined:  11/10/11
  • Last Seen:  

Kinda bored right now. So I actually make a Diff for you. Might miss something here.

You need to recompile your src with this Diff.

atcmd_go.patch

Edited by GHul
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  231
  • Reputation:   23
  • Joined:  12/18/11
  • Last Seen:  

how to add it by patch dont know how

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

Since i have sometime......

src/common/mapindex.h

add this

//Some definitions for the mayor city maps.
#define MAP_MELLINA "mellina"


src/map/atcommand.c

find this

 const struct {
 char map[MAP_NAME_LENGTH];
 int x, y;
} data[] = {
 { 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_BRASILIS,    182, 239 }, // 26=Brasilis
 { MAP_MANUK,	   282, 138 }, // 27=Manuk
 { MAP_SPLENDIDE,   197, 176 }, // 28=Splendide
};

change to this

 const struct {
 char map[MAP_NAME_LENGTH];
 int x, y;
} data[] = {
 { MAP_MELLINA,  64,64 }, //  0=Mellina
 { MAP_PRONTERA,    156, 191 }, //  1=Prontera
 { MAP_MORROC,	  156,  93 }, //  2=Morroc
 { MAP_GEFFEN,	  119,  59 }, //  3=Geffen
 { MAP_PAYON,	   162, 233 }, //  4=Payon
 { MAP_ALBERTA,	 192, 147 }, //  5=Alberta
 { MAP_IZLUDE,	  128, 114 }, //  6=Izlude
 { MAP_ALDEBARAN,   140, 131 }, //  7=Al de Baran
 { MAP_LUTIE,	   147, 134 }, //  8=Lutie
 { MAP_COMODO,	  209, 143 }, //  9=Comodo
 { MAP_YUNO,	    157,  51 }, //  10=Yuno
 { MAP_AMATSU,	  198,  84 }, // 11=Amatsu
 { MAP_GONRYUN,	 160, 120 }, // 12=Gonryun
 { MAP_UMBALA,	   89, 157 }, // 13=Umbala
 { MAP_NIFLHEIM,	 21, 153 }, // 14=Niflheim
 { MAP_LOUYANG,	 217,  40 }, // 15=Louyang
 { MAP_NOVICE,	   53, 111 }, // 16=Training Grounds
 { MAP_JAIL,		 23,  61 }, // 17=Prison
 { MAP_JAWAII,	  249, 127 }, // 18=Jawaii
 { MAP_AYOTHAYA,    151, 117 }, // 19=Ayothaya
 { MAP_EINBROCH,	 64, 200 }, // 20=Einbroch
 { MAP_LIGHTHALZEN, 158,  92 }, // 21=Lighthalzen
 { MAP_EINBECH,	  70,  95 }, // 22=Einbech
 { MAP_HUGEL,	    96, 145 }, // 23=Hugel
 { MAP_RACHEL,	  130, 110 }, // 24=Rachel
 { MAP_VEINS,	   216, 123 }, // 25=Veins
 { MAP_MOSCOVIA,    223, 184 }, // 26=Moscovia
 { MAP_BRASILIS,    182, 239 }, // 27=Brasilis
 { MAP_MANUK,	   282, 138 }, // 28=Manuk
 { MAP_SPLENDIDE,   197, 176 }, // 29=Splendide
};

Now...find this

 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=Brasilis");
 clif_displaymessage(fd, " 27=Manuk		   28=Splendide");
 return -1;
}

change to this

 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=Mellina 1=Prontera		 2=Morroc	   3=Geffen");
 clif_displaymessage(fd, " 4=Payon		   5=Alberta	  6=Izlude");
 clif_displaymessage(fd, " 7=Al De Baran	  8=Lutie	    9=Comodo");
 clif_displaymessage(fd, " 10=Yuno			 11=Amatsu	  12=Gonryun");
 clif_displaymessage(fd, " 13=Umbala		  14=Niflheim    15=Louyang");
 clif_displaymessage(fd, " 16=Novice Grounds  17=Prison	  18=Jawaii");
 clif_displaymessage(fd, " 19=Ayothaya	    20=Einbroch    21=Lighthalzen");
 clif_displaymessage(fd, " 22=Einbech		 23=Hugel	   24=Rachel");
 clif_displaymessage(fd, " 25=Veins		   26=Moscovia    27=Brasilis");
 clif_displaymessage(fd, " 28=Manuk		   29=Splendide");
 return -1;
}


then find this

 // 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, "brasilis", 3) == 0) {
 town = 26;
} else if (strncmp(map_name, "manuk", 3) == 0) {
 town = 27;
} else if (strncmp(map_name, "splendide", 3) == 0) {
 town = 28;
}

change to this..

 // 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, "mellina", 3) == 0) {
 town = 0;
} else if (strncmp(map_name, "prontera", 3) == 0) {
 town = 1;
} else if (strncmp(map_name, "morocc", 3) == 0) {
 town = 2;
} else if (strncmp(map_name, "geffen", 3) == 0) {
 town = 3;
} else if (strncmp(map_name, "payon", 3) == 0 ||
	    strncmp(map_name, "paion", 3) == 0) {
 town = 4;
} else if (strncmp(map_name, "alberta", 3) == 0) {
 town = 5;
} else if (strncmp(map_name, "izlude", 3) == 0 ||
	    strncmp(map_name, "islude", 3) == 0) {
 town = 6;
} else if (strncmp(map_name, "aldebaran", 3) == 0 ||
	    strcmp(map_name,  "al") == 0) {
 town = 7;
} 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 = 8;
} else if (strncmp(map_name, "comodo", 3) == 0) {
 town = 9;
} else if (strncmp(map_name, "yuno", 3) == 0) {
 town = 10;
} else if (strncmp(map_name, "amatsu", 3) == 0) {
 town = 11;
} else if (strncmp(map_name, "gonryun", 3) == 0) {
 town = 12;
} else if (strncmp(map_name, "umbala", 3) == 0) {
 town = 13;
} else if (strncmp(map_name, "niflheim", 3) == 0) {
 town = 14;
} else if (strncmp(map_name, "louyang", 3) == 0) {
 town = 15;
} else if (strncmp(map_name, "new_1-1", 3) == 0 ||
	    strncmp(map_name, "startpoint", 3) == 0 ||
	    strncmp(map_name, "begining", 3) == 0) {
 town = 16;
} else if (strncmp(map_name, "sec_pri", 3) == 0 ||
	    strncmp(map_name, "prison", 3) == 0 ||
	    strncmp(map_name, "jails", 3) == 0) {
 town = 17;
} else if (strncmp(map_name, "jawaii", 3) == 0 ||
	    strncmp(map_name, "jawai", 3) == 0) {
 town = 18;
} else if (strncmp(map_name, "ayothaya", 3) == 0 ||
	    strncmp(map_name, "ayotaya", 3) == 0) {
 town = 19;
} else if (strncmp(map_name, "einbroch", 5) == 0 ||
	    strncmp(map_name, "ainbroch", 5) == 0) {
 town = 20;
} else if (strncmp(map_name, "lighthalzen", 3) == 0) {
 town = 21;
} else if (strncmp(map_name, "einbech", 3) == 0) {
 town = 22;
} else if (strncmp(map_name, "hugel", 3) == 0) {
 town = 23;
} else if (strncmp(map_name, "rachel", 3) == 0) {
 town = 24;
} else if (strncmp(map_name, "veins", 3) == 0) {
 town = 25;
} else if (strncmp(map_name, "moscovia", 3) == 0) {
 town = 26;
} else if (strncmp(map_name, "brasilis", 3) == 0) {
 town = 27;
} else if (strncmp(map_name, "manuk", 3) == 0) {
 town = 28;
} else if (strncmp(map_name, "splendide", 3) == 0) {
 town = 29;
}

Lastly...Recompile.....using Microsoft Visual C++ 2010 or any Compiler you have

  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  231
  • Reputation:   23
  • Joined:  12/18/11
  • Last Seen:  

the patch rejected

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   4
  • Joined:  11/10/11
  • Last Seen:  

Reject? Are you using rAthena SVN?

Try Emistry Guide if the patch does not work for you.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  231
  • Reputation:   23
  • Joined:  12/18/11
  • Last Seen:  

i got error on recompiling

9>srcmapatcommand.c(2320): error C2065: 'MAP_BRASILIS' : undeclared identifier

9>srcmapatcommand.c(2321): error C2065: 'MAP_MANUK' : undeclared identifier

9>srcmapatcommand.c(2321): warning C4305: 'initializing' : truncation from 'int' to 'char'

9>srcmapatcommand.c(2322): error C2065: 'MAP_SPLENDIDE' : undeclared identifier

Edited by lakasmonk123
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

add this inside

src/common/mapindex.h

#define MAP_BRASILIS "brasilis"
#define MAP_MANUK "manuk"
#define MAP_SPLENDIDE "splendide"

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  231
  • Reputation:   23
  • Joined:  12/18/11
  • Last Seen:  

thank you emistry it works now and thank you to other who helped and post more power to you guys

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  2
  • Reputation:   0
  • Joined:  07/13/12
  • Last Seen:  

can some one help me

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

@justin

please elaborate your problem....

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  139
  • Reputation:   2
  • Joined:  07/05/12
  • Last Seen:  

@Emistry.. did u know how to patch on CentOS 5.8? i always getting error.. /abs if u do pls see my thread on linux support... tyvm.. :D

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