secondlife
Member
- Joined
- Aug 1, 2009
- Messages
- 298
- Reaction score
- 23
hi guys, how are you?
I wonder if someone more experienced can help me with this.
On my server I have new vocations (9~20) and I am trying to disable "fromVoc". For example:
However, every time the character with voc 17 logout and login again, he goes back to vocation 16. I want to disable this function of returning the character to fromVoc.
I tried to remove it here, but it didn't work:
PLAYER.CPP
I just want to disable the line in the source that makes the character come back from vocation (fromVoc), but i am not able to find it. Is this more complicated than i think?
Thank you guys!!
I wonder if someone more experienced can help me with this.
On my server I have new vocations (9~20) and I am trying to disable "fromVoc". For example:
Code:
<vocation id = "17" name = "Ancient Knight" description = "a ancient knight" needpremium = "0" gaincap = "75" gainhp = "55" gainmana = "20" gainhpticks = "1" gainhpamount = "19" gainmanaticks = "1" gainmanaamount = "12" manamultiplier = "3.0" attackspeed = "500" soulmax = "250" gainsoulticks = "2" gainsoulamount = "3" fromvoc = "16" lessloss = "30">
....
However, every time the character with voc 17 logout and login again, he goes back to vocation 16. I want to disable this function of returning the character to fromVoc.
I tried to remove it here, but it didn't work:
PLAYER.CPP
Code:
void Player::setPromotionLevel(uint32_t pLevel)
{
if(pLevel > promotionLevel)
{
uint32_t tmpLevel = 0, currentVoc = vocationId;
for(uint32_t i = promotionLevel; i < pLevel; ++i)
{
currentVoc = Vocations::getInstance()->getPromotedVocation(currentVoc);
if(!currentVoc)
break;
tmpLevel++;
Vocation* voc = Vocations::getInstance()->getVocation(currentVoc);
if(voc->isPremiumNeeded() && !isPremium() && g_config.getBool(ConfigManager::PREMIUM_FOR_PROMOTION))
continue;
vocationId = currentVoc;
}
promotionLevel += tmpLevel;
}
else if(pLevel < promotionLevel)
{
uint32_t tmpLevel = 0, currentVoc = vocationId;
for(uint32_t i = pLevel; i < promotionLevel; ++i)
{
Vocation* voc = Vocations::getInstance()->getVocation(currentVoc);
if(voc->getFromVocation() == currentVoc)
break;
tmpLevel++;
currentVoc = voc->getFromVocation();
if(voc->isPremiumNeeded() && !isPremium() && g_config.getBool(ConfigManager::PREMIUM_FOR_PROMOTION))
continue;
vocationId = currentVoc;
}
promotionLevel -= tmpLevel;
}
setVocation(vocationId);
}
I just want to disable the line in the source that makes the character come back from vocation (fromVoc), but i am not able to find it. Is this more complicated than i think?
Thank you guys!!