that isn't a folder, it is a file of the ot sourcesWhere is folder player.cpp?
okey where this file?
Not working - The c++ code.
I don't get any errors. I game it is the same as normal:
You see yourself. You are a paladin. You are a memeber of blalbla guild.. No more.
std::string Player::getDescription(int32_t lookDistance) const
std::string Player::getPVPRank(uint32_t level) const
{
std::string ranga = "Newbie";
if(level >= 20 && level <= 25)
{
ranga = "Player";
}
else if(level > 25 && level <= 30)
{
ranga = "Regular";
}
else if(level > 30 && level <= 50)
{
ranga = "Hunter";
}
else if(level > 50 && level <= 100)
{
ranga = "Demon";
}
else if(level > 100)
{
ranga = "Master";
}
return ranga;
std::string Player::getDescription(int32_t lookDistance) const
std::string Player::getDescription(int32_t lookDistance) const
{
std::stringstream s;
std::string str;
if(lookDistance == -1)
{
s << "yourself.";
if(accessLevel != 0)
s << " You are " << groupName << ".";
else if(vocation_id != VOCATION_NONE)
s << " You are " << vocation->getVocDescription() << ".";
else
s << " You have no vocation.";
s << " Rank: ";
std::string rank = Player::getPVPRank(level);
s << rank << ".";
}
else
{
s << name;
if(accessLevel == 0)
s << " (Level " << level << ")";
s << ".";
if(sex == PLAYERSEX_FEMALE)
{
s << " She";
}
else
{
s << " He";
}
if(accessLevel != 0)
s << " is " << groupName << ".";
else if(vocation_id != VOCATION_NONE)
s << " is " << vocation->getVocDescription() << ".";
else
s << " has no vocation.";
s << " Rank: ";
std::string rank = Player::getPVPRank(level); //rangi
s << rank << ".";
}
if(guildId)
{
if(lookDistance == -1)
s << " You are ";
else
{
if(sex == PLAYERSEX_FEMALE)
s << " She is ";
else
s << " He is ";
}
if(guildRank.length())
s << guildRank;
else
s << "a member";
s << " of the " << guildName;
if(guildNick.length())
s << " (" << guildNick << ")";
s << ".";
}
str = s.str();
return str;
}
virtual std::string getDescription(int32_t lookDistance) const;
virtual std::string getPVPRank(uint32_t level) const; //rangi
Its possible in Lua since yesterday ;p
I post it 2 days ago... ;p