11-23-2021, 04:30 PM
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
|
Premium golddrop and Chaos Club points.
|
|
11-23-2021, 04:30 PM
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
11-23-2021, 07:14 PM
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
11-24-2021, 08:12 PM
as far as I have understood I think. but what is the name of affinity points?
11-25-2021, 10:34 AM
Thanks a lot for this. i will try the next few days
11-25-2021, 08:50 PM
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) |
|
« Next Oldest | Next Newest »
|