Postite 10 Posted November 6, 2015 Boas,Fiz umas pesquisas na net e aqui no forum e não encontrei nada sobre o script que adiciona os nomes nos anúncios de GM (/n), será que alguém me poderia disponibilizar isso ? Atenciosamente,Postite Share this post Link to post Share on other sites
Tyler Durden 556 Posted November 6, 2015 Tipo /n my name is jeff [GM]Postite: my name is jeffé isso? Share this post Link to post Share on other sites
Wery Oliveira 170 Posted November 6, 2015 tambem estou a procura disto se alguem souber agradeceria muito se compartilhasse Share this post Link to post Share on other sites
Rasta Man 71 Posted November 6, 2015 Tipo /n my name is jeff [GM]Postite: my name is jeffé isso? Sim é isso , támbem tenho essa dúvida :S Share this post Link to post Share on other sites
Owsap 201 Posted November 8, 2015 Se eu não me engano isto é no questlua_global.cpp int _notice(lua_State* L) { ostringstream s; combine_lua_string(L, s); CQuestManager::Instance().GetCurrentCharacterPtr()->ChatPacket(CHAT_TYPE_NOTICE, "%s", s.str().c_str()); // Aqui return 0; } // Muda para: int _notice(lua_State* L) { ostringstream s; combine_lua_string(L, s); CQuestManager::Instance().GetCurrentCharacterPtr()->ChatPacket(CHAT_TYPE_NOTICE, "%s", "%s", ch->GetName(), s.str().c_str()); // Aqui return 0; } Eu sinceramente não testei pois não sei se funciona mas acho que seja assim. Share this post Link to post Share on other sites
Rasta Man 71 Posted November 8, 2015 Se eu não me engano isto é no questlua_global.cpp int _notice(lua_State* L) { ostringstream s; combine_lua_string(L, s); CQuestManager::Instance().GetCurrentCharacterPtr()->ChatPacket(CHAT_TYPE_NOTICE, "%s", s.str().c_str()); // Aqui return 0; } // Muda para: int _notice(lua_State* L) { ostringstream s; combine_lua_string(L, s); CQuestManager::Instance().GetCurrentCharacterPtr()->ChatPacket(CHAT_TYPE_NOTICE, "%s", "%s", ch->GetName(), s.str().c_str()); // Aqui return 0; } Eu sinceramente não testei pois não sei se funciona mas acho que seja assim. E quem não usa source? Share this post Link to post Share on other sites
Owsap 201 Posted November 8, 2015 E quem não usa source? Usa diff.. Share this post Link to post Share on other sites
Rasta Man 71 Posted November 8, 2015 Poderás me mandar a diff então? Share this post Link to post Share on other sites
Owsap 201 Posted November 8, 2015 Poderás me mandar a diff então? Não sei fazer isso, sorry. Share this post Link to post Share on other sites
Postite 10 Posted November 16, 2015 Tipo /n my name is jeff [GM]Postite: my name is jeffé isso? O segundo! :) Share this post Link to post Share on other sites