![]() |
|
(Help) Premium with additional buff - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193) +---- Forum: Help & Support (https://lckb.dev/forum/forumdisplay.php?fid=157) +----- Forum: Ep4 Support (https://lckb.dev/forum/forumdisplay.php?fid=128) +----- Thread: (Help) Premium with additional buff (/showthread.php?tid=5052) |
- ChaosHase - 05-27-2023 Hello community. I was wondering if it's possible when you activate premium that an additional skill can be performed. which runs just as long as Premium. creating the skill is no problem. Installing it in the premium function is a bit complicated. Can someone help me with that? Thanks - dethunter12 - 05-27-2023 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 } } - ChaosHase - 05-27-2023 Perfect it is working. Thanks so much |