Jump to content

Recommended Posts

Hey Dev´s :)

I implemented this line in instancebase.cpp :

Spoiler

 

void CInstanceBase::SetAcce(DWORD eAcce)
{
    if (IsPC() == false)
        return;
    
    //__ClearAcceRefineEffect();
    //long lAbsChance = 0;
    //float fSpecularPower = 0.0f;
    //int iItemIndex = CPythonPlayer::Instance().GetItemIndex(TItemPos(INVENTORY, c_Costume_Slot_Acce));
    //if (iItemIndex > 0)
    //{
    //    CItemManager::Instance().SelectItemData(iItemIndex);
    //    CItemData * pItemData = CItemManager::Instance().GetSelectedItemDataPointer();
        if (pItemData->GetType() == CItemData::ITEM_TYPE_COSTUME && pItemData->GetSubType() == CItemData::COSTUME_ACCE)    
    //    {
    //        fSpecularPower = pItemData->GetSpecularPowerf();
    //        lAbsChance = CPythonPlayer::Instance().GetItemMetinSocket(TItemPos(INVENTORY, c_Costume_Slot_Acce), 1);
    //        if (lAbsChance >= 19)
    //        {
    //            m_acceEffect = EFFECT_REFINED+EFFECT_ACCE_SPECIAL;
    //            __EffectContainer_AttachEffect(m_acceEffect);
    //        }
    //    }
    //}
    
    m_awPart[CRaceData::PART_ACCE] = eAcce;
    m_GraphicThingInstance.SetAcce(eAcce);

    //if (lAbsChance >= 19)
    //{
    //    m_GraphicThingInstance.SetAcce(eAcce, fSpecularPower);
    //}
    //else
    //{
    //    m_GraphicThingInstance.SetAcce(eAcce);
    //}
}

 

and receive the following error:

Spoiler

    1    IntelliSense: identifier "pItemData" is undefined    d:\mega\majcher\klient\userinterface\instancebase.cpp    2635
    2    IntelliSense: more than one instance of overloaded function "CActorInstance::SetAcce" matches the argument list:    d:\mega\majcher\klient\userinterface\instancebase.cpp    2648

Can someone help me to implement shoulder sash system?

 

 

Link to comment
Share on other sites

  • 2 years later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Your multiple commented lines confused even you! What you have here basically is this:

void CInstanceBase::SetAcce(DWORD eAcce)
{
    if (IsPC() == false)
        return;
    
    if (pItemData->GetType() == CItemData::ITEM_TYPE_COSTUME && pItemData->GetSubType() == CItemData::COSTUME_ACCE)
		m_awPart[CRaceData::PART_ACCE] = eAcce;
  
    m_GraphicThingInstance.SetAcce(eAcce);
}

So what you need to do is:

  1. Uncomment the second if statement.
  2. Define pItemData in InstanceBase.h (don't ask how or what type, I only see this part of the source, no idea of what you're trying to accomplish)

As I see you should probably go with the first option, but again, I don't know what you are doing with this so you know better which one is your solution.

Best regards

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.