Jump to content

error binary sash system


Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Edit InstanceBase.cpp -> void CInstanceBase::SetAcce(DWORD eAcce)
 

void CInstanceBase::SetAcce(DWORD eAcce)
{
    if (IsPC() == false)
        return;
    
    __ClearAcceRefineEffect();
    float fSpecular = 0.0f;
    int iAcce = (eAcce > 100) ? (int)(eAcce - 100) : (int)(eAcce);
    if (eAcce > 100)
    {
        fSpecular = 100.0f;
        m_acceEffect = EFFECT_REFINED+EFFECT_ACCE_SPECIAL;
        __EffectContainer_AttachEffect(m_acceEffect);
    }
    
    m_awPart[CRaceData::PART_ACCE] = iAcce;
    m_GraphicThingInstance.SetAcce(iAcce, fSpecular);
}

 

 

Link to comment
Share on other sites

change this

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 copy your lines?

 

update error

https://metin2.download/picture/cpm4Kmu9OZTKgdEy4gRCn70dOH3tDOw5/.png

Edited by Metin2 Dev
Core X - External 2 Internal
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


×
×
  • 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.