Vesley 1 Posted July 21, 2015 Share Posted July 21, 2015 (edited) Hi guys i have some problem with adding effect (i dont see effect in game) and i cant find any usefull topic. Here are my modified files: InstanceBase.h AFFECT_VIP_SYSTEM, InstanceBaseEffect.cpp case AFFECT_VIP_SYSTEM: if (IsAffect(AFFECT_INVISIBILITY)) return; break; Game: Affect.h AFF_VIP_SYSTEM = 42, char.cpp void CHARACTER::SetPlayerProto(const TPlayerTable * t) .. . . if (GetPremiumRemainSeconds(PREMIUM_EXP) >= 1) { m_afAffectFlag.Set(AFF_VIP_SYSTEM); } client: PlayerSettingModule.py chrmgr.RegisterEffect(chrmgr.EFFECT_AFFECT+42, "Bip01", localeInfo.FN_VIP) Do you know where can be problem? Thanks for any answer. Edited July 21, 2015 by Vesley 1 Link to comment Share on other sites More sharing options...
valessio 13 Posted July 22, 2015 Share Posted July 22, 2015 some ingame screenshots please Link to comment Share on other sites More sharing options...
Think 117 Posted July 22, 2015 Share Posted July 22, 2015 some ingame screenshots please Some reading, please o.o Hi guys i have some problem with adding effect (i dont see effect in game) and i cant find any usefull topic. idk how you'd screenshot not seeing something? @ontopic, did you make the change on SetPlayerProto before or after this line? thecore_memcpy(m_aiPremiumTimes, t->aiPremiumTimes, sizeof(t->aiPremiumTimes)); It should be afterwards, as it is all unitialized memory otherwise and might or might not work. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now