A única maneira viável é alterar isso aqui no arquivo player.cpp das sources de seu servidor:
void Player::addExperience(uint64_t exp)
{
uint32_t prevLevel = level;
uint64_t nextLevelExp = Player::getExpForLevel(level + 1);
if(Player::getExpForLevel(level) > nextLevelExp)
{
//player has reached max level
levelPercent = 0;
sendStats();
return;
}
experience += exp;
while(experience >= nextLevelExp)
{
healthMax += vocation->getGain(GAIN_HEALTH);
health += vocation->getGain(GAIN_HEALTH);
manaMax += vocation->getGain(GAIN_MANA);
mana += vocation->getGain(GAIN_MANA);
capacity += vocation->getGainCap();
++level;
nextLevelExp = Player::getExpForLevel(level + 1);
if(Player::getExpForLevel(level) > nextLevelExp) //player has reached max level
break;
}
if(prevLevel != level)
{
updateBaseSpeed();
setBaseSpeed(getBaseSpeed());
g_game.changeSpeed(this, 0);
g_game.addCreatureHealth(this);
if(getParty())
getParty()->updateSharedExperience();
char advMsg[60];
sprintf(advMsg, "You advanced from Level %d to Level %d.", prevLevel, level);
sendTextMessage(MSG_EVENT_ADVANCE, advMsg);
CreatureEventList advanceEvents = getCreatureEvents(CREATURE_EVENT_ADVANCE);
for(CreatureEventList::iterator it = advanceEvents.begin(); it != advanceEvents.end(); ++it)
(*it)->executeAdvance(this, SKILL__LEVEL, prevLevel, level);
}
uint64_t currLevelExp = Player::getExpForLevel(level);
nextLevelExp = Player::getExpForLevel(level + 1);
levelPercent = 0;
if(nextLevelExp > currLevelExp)
levelPercent = Player::getPercentLevel(experience - currLevelExp, nextLevelExp - currLevelExp);
sendStats();
}
Encontre a parte que aumente a capacidade do jogador:
capacity += vocation->getGainCap();
E adicione um if
if Player::getCapacity() < 32000
capacity += vocation->getGainCap();
Tcharããããã, seu limite de capacidade está feito.






info
Grupo: Campones
Registrado: 04/10/10
Posts: 27
Reputação: +1
Char no Tibia: Não Jogo Mais
Ae galera, to precisando de por um limite de capacidade no meu server mais não sei como eu sei que tem como, pois no radbr o Master Viciado boto e preciso muito desse limite ,pois meu ot tem muita rates começa a da debug nos skills por causa dce mt cap. esperando ajuda vlw