Jump to content

Can´t equip two different Rings / Mounts


Recommended Posts

Good evening,

 

after i solved my first Problem, i have a second:

I cant equip for example one Ring and a mount or two different rings.

If i do this i will get " You cant equip this twice" ( Sorry for my Bad english.)

I hope you can help me .. :x

 

My actual function:

if (item->GetWearFlag() & WEARABLE_UNIQUE)
    {
        if ((GetWear(WEAR_UNIQUE1) && GetWear(WEAR_UNIQUE1)->IsSameSpecialGroup(item)) ||
            (GetWear(WEAR_UNIQUE2) && GetWear(WEAR_UNIQUE2)->IsSameSpecialGroup(item)) ||
            (GetWear(WEAR_RING1) && GetWear(WEAR_RING1)->IsSameSpecialGroup(item)) ||
            (GetWear(WEAR_RING2) && GetWear(WEAR_RING2)->IsSameSpecialGroup(item)))
        {
            ChatPacket(CHAT_TYPE_INFO, LC_TEXT("°°Àº Á¾·ùÀÇ À¯´ÏÅ© ¾ÆÀÌÅÛ µÎ °³¸¦ µ¿½Ã¿¡ ÀåÂøÇÒ ¼ö ¾ø½À´Ï´Ù."));
            return false;
        }
        
        if (marriage::CManager::instance().IsMarriageUniqueItem(item->GetVnum()) &&
            !marriage::CManager::instance().IsMarried(GetPlayerID()))
        {
            ChatPacket(CHAT_TYPE_INFO, LC_TEXT("°áÈ¥ÇÏÁö ¾ÊÀº »óÅ¿¡¼­ ¿¹¹°À» Âø¿ëÇÒ ¼ö ¾ø½À´Ï´Ù."));
            return false;
        }

    }


this blocks two different Rings... ye, thats ok, but i why i cant equip two different Rings?

 

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 7 years later...

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.