Jump to content

pendant and glove slot problem


Go to solution Solved by LeMo,

Recommended Posts

hello guys i have a problem with pendant and glove slots it was working good before i added aura system
 

https://files.fm/f/hvzjc8nbm4


the slots been enactive i dont know why i checked many times and i cant find the problem

my game type

constexpr DWORD c_ItemSlot_Count = c_Inventory_Page_Size * c_Inventory_Page_Count;
constexpr DWORD c_Equipment_Count = 12;

constexpr DWORD c_Equipment_Start = c_ItemSlot_Count;

constexpr DWORD c_Equipment_Body    = c_Equipment_Start + CItemData::WEAR_BODY;
constexpr DWORD c_Equipment_Head    = c_Equipment_Start + CItemData::WEAR_HEAD;
constexpr DWORD c_Equipment_Shoes    = c_Equipment_Start + CItemData::WEAR_FOOTS;
constexpr DWORD c_Equipment_Wrist    = c_Equipment_Start + CItemData::WEAR_WRIST;
constexpr DWORD c_Equipment_Weapon    = c_Equipment_Start + CItemData::WEAR_WEAPON;
constexpr DWORD c_Equipment_Neck    = c_Equipment_Start + CItemData::WEAR_NECK;
constexpr DWORD c_Equipment_Ear        = c_Equipment_Start + CItemData::WEAR_EAR;
constexpr DWORD c_Equipment_Unique1    = c_Equipment_Start + CItemData::WEAR_UNIQUE1;
constexpr DWORD c_Equipment_Unique2    = c_Equipment_Start + CItemData::WEAR_UNIQUE2;
constexpr DWORD c_Equipment_Arrow    = c_Equipment_Start + CItemData::WEAR_ARROW;
constexpr DWORD c_Equipment_Shield    = c_Equipment_Start + CItemData::WEAR_SHIELD;

#ifdef ENABLE_COSTUME_SYSTEM
    constexpr DWORD c_Costume_Slot_Start    = c_Equipment_Start + 19;
constexpr DWORD    c_Costume_Slot_Body        = c_Costume_Slot_Start + 0;
constexpr DWORD    c_Costume_Slot_Hair        = c_Costume_Slot_Start + 1;
constexpr DWORD    c_Costume_Slot_Mount    = c_Costume_Slot_Start + 2;
constexpr DWORD    c_Costume_Slot_Acce        = c_Costume_Slot_Start + 3;
constexpr DWORD    c_Costume_Slot_Weapon    = c_Costume_Slot_Start + 4;  
constexpr DWORD c_Costume_Slot_Aura        = c_Costume_Slot_Start + 5;
#if defined(ENABLE_RING_SYSTEM)
    constexpr DWORD c_Equipment_Ring1        = c_Costume_Slot_Start + 6;  //25
    constexpr DWORD c_Equipment_Ring2        = c_Costume_Slot_Start + 7;  //26
#endif
constexpr DWORD c_Costume_Slot_Count    = 8;
    constexpr DWORD c_Costume_Slot_End        = c_Costume_Slot_Start + c_Costume_Slot_Count;
#endif
#ifdef ENABLE_NEW_EQUIPMENT_SYSTEM
constexpr DWORD c_New_Equipment_Start    = c_Equipment_Start + CItemData::WEAR_BELT;
constexpr DWORD c_Equipment_Belt        = c_New_Equipment_Start + 0;
#ifdef ENABLE_PENDANT_SYSTEM
constexpr DWORD c_Equipment_Pendant  = c_Equipment_Start + CItemData::WEAR_PENDANT;
#endif
#ifdef ENABLE_GLOVE_SYSTEM
constexpr DWORD c_Equipment_Glove  = c_Equipment_Start + CItemData::WEAR_GLOVE;
#endif
constexpr DWORD c_New_Equipment_Count    = 1;

#endif

item data

enum EWearPositions
        {
            WEAR_BODY            = 0,          // 0
            WEAR_HEAD            = 1,          // 1
            WEAR_FOOTS            = 2,         // 2
            WEAR_WRIST            = 3,         // 3
            WEAR_WEAPON            = 4,        // 4
            WEAR_NECK            = 5,          // 5
            WEAR_EAR            = 6,           // 6
            WEAR_UNIQUE1        = 7,       // 7
            WEAR_UNIQUE2        = 8,       // 8
            WEAR_ARROW            = 9,         // 9
            WEAR_SHIELD            = 10,        // 10

            WEAR_ABILITY1        = 11,  // 11
            WEAR_ABILITY2        = 12,  // 12
            WEAR_ABILITY3        = 13,  // 13
            WEAR_ABILITY4        = 14,  // 14
            WEAR_ABILITY5        = 15,  // 15
            WEAR_ABILITY6        = 16,  // 16
            WEAR_ABILITY7        = 17,  // 17
            WEAR_ABILITY8        = 18,  // 18
           
            WEAR_COSTUME_BODY    = 19,    // 19
            WEAR_COSTUME_HAIR    = 20,    // 20
#ifdef ENABLE_MOUNT_COSTUME_SYSTEM
            WEAR_COSTUME_MOUNT    = 21,    // 21
#endif
#ifdef ENABLE_ACCE_COSTUME_SYSTEM
            WEAR_COSTUME_ACCE    = 22,    // 22
#endif
#ifdef ENABLE_WEAPON_COSTUME_SYSTEM
            WEAR_COSTUME_WEAPON    = 23,// 23
#endif
            WEAR_COSTUME_AURA    = 24,// 24
            WEAR_RING1            = 25,  
            WEAR_RING2            = 26,  
           
            WEAR_BELT            = 27,            // 23
#ifdef ENABLE_PENDANT_SYSTEM
            WEAR_PENDANT        = 28,        // 25
#endif
#ifdef ENABLE_GLOVE_SYSTEM
            WEAR_GLOVE            = 29,            // 26
#endif
          	WEAR_MAX_NUM = 32,
		};
                  enum EArmorSubTypes
        {
            ARMOR_BODY,
            ARMOR_HEAD,
            ARMOR_SHIELD,
            ARMOR_WRIST,
            ARMOR_FOOTS,
            ARMOR_NECK,
            ARMOR_EAR,
#ifdef ENABLE_PENDANT_SYSTEM
            ARMOR_PENDANT,    //7
#endif
#ifdef ENABLE_GLOVE_SYSTEM
            ARMOR_GLOVE,    //8
#endif
            ARMOR_NUM_TYPES,
        };

and its same in item_length.h and length.h
any advice please where to look 

Edited by LeMo

Lets Go Yes GIF by The Lonely Island

Link to comment
https://metin2.dev/topic/32935-pendant-and-glove-slot-problem/
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

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.