Jump to content

VIP - effect [C++]


Recommended Posts

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 by Vesley
  • Love 1
Link to comment
Share on other sites

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.

  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.