Premium golddrop and Chaos Club points.
#1

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

#2

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

 

#3

as far as I have understood I think.

but what is the name of affinity points?

#4

Thanks a lot for this.

i will try the next few days

#5


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)



Forum Jump:


Users browsing this thread: 1 Guest(s)