![]() |
|
Premium golddrop and Chaos Club points. - 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: Premium golddrop and Chaos Club points. (/showthread.php?tid=4844) |
- Matt Hias - 11-23-2021 Hello. Does anyone know how to use the premium char. Can Gold and Chaos Club add points? So that the premium has more use? For example, 10% Warm greetings - Desarija - 11-23-2021 This is the function that determines the exp factor int CNPCProto::getExpForPremiumChar( int premium_type ) { int ori_exp = m_exp; int exp = 0; switch (premium_type) { case PREMIUM_CHAR_TYPE_FIRST: exp = (int)(ori_exp * 1.1f); break; default: exp = ori_exp; break; } // LOG_DEBUG("TEST (exp) : %d - %d", ori_exp, exp); return exp; } you can create a similar function for affinity or whatever u want, then use it to calculate the given points like it is done for exp here: bool DivisionExpSP(CNPC* npc, CPC* pPreferencePC, LONGLONG nTotalDamage) { #ifdef PREMIUM_CHAR LONGLONG nExpNPC; LONGLONG nSPNPC; if(pPreferencePC != NULL) { nExpNPC = npc->m_proto->getExpForPremiumChar(pPreferencePC->m_premiumChar.getPremiumType()); // Áö±ÞµÉ °æÇèÄ¡ nSPNPC = npc->m_proto->getSkillPointForPremiumChar(pPreferencePC->m_premiumChar.getPremiumType()); // Áö±ÞµÉ SP } else { nExpNPC = npc->m_proto->getExp(); // Áö±ÞµÉ °æÇèÄ¡ nSPNPC = npc->m_proto->getSkillPoint(); // Áö±ÞµÉ SP } #else LONGLONG nExpNPC = npc->m_proto->getExp(); // Áö±ÞµÉ °æÇèÄ¡ LONGLONG nSPNPC = npc->m_proto->getSkillPoint(); // Áö±ÞµÉ SP #endif - zuendschnurx - 11-24-2021 as far as I have understood I think. but what is the name of affinity points? - Matt Hias - 11-25-2021 Thanks a lot for this. i will try the next few days - Desarija - 11-25-2021 On 11/24/2021 at 9:12 PM, zuendschnurx said: as far as I have understood I think. but what is the name of affinity points? Affinity.cpp int CAffinity::AddPoint(int point, CPC* pc, int bonus) |