Jump to content

Weapon costume system + sash/costume mount


Recommended Posts

Hi. I have problem. I added costume weapon system but now i can't equip sash or costume mount bcs:

	if (item->GetType() == ITEM_COSTUME && item->GetSubType() >= COSTUME_WEAPON_SWORD)
    {
        LPITEM weapon = GetWear(WEAR_WEAPON);
        if (!weapon)
        {
            ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You must equip weapon first"));
            return false;
        }
        if (weapon->GetSubType() + COSTUME_WEAPON_SWORD != item->GetSubType())
        {
            ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You must equip costume weapon with same type of weapon"));
            return false;
        }
    }
	

How i can fix it? Can you help me guys? I have this error: You must equip costume weapon with same type of weapon

Link to comment
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

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.