Postado Janeiro 19, 2016 9 anos Ola, alguem poderia me ajudar? Nao sei se estou na área correta, sou novo nisso. Se não tiver mudem por favor. Então, eu gostaria de saber como mudar a cor da fala da staff nos chats. Exemplo: Quando um staff fala no help, a cor sai laranja. Gostaria de por para todos os chats essa cor.. É para poketibia. Editado Janeiro 19, 2016 9 anos por matheusgt0 (veja o histórico de edições)
Postado Janeiro 19, 2016 9 anos Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680Este tópico foi movido: De: Scripting OTServ > OTServ > CreatureScripts, GlobalEvents e MoveMents Para: Suporte OTServ > OTServ > Suporte de Scripts Gente, não dou suporte via mp, caso queira ajuda crie um tópico no fórum!!! Ajudei? Clicar em gostar não vai te matar
Postado Janeiro 20, 2016 9 anos Isso é nas souces se caso tiver: Em chat .cpp procure isso: bool ChatChannel::talk Nessa função ache: if(it == m_users.end()) return false; Pule 2 linhas e coloque isso: SpeakClasses ntype = type; uint16_t channelId = getId(); if (channelId == 5) { if (player->getGroupId() == 6) { ntype = SPEAK_CHANNEL_RN; } else if (player->getGroupId() == 5) { ntype = SPEAK_CHANNEL_RN; } else if (player->getGroupId() == 4) { ntype = SPEAK_CHANNEL_RN; } else if(player->getGroupId() >= 2) { ntype = SPEAK_CHANNEL_O; } } Agora ache: it->second->sendToChannel(player, type, text, m_id, _time); E troque por: it->second->sendToChannel(player, ntype, text, m_id, _time); Como editar os grupos da staff: (player->getGroupId() == 5) O Cinco é o grupo no caso CM Como editar o chat id: if (channelId == 5) { - Aqui é o chat Id se não me engano é o Trade-Rookboard algo assim pelo menos no meu ai você troca pelo que você quiser. E basta compilar
Postado Janeiro 21, 2016 9 anos Autor 16 horas atrás, MySticaL disse: Isso é nas souces se caso tiver: Em chat .cpp procure isso: bool ChatChannel::talk Nessa função ache: if(it == m_users.end()) return false; Pule 2 linhas e coloque isso: SpeakClasses ntype = type; uint16_t channelId = getId(); if (channelId == 5) { if (player->getGroupId() == 6) { ntype = SPEAK_CHANNEL_RN; } else if (player->getGroupId() == 5) { ntype = SPEAK_CHANNEL_RN; } else if (player->getGroupId() == 4) { ntype = SPEAK_CHANNEL_RN; } else if(player->getGroupId() >= 2) { ntype = SPEAK_CHANNEL_O; } } Agora ache: it->second->sendToChannel(player, type, text, m_id, _time); E troque por: it->second->sendToChannel(player, ntype, text, m_id, _time); Como editar os grupos da staff: (player->getGroupId() == 5) O Cinco é o grupo no caso CM Como editar o chat id: if (channelId == 5) { - Aqui é o chat Id se não me engano é o Trade-Rookboard algo assim pelo menos no meu ai você troca pelo que você quiser. E basta compilar Vou testar lá cara, ja deixei seu Rep por ajudar Valew :D Editado Janeiro 21, 2016 9 anos por matheusgt0 (veja o histórico de edições)
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.