(Help) Premium with additional buff
#2



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
}
}

 



Messages In This Thread
[No subject] - by ChaosHase - 05-27-2023, 10:42 AM
[No subject] - by dethunter12 - 05-27-2023, 03:48 PM
[No subject] - by ChaosHase - 05-27-2023, 05:22 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)