![]() |
|
Setup custom rates for premium char (SP and EXP) - 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: Tutorials & Guides (https://lckb.dev/forum/forumdisplay.php?fid=124) +----- Forum: Ep4 Guides (https://lckb.dev/forum/forumdisplay.php?fid=125) +----- Thread: Setup custom rates for premium char (SP and EXP) (/showthread.php?tid=2752) |
- rondo157 - 01-03-2021 GameServer/NPCProto.cpp Line: 87 #ifdef PREMIUM_CHAR //XX - 프리미엄캐릭터 : 몬스터를 죽였을때 획득하는 EXP/SP 10% 증가 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); //10% EXP change here break; default: exp = ori_exp; break; } // LOG_DEBUG("TEST (exp) : %d - %d", ori_exp, exp); return exp; } int CNPCProto::getSkillPointForPremiumChar( int premium_type ) { int ori_skillpoint = m_skillPoint; int skillpoint = 0; switch (premium_type) { case PREMIUM_CHAR_TYPE_FIRST: skillpoint = (int)(ori_skillpoint * 1.1f); //10% SP change here break; default: skillpoint = ori_skillpoint; break; } // LOG_DEBUG("TEST (sp) : %d - %d", ori_skillpoint, skillpoint); return skillpoint; } #endif - Matt Hias - 11-23-2021 you can also expand that, for example more gold at monsters. more club points? Regards - rondo157 - 11-23-2021 Dont spam in topic. Create new topic in help section. READ RULES!!! - Desarija - 11-23-2021 2 hours ago, rondo157 said: READ RULES!!! where does it say you can't ask a question in a guide topic? - Matt Hias - 11-23-2021 I can open up a new topic. But personally, I would find it better. When everything is in one place. But I'm opening up a new topic. |