What's new

-Tibia 7.60 [7.6] Kolory na kana?ach

Status
Not open for further replies.

Thorge D

Advanced User
Joined
Jul 24, 2014
Messages
300
Reaction score
29
Autor: Baabuseek

chat.cpp w funkcji:
[CPP]bool Chat::talkToChannel(Player *player, SpeakClasses type, std::string &text, unsigned short channelId)[/CPP]
nad:
[CPP]if(channel->talk(player, type, text, channelId))
return true;
else
return false;[/CPP]
dodaj:
[CPP]#ifdef _BBK_ACCESS_COLOR
switch(player->access)
{
case 0: type = SPEAK_CHANNEL_Y; break;
case 1: case 2: type = SPEAK_CHANNEL_O; break;
default: type = SPEAK_CHANNEL_R1; break;
}
#endif //_BBK_ACCESS_COLOR[/CPP]

W protocol76.cpp pod:
[CPP]type == SPEAK_CHANNEL_R1 ||[/CPP]
dodaj:
[CPP]#ifdef _BBK_ACCESS_COLOR
type == SPEAK_CHANNEL_O ||
#endif //_BBK_ACCESS_COLOR[/CPP]
troch? ni?ej pod:
[CPP] case SPEAK_CHANNEL_R2:[/CPP]
dodaj:
[CPP]#ifdef _BBK_ACCESS_COLOR
case SPEAK_CHANNEL_O:
#endif //_BBK_ACCESS_COLOR[/CPP]
znajd?:
[CPP]void Protocol76::AddCreatureSpeak(NetworkMessage &msg,const Creature *creature, SpeakClasses type, std::string text, unsigned short channelId)[/CPP]
i pod:
[CPP] case SPEAK_CHANNEL_R2:[/CPP]
dodaj:
[CPP]#ifdef _BBK_ACCESS_COLOR
case SPEAK_CHANNEL_O:
#endif //_BBK_ACCESS_COLOR[/CPP]

Na koniec dodaj do parametr?w projektu:
Code:
-D_BBK_ACCESS_COLOR

Sprawdzane Yurots F dzia?a.
 
Status
Not open for further replies.
Top