Ir para conteúdo

Posts Recomendados

Bom muitos tem a duvida de como fazer tutor falar em Laranja no game chat e help e GM,CM,GOd falar em Vermelho entao la vai o Tutorial

 

 

precisa editar os source assim.

 

Em chat.cpp procure por:

 

bool ChatChannel::talk

 

Nessa function ache:

 

if(it == m_users.end())

return false;

 

Pule 2 linhas e bote isso:

 

SpeakClasses ntype = type;

uint16_t channelId = getId();

if (channelId == 5) {

if (player->getGroupId() == 6) {

ntype = SPEAK_CHANNEL_RN;

}

else if(player->getGroupId() >= 2) {

ntype = SPEAK_CHANNEL_O;

}

 

}

Agora ache:

 

it->second->sendToChannel(player, type, text, m_id, _time);

 

Troque essa linha por:

 

it->second->sendToChannel(player, ntype, text, m_id, _time);

 

Bom Assim os Gods Falaram em Vermelho, e os game master , communyti managers e tutores falaram em laranja

Mais Akzs Como Fazer para que GODS , GMS e CMS falem em vermelho. Simples so Editar assim

 

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;

}

}

Pronto Aperta F9 e Compila e estara pronto.

 

 

Como Editar os Groups ?

 

(player->getGroupId() == 5)
No Caso ali esta getGroupId no caso esta "5" Entao esta para acesso de CM Caso queria editar coloca o Valor do Access ali.

OBS:o Ultimo Codigo Esse aki embaixo \/ Ele esta Para Todos Grupos

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;

}

}

Link para o comentário
https://xtibia.com/forum/topic/191325-ctutor-falar-em-laranja-e-god-em-vermelho/
Compartilhar em outros sites

  • 5 years later...
42 minutos atrás, Bennyyw disse:

 

cê reviveu o tópico só pra mostrar seu otclient editado

tá me zoando, né?

 

DKOSAOPDKSAOPDKASPODKAS DESCULPA SPAMMAR, MAS TIVE QUE RIR ( SE FOR DAR BAN, AVISA ANTES )

O Maluco revive um bagulho de 2012 pra mostrar OTClient JDIOASKDAOPDKASPO

 

Link para o comentário
https://xtibia.com/forum/topic/191325-ctutor-falar-em-laranja-e-god-em-vermelho/#findComment-1725489
Compartilhar em outros sites

 

if (channelId == 5 || channelId == 9) 
{
   if (player->getGroupId() > 3) 
   {ntype = SPEAK_CHANNEL_RN;}
   else if(player->getGroupId() > 1)
   {ntype = SPEAK_CHANNEL_O;}
}

 

 

 

Link para o comentário
https://xtibia.com/forum/topic/191325-ctutor-falar-em-laranja-e-god-em-vermelho/#findComment-1725500
Compartilhar em outros sites

15 horas atrás, Bennyyw disse:

 

cê reviveu o tópico só pra mostrar seu otclient editado

tá me zoando, né?

 

Pow Benny faz isso comigo não, to chorando de rir aqui huehuehuehuehuehuehue

Link para o comentário
https://xtibia.com/forum/topic/191325-ctutor-falar-em-laranja-e-god-em-vermelho/#findComment-1725505
Compartilhar em outros sites

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...