Jump to content

Recommended Posts

  • Active+ Member

Hello Devs,

I use this system:


my error in a video :
https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif

I dont use the ENABLE_ACCE_SYSTEM system

 

here my code parts:
ItemData.h / Client source

		enum EWearPositions
		{
			WEAR_BODY,          // 0
			WEAR_HEAD,          // 1
			WEAR_FOOTS,         // 2
			WEAR_WRIST,         // 3
			WEAR_WEAPON,        // 4
			WEAR_NECK,          // 5
			WEAR_EAR,           // 6
#ifndef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
			WEAR_UNIQUE1,       // 7
			WEAR_UNIQUE2,       // 8
#endif
			WEAR_ARROW,         // 9 (7)
			WEAR_SHIELD,        // 10 (8)
#ifdef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
			WEAR_BELT,			// 11 (9)
			WEAR_PENDANT,		// 10 (PENDANT)
			WEAR_GLOVES,		// 11 (GLOVES)
#endif
			WEAR_COSTUME_BODY,
			WEAR_COSTUME_HAIR,
#ifdef ENABLE_ACCE_SYSTEM
			WEAR_COSTUME_ACCE,
#endif
#ifdef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
			WEAR_UNIQUE1,		// 24 - 23
			WEAR_UNIQUE2,		// 25 - 24
#endif
			WEAR_MAX_NUM,
		};

		enum EItemWearableFlag
		{
			WEARABLE_BODY = (1 << 0),
			WEARABLE_HEAD = (1 << 1),
			WEARABLE_FOOTS = (1 << 2),
			WEARABLE_WRIST = (1 << 3),
			WEARABLE_WEAPON = (1 << 4),
			WEARABLE_NECK = (1 << 5),
			WEARABLE_EAR = (1 << 6),

#ifdef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
			WEARABLE_ARROW = (1 << 7),
			WEARABLE_SHIELD = (1 << 8),
			WEARABLE_BELT = (1 << 9),
			WEARABLE_ABILITY = (1 << 10),
			WEARABLE_COSTUME_BODY = (1 << 11),
			WEARABLE_COSTUME_HAIR = (1 << 12),
#ifdef ENABLE_ACCE_SYSTEM
			WEARABLE_COSTUME_ACCE = (1 << 13),
#endif
			WEARABLE_UNIQUE = (1 << 13),
#else
			WEARABLE_UNIQUE = (1 << 7),
			WEARABLE_SHIELD = (1 << 8),
			WEARABLE_ARROW = (1 << 9),
			WEARABLE_HAIR = (1 << 10),
			WEARABLE_ABILITY = (1 << 11),
			WEARABLE_COSTUME_BODY = (1 << 12),
#ifdef ENABLE_ACCE_SYSTEM
			WEARABLE_COSTUME_ACCE = (1 << 13),
#endif
#endif
		};

dump_proto source part:
 

