Jump to content

Recommended Posts

1: Hello, I installed New Pet System and installation went perfectly, but I have a lvl probleama to display the characters. Lvl not display correctly.

0619_131547.jpg

 

I source if you must have a function to post

 

2: Can you give a position where if I have a stone armor effect to emerge from the stone?

Spoiler

case CItemData::ITEM_TYPE_ARMOR:
        __ClearArmorRefineEffect();

        // 갑옷 특화 이펙트
        if (pItem->GetSubType() == CItemData::ARMOR_BODY)
        {
            DWORD vnum = pItem->GetIndex();

            if (12010 <= vnum && vnum <= 12049)
            {
                __AttachEffect(EFFECT_REFINED+EFFECT_BODYARMOR_SPECIAL);
                __AttachEffect(EFFECT_REFINED+EFFECT_BODYARMOR_SPECIAL2);
            }
            if (28443 == socket0 || 28443 == socket1 || 28443 == socket2 )
            {
                 __AttachEffect(EFFECT_REFINED+EFFECT_BODYARMOR_STONE);
            }
            
        }
        

        if (refine < 7)    //현재 제련도 7 이상만 이펙트가 있습니다.
            return 0;

        if (pItem->GetSubType() == CItemData::ARMOR_BODY)
        {
            m_armorRefineEffect = EFFECT_REFINED+EFFECT_BODYARMOR_REFINED7+refine-7;
            __AttachEffect(m_armorRefineEffect);
        }
        break;

 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Management

Hello !

Try this for ur first problem :

Spoiler

void CInstanceBase::UpdateTextTailLevel(DWORD level)
{
    //static D3DXCOLOR s_kLevelColor = D3DXCOLOR(119.0f/255.0f, 246.0f/255.0f, 168.0f/255.0f, 1.0f);
    static D3DXCOLOR s_kLevelColor = D3DXCOLOR(152.0f/255.0f, 255.0f/255.0f, 51.0f/255.0f, 1.0f);

    char szText[256];
#ifdef NEW_PET_SYSTEM
    static D3DXCOLOR s_kPetLevelColor = D3DCOLOR_XRGB(255, 255,   0);
    if(IsNewPet())
    {
        sprintf(szText, "[Lv. %d] ", level);
        CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kPetLevelColor);
    }
    else{
        sprintf(szText, "[Lv. %d]", level);
        CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);        
    }
#else
    sprintf(szText, "[Lv. %d] ", level);
    CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);
#endif
}

 

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.