Neste Codigo quando o player da loook no gm ou no tutor e os demais aparece assim:
You see God (Level 3). He is a God.
You see GM Gamemaster (Level 2). He is a Gamemaster.
You see SGM Senior Gamemaster (Level 2). He is a Senior Gamemaster.
Lista de Acess:
0 - Player
1 - Counsellor (displayed like a normal player)
2 - Gamemaster
3 - Senior Gamemaster
4- God
Aqui vai o code:
em player.cpp ache o seguinte code:
std::string Player::getDescription(int32_t lookDistance) const{
std::stringstream s;
std::string str;
if(lookDistance == -1){
s << "yourself.";
if(vocation != VOCATION_NONE)
s << " You are " << g_config.getVocationString((int)vocation) << ".";
else
s << " You have no vocation.";
}
else {
s << name << " (Level " << level <<").";
if(sex == PLAYERSEX_FEMALE)
s << " She";
else
s << " He";
if(vocation != VOCATION_NONE)
s << " is "<< g_config.getVocationString((int)vocation) << ".";
else
s << " has no vocation.";
}
Toque ele todo por este code:
Código:
std::string Player::getDescription(int32_t lookDistance) const{
std::stringstream s;
std::string str;
if(lookDistance == -1)
{
if(vocation != VOCATION_NONE || access > 1)
s << "yourself. You are ";
else
s << "yourself. You have no vocation.";
}
else
{
s << name << " (Level " << level <<").";
if(sex == PLAYERSEX_FEMALE)
s << " She ";
else
s << " He ";
if(vocation != VOCATION_NONE || access > 1)
s << "is ";
else
s << "has no vocation.";
}
switch(access)
{
case 0:
case 1:
if(vocation != VOCATION_NONE)
s << g_config.getVocationString((int)vocation) << ".";
break;
case 2:
s << "a gamemaster.";
break;
case 3:
s << "a senior gamemaster.";
break;
default:
s << "a god.";
break;
}
Créditos ao NeezmoK
Code By NeezmoK
Comentem!!