Jump to content
×
×
  • Create New...
  • 0

Weapon costume system + sash/costume mount


avertuss

Question

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
  • Answers 9
  • Created
  • Last Reply

Top Posters For This Question

9 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


  • Read our Rules
  • Activity

    1. 3

      Quest Craft

    2. 3

      Quest Craft

    3. 414

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    4. 11

      Metin2 Patcher with Electron

    5. 17

      I Want Find freebsd 11.4 with remove unnecessary codes

    6. 17

      I Want Find freebsd 11.4 with remove unnecessary codes

    7. 3

      Quest Craft

  • Recently Browsing

    • No registered users viewing this page.

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.