Popular Post Ryen Posted May 2, 2015 Popular Post Report Share Posted May 2, 2015 Hola gente, pues vi la guia en DEV me parecio intersante por que avces tenemos que estar cmabiado de raza por quest asi que con esto estaria genial cambiar de raza por un simple comando. La guia no es mia es de AlexxD La traduccion si es mia. 1. Abe to cmd.cpp y busca Debes iniciar sesión para ver el contenido del enlace en esta publicación. ACMD(do_vote_block_chat); depues de esa linea añadir esto Debes iniciar sesión para ver el contenido del enlace en esta publicación. // Change race ACMD(do_change_race); // Change race end 2. Tambien en cmd.cpp buscar Debes iniciar sesión para ver el contenido del enlace en esta publicación. // END_OF_BLOCK_CHAT depues de esa linea añadirr. Debes iniciar sesión para ver el contenido del enlace en esta publicación. // Change race { "change_race", do_change_race, 0, POS_DEAD, GM_IMPLEMENTOR }, // Change race end 3.Luego cmd_gm.cpp alfinal del todo pegas este codigo si tienes lycan Debes iniciar sesión para ver el contenido del enlace en esta publicación. ACMD(do_change_race) { char arg1[256], arg2[256]; two_arguments(argument, arg1, sizeof(arg1), arg2, sizeof(arg2)); // init bool bIsSetSkillGroup = false; DWORD dwRace = MAIN_RACE_MAX_NUM; DWORD dwSkillGroup = 0; // check arg1 if (!*arg1) { goto USAGE; return; } // check&analyze arg2 if (*arg2) { str_to_number(dwSkillGroup, arg2); dwSkillGroup = MINMAX(0, dwSkillGroup, 2); bIsSetSkillGroup = true; } // analyze arg1 str_to_number(dwRace, arg1); if (dwRace >= MAIN_RACE_MAX_NUM) { goto USAGE; return; } // skip if same race if (dwRace==ch->GetRaceNum()) return; // process change race ch->ChatPacket(CHAT_TYPE_INFO, "Old race=%u, Group=%u", ch->GetRaceNum(), ch->GetSkillGroup()); ch->SetRace(dwRace); ch->ClearSkill(); // ch->ClearSubSkill(); if (bIsSetSkillGroup) { ch->SetSkillGroup(dwSkillGroup); } // quick mesh change workaround begin ch->SetPolymorph(101); ch->SetPolymorph(0); // quick mesh change workaround end ch->ChatPacket(CHAT_TYPE_INFO, "New race=%u, Group=%u", ch->GetRaceNum(), ch->GetSkillGroup()); return; // Usage USAGE: ch->ChatPacket(CHAT_TYPE_INFO, "Usage: /change_race <race_id>"); // lista raselor ch->ChatPacket(CHAT_TYPE_INFO, "Races list:"); ch->ChatPacket(CHAT_TYPE_INFO, "\tWarrior M = %d", MAIN_RACE_WARRIOR_M); ch->ChatPacket(CHAT_TYPE_INFO, "\tNinja F = %d", MAIN_RACE_ASSASSIN_W); ch->ChatPacket(CHAT_TYPE_INFO, "\tSura M = %d", MAIN_RACE_SURA_M); ch->ChatPacket(CHAT_TYPE_INFO, "\tShaman F = %d", MAIN_RACE_SHAMAN_W); ch->ChatPacket(CHAT_TYPE_INFO, "\tWarrior W = %d", MAIN_RACE_WARRIOR_W); ch->ChatPacket(CHAT_TYPE_INFO, "\tNinja M = %d", MAIN_RACE_ASSASSIN_M); ch->ChatPacket(CHAT_TYPE_INFO, "\tSura W = %d", MAIN_RACE_SURA_W); ch->ChatPacket(CHAT_TYPE_INFO, "\tShaman M = %d", MAIN_RACE_SHAMAN_M); ch->ChatPacket(CHAT_TYPE_INFO, "\tWolfman M = %d", MAIN_RACE_WOLFMAN_M); ch->ChatPacket(CHAT_TYPE_INFO, "\tMax race number = %d", MAIN_RACE_MAX_NUM); // Group lists. ch->ChatPacket(CHAT_TYPE_INFO, "Lista grupelor:"); ch->ChatPacket(CHAT_TYPE_INFO, "\tNone = 0"); ch->ChatPacket(CHAT_TYPE_INFO, "\tFirst = 1"); ch->ChatPacket(CHAT_TYPE_INFO, "\tSecond = 2"); return; } 4.Eso seria todo. 2)Si no tienes lycan o simplemente quieres tener solo 4 razas as de pegar este otro codigo en cmd_gm.cpp: ? ACMD(do_change_race) { char arg1[256], arg2[256]; two_arguments(argument, arg1, sizeof(arg1), arg2, sizeof(arg2)); // init bool bIsSetSkillGroup = false; DWORD dwRace = MAIN_RACE_MAX_NUM; DWORD dwSkillGroup = 0; // check arg1 if (!*arg1) { goto USAGE; return; } // check&analyze arg2 if (*arg2) { str_to_number(dwSkillGroup, arg2); dwSkillGroup = MINMAX(0, dwSkillGroup, 2); bIsSetSkillGroup = true; } // analyze arg1 str_to_number(dwRace, arg1); if (dwRace >= MAIN_RACE_MAX_NUM) { goto USAGE; return; } // skip if same race if (dwRace==ch->GetRaceNum()) return; // process change race ch->ChatPacket(CHAT_TYPE_INFO, "Old race=%u, Group=%u", ch->GetRaceNum(), ch->GetSkillGroup()); ch->SetRace(dwRace); ch->ClearSkill(); // ch->ClearSubSkill(); if (bIsSetSkillGroup) { ch->SetSkillGroup(dwSkillGroup); } // quick mesh change workaround begin ch->SetPolymorph(101); ch->SetPolymorph(0); // quick mesh change workaround end ch->ChatPacket(CHAT_TYPE_INFO, "New race=%u, Group=%u", ch->GetRaceNum(), ch->GetSkillGroup()); return; // Usage USAGE: ch->ChatPacket(CHAT_TYPE_INFO, "Usage: /change_race <race_id>"); // lista raselor ch->ChatPacket(CHAT_TYPE_INFO, "Races list:"); ch->ChatPacket(CHAT_TYPE_INFO, "\tWarrior M = %d", MAIN_RACE_WARRIOR_M); ch->ChatPacket(CHAT_TYPE_INFO, "\tNinja F = %d", MAIN_RACE_ASSASSIN_W); ch->ChatPacket(CHAT_TYPE_INFO, "\tSura M = %d", MAIN_RACE_SURA_M); ch->ChatPacket(CHAT_TYPE_INFO, "\tShaman F = %d", MAIN_RACE_SHAMAN_W); ch->ChatPacket(CHAT_TYPE_INFO, "\tWarrior W = %d", MAIN_RACE_WARRIOR_W); ch->ChatPacket(CHAT_TYPE_INFO, "\tNinja M = %d", MAIN_RACE_ASSASSIN_M); ch->ChatPacket(CHAT_TYPE_INFO, "\tSura W = %d", MAIN_RACE_SURA_W); ch->ChatPacket(CHAT_TYPE_INFO, "\tShaman M = %d", MAIN_RACE_SHAMAN_M); ch->ChatPacket(CHAT_TYPE_INFO, "\tMax race number = %d", MAIN_RACE_MAX_NUM); // Group lists. ch->ChatPacket(CHAT_TYPE_INFO, "Lista grupelor:"); ch->ChatPacket(CHAT_TYPE_INFO, "\tNone = 0"); ch->ChatPacket(CHAT_TYPE_INFO, "\tFirst = 1"); ch->ChatPacket(CHAT_TYPE_INFO, "\tSecond = 2"); return; } Espero que disfruten con esto por que es muy comodo. Ahora solo es compilar el game dejare los comandos de compilado cd /ruta/[ENTER] gmake clean [ENTER] gmake -j20 [ENTER] Ahora para comprimir el game deberis poner la ruta donde se compilo el game que norlmanete es la carpeta anterior donde esta los archivos del source Para comprimir usamos el comando strip -s [NOMBRE]-[ENTER] Y listo eso es todo un saludo. TheDead, martinmonstry, llollo300 and 40 others 38 1 1 1 2 Quote Link to comment Share on other sites More sharing options...
Jeo Posted May 2, 2015 Report Share Posted May 2, 2015 Chacho por lo menos pon el codigo con "codigo" del foro para que quede más bonito. Interesante.. buen aporte. llollo300 and TheKing24 2 Quote Link to comment Share on other sites More sharing options...
Ryen Posted May 2, 2015 Author Report Share Posted May 2, 2015 Chacho por lo menos pon el codigo con "codigo" del foro para que quede más bonito. Interesante.. buen aporte. Listo ya esta editado. PD: no lo habia provado lo e probado y almenos ami me da error al compilar la parte del cmd_gm.cpp ni idea por que si alguien que sepa revisa la guia y encuentra elf allo loq ue sobra o falta se agradece Quote Link to comment Share on other sites More sharing options...
juanm151 Posted March 30, 2016 Report Share Posted March 30, 2016 Solo es quitar el "?" que aparece al principio 2)Si no tienes lycan o simplemente quieres tener solo 4 razas as de pegar este otro codigo en cmd_gm.cpp: ? ACMD(do_change_race) { char arg1[256], arg2[256]; two_arguments(argument, arg1, sizeof(arg1), arg2, sizeof(arg2)); // init bool bIsSetSkillGroup = false; DWORD dwRace = MAIN_RACE_MAX_NUM; DWORD dwSkillGroup = 0; // check arg1 if (!*arg1) { DaksaM 1 Quote Link to comment Share on other sites More sharing options...
SuperGamix Posted March 30, 2016 Report Share Posted March 30, 2016 Si no tengo lykan, tengo que pegar los 2 codigos o solo 1? e_e*EDITO* Ya esta :v Quote Link to comment Share on other sites More sharing options...
Marcos Pinheiro Posted April 16, 2016 Report Share Posted April 16, 2016 Qual es el comando para cambiar raza? Quote Link to comment Share on other sites More sharing options...
Tyrael Posted April 16, 2016 Report Share Posted April 16, 2016 lee las lineas ahi esta el comando declarado varias veces <.< Quote Link to comment Share on other sites More sharing options...
Marcos Pinheiro Posted May 4, 2016 Report Share Posted May 4, 2016 lee las lineas ahi esta el comando declarado varias veces <.< Seria /tSura M por exemplo? Quote Link to comment Share on other sites More sharing options...
PanchoElMaraca Posted May 4, 2016 Report Share Posted May 4, 2016 Seria /tSura M por exemplo? /change_race Y TE APARECERAN LOS ID's Ahora, /change_race "id" y te cambia. Quote Link to comment Share on other sites More sharing options...
Marcos Pinheiro Posted May 4, 2016 Report Share Posted May 4, 2016 /change_race Y TE APARECERAN LOS ID's Ahora, /change_race "id" y te cambia. Gracias Quote Link to comment Share on other sites More sharing options...
mrsanty Posted November 13, 2017 Report Share Posted November 13, 2017 muchas gracias por compartirlo, mira vos no savia de ese comando. strip -s [NOMBRE]-[ENTER] que comprime el source. Quote Link to comment Share on other sites More sharing options...
[ADM]Aquiles Posted June 5, 2022 Report Share Posted June 5, 2022 gracias Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.