Hello, I'm trying to make the buff of Attack Up skill halved or /3 when she buff other players, when she buff herlself the buff value is normal.
i think i should make some changes in char_affect.cpp here, but i have problem how i can write that when the skill vnum is 111 if the player is myself i receive the normal buff, if the player is not myself the buff is ("value" / 3)
Code
- void CHARACTER::ComputeAffect(CAffect * pkAff, bool bAdd)
- {
- if (bAdd && pkAff->dwType >= GUILD_SKILL_START && pkAff->dwType <= GUILD_SKILL_END)
- {
- if (!GetGuild())
- return;
- if (!GetGuild()->UnderAnyWar())
- return;
- }
- if (pkAff->dwFlag)
- {
- if (!bAdd)
- m_afAffectFlag.Reset(pkAff->dwFlag);
- else
- m_afAffectFlag.Set(pkAff->dwFlag);
- }
- if (bAdd)
- PointChange(pkAff->bApplyOn, pkAff->lApplyValue);
- else
- PointChange(pkAff->bApplyOn, -pkAff->lApplyValue);
- if (pkAff->dwType == SKILL_MUYEONG)
- {
- if (bAdd)
- StartMuyeongEvent();
- else
- StopMuyeongEvent();
- }
- }