• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

TrinityCore 3.3.5 How make Custom Extra TalentsPoints For Ranks

kusanagy

Respected Member
hello friends, someone can help me,

I have compiled this script, all perfect at the end of Compiling,
within the game, I have the error does not give me the talent points.

anyone has any questions as I can fix this?

thank you very much.

void OnTalentsReset(Player* player, bool /*noCost*/)
{
std::eek:stringstream ss;
std::eek:stringstream message;
switch (player->GetSession()->GetSecurity())
{

case SEC_PLAYER:
player->SetFreeTalentPoints(player->GetFreeTalentPoints() + 92);
ss << "[System Talents] " << player->GetName() << " you got 92 Talents!";
break;
case SEC_VIP:
player->SetFreeTalentPoints(player->GetFreeTalentPoints() + 125);
ss << "[System Talents VIP] " << player->GetName() << " you got 125 Talents!";
break;
}
sWorld->SendServerMessage(SERVER_MSG_STRING, ss.str().c_str());
}
};

void AddSC_resettalentsvip()
{
new resettalentsvip;
}
 
Last edited:

kusanagy

Respected Member
there will be another method?
compiles without error., but in the game, I do not get talents.
I get only normal talents.


case SEC_PLAYER:
player->SetFreeTalentPoints(player->GetFreeTalentPoints() + 92);
player->SendTalentsInfoData(false);
ss << "[System Talents] " << player->GetName() << " you got 92 Talents!";
break;


I tried it with:
player->SetFreeTalentPoints(+ 97);
too:
Player->ResetTalents(97);
 

Syphex

Exalted Member
if i get it right, you're trying to make it so the player can have more talent points than usual?

If so i'd give it a try and look through the player.h in your core. As with past experience with talents i changed some values there.
 
Top