- Katılım
- 6 Kas 2021
- Mesajlar
- 3,261
- Tepkime puanı
- 4,780
- Puanları
- 113
- Yaş
- 31
- Konum
- Türkiye
- Dc
- fatihbulut
Kod:
service.h add
#define ENABLE_BUFF_INFO_SHOW_SYSTEM
char_affect.cpp
>search
void SendAffectRemovePacket(LPDESC d, DWORD pid, DWORD type, BYTE point)
>add above
#ifdef ENABLE_BUFF_INFO_SHOW_SYSTEM
static DWORD s_BuffSkillList[] =
{
SKILL_HOSIN,
SKILL_GICHEON,
SKILL_REFLECT,
};
const char* GetBuffSkillName(DWORD dwType, BYTE locale = LOCALE_DEFAULT)
{
for (auto buffVnum : s_BuffSkillList)
{
if (buffVnum == dwType)
{
auto it = localeSkill[locale].find(dwType);
if (it != localeSkill[locale].end())
return it->second.c_str();
return "";
}
}
return nullptr;
}
#endif
>search
bool CHARACTER::AddAffect(DWORD dwType, BYTE bApplyOn, long lApplyValue, DWORD dwFlag, long lDuration, long lSPCost, bool bOverride, bool IsCube )
>add
#ifdef ENABLE_BUFF_INFO_SHOW_SYSTEM
const char* szBuffName = GetBuffSkillName(dwType);
if (szBuffName && *szBuffName)
{
ChatPacket(CHAT_TYPE_INFO,
LC_TEXT("[Buff] %s You received the: +%ld%%"),
szBuffName, lApplyValue);
}
#endif
locale_service.h
>search
const std::string& LocaleService_GetQuestPath();
>add under
#ifdef ENABLE_BUFF_INFO_SHOW_SYSTEM
extern std::map<DWORD, std::string> localeSkill[LOCALE_MAX_NUM];
#endif