int get_Item_WearFlag_Value(string inputString) 
{

	string arWearrFlag[] = {
							"WEAR_BODY", "WEAR_HEAD", "WEAR_FOOTS", "WEAR_WRIST", "WEAR_WEAPON",
							"WEAR_NECK", "WEAR_EAR", "WEAR_ARROW", "WEAR_SHIELD", "WEAR_BELT",
							"WEAR_PENDANT", "WEAR_GLOVES", "WEAR_COSTUME_BODY", "WEAR_COSTUME_HAIR",
#ifdef ENABLE_ACCE_SYSTEM
							"WEAR_COSTUME_ACCE",
#endif
							"WEAR_UNIQUE"
	};


item_lenght.h /common
 

enum EItemWearableFlag
{
	WEARABLE_BODY = (1 << 0),
	WEARABLE_HEAD = (1 << 1),
	WEARABLE_FOOTS = (1 << 2),
	WEARABLE_WRIST = (1 << 3),
	WEARABLE_WEAPON = (1 << 4),
	WEARABLE_NECK = (1 << 5),
	WEARABLE_EAR = (1 << 6),

#ifdef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
	WEARABLE_ARROW = (1 << 7),
	WEARABLE_SHIELD = (1 << 8),
	WEARABLE_BELT = (1 << 9),
	WEARABLE_PENDANT = (1 << 10),
	WEARABLE_GLOVES = (1 << 11),
	WEARABLE_COSTUME_BODY = (1 << 12),
	WEARABLE_COSTUME_HAIR = (1 << 13),
#ifdef __ACCE_SYSTEM__
	WEARABLE_COSTUME_ACCE = (1 << 14),
#endif
	WEARABLE_UNIQUE = (1 << 14),
#else
	WEARABLE_UNIQUE = (1 << 7),
	WEARABLE_SHIELD = (1 << 8),
	WEARABLE_ARROW = (1 << 9),
	WEARABLE_HAIR = (1 << 10),
	WEARABLE_ABILITY = (1 << 11),
	WEARABLE_COSTUME_BODY = (1 << 12),
#ifdef __ACCE_SYSTEM__
	WEARABLE_COSTUME_ACCE = (1 << 13),
#endif
#endif
};

 

length.h/common:
 

enum EWearPositions
{
	WEAR_BODY,			// 0
	WEAR_HEAD,			// 1
	WEAR_FOOTS,			// 2
	WEAR_WRIST,			// 3
	WEAR_WEAPON,		// 4
	WEAR_NECK,			// 5
	WEAR_EAR,			// 6
#ifndef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
	WEAR_UNIQUE1,       // 7
	WEAR_UNIQUE2,       // 8
#endif
	WEAR_ARROW,			// 7
	WEAR_SHIELD,		// 8
#ifdef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
	WEAR_BELT,			// 9
	WEAR_PENDANT,		// 10 (PENDANT)
	WEAR_GLOVES,		// 11 (GLOVES)

	// Second Equipment
	WEAR_SECOND_BODY,	// 12
	WEAR_SECOND_HEAD,	// 13
	WEAR_SECOND_FOOTS,	// 14
	WEAR_SECOND_WRIST,	// 15
	WEAR_SECOND_WEAPON,	// 16
	WEAR_SECOND_NECK,	// 17
	WEAR_SECOND_EAR,	// 18
	WEAR_SECOND_ARROW,	// 19
	WEAR_SECOND_SHIELD,	// 20
	WEAR_SECOND_BELT,	// 21
	WEAR_SECOND_PENDANT,	// 22
	WEAR_SECOND_GLOVES,	// 23 
#endif

#ifndef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
	WEAR_ABILITY1,		// 11 - 10
	WEAR_ABILITY2,		// 12 - 11
	WEAR_ABILITY3,		// 13 - 12
	WEAR_ABILITY4,		// 14 - 13
	WEAR_ABILITY5,		// 15 - 14
	WEAR_ABILITY6,		// 16 - 15
	WEAR_ABILITY7,		// 17 - 16
	WEAR_ABILITY8,		// 18 - 17
#endif

	WEAR_COSTUME_BODY,	// 24
	WEAR_COSTUME_HAIR,	// 25
#ifdef __ACCE_SYSTEM__
	WEAR_COSTUME_ACCE,	// 26
#endif

#ifdef ENABLE_ADDITIONAL_EQUIPMENT_PAGE
	WEAR_UNIQUE1,		// 27
	WEAR_UNIQUE2,		// 28
#else
	WEAR_RING1,			// 22 - 21	:New ring slot 1 (left)
	WEAR_RING2,			// 23 - 22	: New ring slot 2 (right)
	WEAR_BELT,			// 24 - 21	: New belt slot
#endif

	//WEAR_MAX_NUM,
};

ProtoReader.cpp/db
 

int get_Item_WearFlag_Value(string inputString) 
{

	string arWearrFlag[] = {
							"WEAR_BODY", "WEAR_HEAD", "WEAR_FOOTS", "WEAR_WRIST", "WEAR_WEAPON",
							"WEAR_NECK", "WEAR_EAR", "WEAR_ARROW", "WEAR_SHIELD", "WEAR_BELT",
							"WEAR_PENDANT", "WEAR_GLOVES", "WEAR_COSTUME_BODY", "WEAR_COSTUME_HAIR",
#ifdef ENABLE_ACCE_SYSTEM
							"WEAR_COSTUME_ACCE", 
#endif
							"WEAR_UNIQUE"
	};

 

 

I hope anyone can help me with my proplem 

Edited by Metin2 Dev International
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/33228-official-additional-equipment-page-issue/
Share on other sites

  • 5 months later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Premium

Hello,

did you find a fix to this issue ?

Im having some kind of similar issue

 

Best regards 

 

EDIT: I may i found the issue : check item_proto.txt for wearflags of shields and unique items shields have WEAR_UNIQUE and item unique have WEAR_SHIELD you might want to change that as the latest item_proto from GF.

 

I still have an issue with the system: armor value atk value appear clientside to be an addition of the two sets of equipment, from what i have tested it seems to be a visual bug damage taken ok dealted seems unchanged, might have missed a clientside part or there is something missing in the tutorial ? 

Edited by ARiver

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.