• 🎉 Hey there! I've just launched my brand new server voting platform — Metin2 P Servers 🚀

Not answered Special inventory c++ problem

Member
Jun
Threads
3
22
1
3

AD: Mt2009 - Mobile & PC - 30 January 2026 CHECK THE PRESENTATION!

Hello ! Today i have a problem i can't understand...

I have this on my GameType.h :
Code:
#ifdef ENABLE_NEW_EQUIPMENT_SYSTEM
    const DWORD c_Belt_Inventory_Slot_Start = c_DragonSoul_Equip_End + c_DragonSoul_Equip_Reserved_Count;
    const DWORD c_Belt_Inventory_Width = 4;
    const DWORD c_Belt_Inventory_Height= 4;
    const DWORD c_Belt_Inventory_Slot_Count = c_Belt_Inventory_Width * c_Belt_Inventory_Height;
    const DWORD c_Belt_Inventory_Slot_End = c_Belt_Inventory_Slot_Start + c_Belt_Inventory_Slot_Count;

    const DWORD c_Inventory_Count    = c_Belt_Inventory_Slot_End;
#else
    const DWORD c_Inventory_Count    = c_DragonSoul_Equip_End;
#endif

And the system i just download say :
Code:
Find --------

const DWORD c_Belt_Inventory_Slot_End = c_Belt_Inventory_Slot_Start + c_Belt_Inventory_Slot_Count;
#endif

Add below ------

#ifdef WJ_SPLIT_INVENTORY_SYSTEM
    const DWORD c_Skill_Book_Inventory_Slot_Start = c_Belt_Inventory_Slot_End;
    const DWORD c_Skill_Book_Inventory_Slot_Count = 135;
    const DWORD c_Skill_Book_Inventory_Slot_End = c_Skill_Book_Inventory_Slot_Start + c_Skill_Book_Inventory_Slot_Count;
    
    const DWORD c_Upgrade_Items_Inventory_Slot_Start = c_Skill_Book_Inventory_Slot_End;
    const DWORD c_Upgrade_Items_Inventory_Slot_Count = 135;
    const DWORD c_Upgrade_Items_Inventory_Slot_End = c_Upgrade_Items_Inventory_Slot_Start + c_Upgrade_Items_Inventory_Slot_Count;
    
    const DWORD c_Stone_Inventory_Slot_Start = c_Upgrade_Items_Inventory_Slot_End;
    const DWORD c_Stone_Inventory_Slot_Count = 135;
    const DWORD c_Stone_Inventory_Slot_End = c_Stone_Inventory_Slot_Start + c_Stone_Inventory_Slot_Count;
    
    const DWORD c_Sandik_Inventory_Slot_Start = c_Stone_Inventory_Slot_End;
    const DWORD c_Sandik_Inventory_Slot_Count = 135;
    const DWORD c_Sandik_Inventory_Slot_End = c_Sandik_Inventory_Slot_Start + c_Sandik_Inventory_Slot_Count;
    
    const DWORD c_Inventory_Count    = c_Sandik_Inventory_Slot_End;
#else

But the problem is, where should i add this ? I don't have #endif after
Code:
const DWORD c_Belt_Inventory_Slot_End = c_Belt_Inventory_Slot_Start + c_Belt_Inventory_Slot_Count;

So if i add #endif and the system below, can't compile because C_Inventory_Count is declared multiples times, but if i delete one, my own system stop working... How can i add this please ?
 
Metin2Hub Bot
M2Hub Bot
Feb
Threads
66
2,381
2
1,308
113
Hello ! Today i have a problem i can't understand...

I have this on my GameType.h :
Code:
#ifdef ENABLE_NEW_EQUIPMENT_SYSTEM
    const DWORD c_Belt_Inventory_Slot_Start = c_DragonSoul_Equip_End + c_DragonSoul_Equip_Reserved_Count;
    const DWORD c_Belt_Inventory_Width = 4;
    const DWORD c_Belt_Inventory_Height= 4;
    const DWORD c_Belt_Inventory_Slot_Count = c_Belt_Inventory_Width * c_Belt_Inventory_Height;
    const DWORD c_Belt_Inventory_Slot_End = c_Belt_Inventory_Slot_Start + c_Belt_Inventory_Slot_Count;

    const DWORD c_Inventory_Count    = c_Belt_Inventory_Slot_End;
#else
    const DWORD c_Inventory_Count    = c_DragonSoul_Equip_End;
#endif

And the system i just download say :
Code:
Find --------

const DWORD c_Belt_Inventory_Slot_End = c_Belt_Inventory_Slot_Start + c_Belt_Inventory_Slot_Count;
#endif

Add below ------

#ifdef WJ_SPLIT_INVENTORY_SYSTEM
    const DWORD c_Skill_Book_Inventory_Slot_Start = c_Belt_Inventory_Slot_End;
    const DWORD c_Skill_Book_Inventory_Slot_Count = 135;
    const DWORD c_Skill_Book_Inventory_Slot_End = c_Skill_Book_Inventory_Slot_Start + c_Skill_Book_Inventory_Slot_Count;
    
    const DWORD c_Upgrade_Items_Inventory_Slot_Start = c_Skill_Book_Inventory_Slot_End;
    const DWORD c_Upgrade_Items_Inventory_Slot_Count = 135;
    const DWORD c_Upgrade_Items_Inventory_Slot_End = c_Upgrade_Items_Inventory_Slot_Start + c_Upgrade_Items_Inventory_Slot_Count;
    
    const DWORD c_Stone_Inventory_Slot_Start = c_Upgrade_Items_Inventory_Slot_End;
    const DWORD c_Stone_Inventory_Slot_Count = 135;
    const DWORD c_Stone_Inventory_Slot_End = c_Stone_Inventory_Slot_Start + c_Stone_Inventory_Slot_Count;
    
    const DWORD c_Sandik_Inventory_Slot_Start = c_Stone_Inventory_Slot_End;
    const DWORD c_Sandik_Inventory_Slot_Count = 135;
    const DWORD c_Sandik_Inventory_Slot_End = c_Sandik_Inventory_Slot_Start + c_Sandik_Inventory_Slot_Count;
    
    const DWORD c_Inventory_Count    = c_Sandik_Inventory_Slot_End;
#else

But the problem is, where should i add this ? I don't have #endif after
Code:
const DWORD c_Belt_Inventory_Slot_End = c_Belt_Inventory_Slot_Start + c_Belt_Inventory_Slot_Count;

So if i add #endif and the system below, can't compile because C_Inventory_Count is declared multiples times, but if i delete one, my own system stop working... How can i add this please ?

Hello dear user,

Your post will be under surveillance by bots for the next few hours.

Forum description : Metin2 private server, Metin2 download, Metin2 support, Metin2 Forum, Metin2 Pvp Servers, Errors, Bugs, Requests, Metin2 Pvp Forum, Everything About Metin2.
 
Discord Banner

🔥 Join us on Discord! - Active chat & direct support

We invite you to join the largest Metin2 community on Discord!

Join Now!
Member Count: 
Discord Robot
HUB Bot
Announcement

NXS

Member
Mar
Threads
0
104
1
18
Code:
#ifdef ENABLE_NEW_EQUIPMENT_SYSTEM
    const DWORD c_Belt_Inventory_Slot_Start = c_DragonSoul_Equip_End + c_DragonSoul_Equip_Reserved_Count;
    const DWORD c_Belt_Inventory_Width = 4;
    const DWORD c_Belt_Inventory_Height= 4;
    const DWORD c_Belt_Inventory_Slot_Count = c_Belt_Inventory_Width * c_Belt_Inventory_Height;
    const DWORD c_Belt_Inventory_Slot_End = c_Belt_Inventory_Slot_Start + c_Belt_Inventory_Slot_Count;


#ifdef WJ_SPLIT_INVENTORY_SYSTEM
    const DWORD c_Skill_Book_Inventory_Slot_Start = c_Belt_Inventory_Slot_End;
    const DWORD c_Skill_Book_Inventory_Slot_Count = 135;
    const DWORD c_Skill_Book_Inventory_Slot_End = c_Skill_Book_Inventory_Slot_Start + c_Skill_Book_Inventory_Slot_Count;
    
    const DWORD c_Upgrade_Items_Inventory_Slot_Start = c_Skill_Book_Inventory_Slot_End;
    const DWORD c_Upgrade_Items_Inventory_Slot_Count = 135;
    const DWORD c_Upgrade_Items_Inventory_Slot_End = c_Upgrade_Items_Inventory_Slot_Start + c_Upgrade_Items_Inventory_Slot_Count;
    
    const DWORD c_Stone_Inventory_Slot_Start = c_Upgrade_Items_Inventory_Slot_End;
    const DWORD c_Stone_Inventory_Slot_Count = 135;
    const DWORD c_Stone_Inventory_Slot_End = c_Stone_Inventory_Slot_Start + c_Stone_Inventory_Slot_Count;
    
    const DWORD c_Sandik_Inventory_Slot_Start = c_Stone_Inventory_Slot_End;
    const DWORD c_Sandik_Inventory_Slot_Count = 135;
    const DWORD c_Sandik_Inventory_Slot_End = c_Sandik_Inventory_Slot_Start + c_Sandik_Inventory_Slot_Count;
    
#endif

#ifdef WJ_SPLIT_INVENTORY_SYSTEM
const DWORD c_Inventory_Count    = c_Sandik_Inventory_Slot_End;
#else
const DWORD c_Inventory_Count    = c_Belt_Inventory_Slot_End;
#endif
#else
const DWORD c_Inventory_Count    = c_DragonSoul_Equip_End;
#endif
 
Discord Banner

🔥 Join us on Discord! - Active chat & direct support

We invite you to join the largest Metin2 community on Discord!

Join Now!
Member Count: 
Discord Robot
HUB Bot
Announcement
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock