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.
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:stringstream ss;
std: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: