05-27-2023, 03:48 PM
you have some examples in the code already
after the else add something like this
if (d->m_pChar->m_premiumChar.isActive())
{
CSkill* pSkill = gserver->m_skillProtoList.Create(490, 1); //replace 490 with your ID
if (pSkill)
{
bool bApply = false;
ApplySkill(d->m_pChar, d->m_pChar, pSkill, -1, bApply);
if (!bApply)
{
GAMELOG << init("EVENT XMAS SKILL FAILED (LOGIN) ", d->m_pChar) << end;// ½ºÅ³ Àû¿ë ½ÇÆÐ
}
}
}
else
{
if(d->m_pChar->m_assist.FindBySkillIndex(490)) //replace 490 with your id
{
d->m_pChar->m_assist.CureBySkillIndex(490); //replace 490 with your id
}
}

