Jump to content

Enchant & Transform Costume


Recommended Posts

  • Honorable Member

What your type of the sashes?
costume(type:28) with costume_sash(subtype:3)?

You have to correct this statement for your system:

#ifdef __ACCE_COSTUME_SYSTEM__
							if (ITEM_COSTUME != item2->GetType() && COSTUME_HAIR < item2->GetSubType())
#else
							if (ITEM_COSTUME != item2->GetType())
#endif
							{
								ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ŔĚ Ç׸ń°ú Ç׸ńŔÇ ĽÓĽşŔ» şŻ°ćÇŇ Ľö ľř˝Ŕ´Ď´Ů."));
								return false;
							}

Like this:

							if (ITEM_COSTUME != item2->GetType() || (item2->GetSubType() != COSTUME_BODY && item2->GetSubType() != COSTUME_HAIR))
							{
								ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ŔĚ Ç׸ń°ú Ç׸ńŔÇ ĽÓĽşŔ» şŻ°ćÇŇ Ľö ľř˝Ŕ´Ď´Ů."));
								return false;
							}

 

  • Love 1
Link to comment
Share on other sites

What your type of the sashes?
costume(type:28) with costume_sash(subtype:3)?

You have to correct this statement for your system:

#ifdef __ACCE_COSTUME_SYSTEM__
							if (ITEM_COSTUME != item2->GetType() && COSTUME_HAIR < item2->GetSubType())
#else
							if (ITEM_COSTUME != item2->GetType())
#endif
							{
								ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ŔĚ Ç׸ń°ú Ç׸ńŔÇ ĽÓĽşŔ» şŻ°ćÇŇ Ľö ľř˝Ŕ´Ď´Ů."));
								return false;
							}

Like this:

							if (ITEM_COSTUME != item2->GetType() || (item2->GetSubType() != COSTUME_BODY && item2->GetSubType() != COSTUME_HAIR))
							{
								ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ŔĚ Ç׸ń°ú Ç׸ńŔÇ ĽÓĽşŔ» şŻ°ćÇŇ Ľö ľř˝Ŕ´Ď´Ů."));
								return false;
							}

 

type 28 subtype 2 thanks for share

Link to comment
Share on other sites

What your type of the sashes?
costume(type:28) with costume_sash(subtype:3)?

You have to correct this statement for your system:

#ifdef __ACCE_COSTUME_SYSTEM__
							if (ITEM_COSTUME != item2->GetType() && COSTUME_HAIR < item2->GetSubType())
#else
							if (ITEM_COSTUME != item2->GetType())
#endif
							{
								ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ŔĚ Ç׸ń°ú Ç׸ńŔÇ ĽÓĽşŔ» şŻ°ćÇŇ Ľö ľř˝Ŕ´Ď´Ů."));
								return false;
							}

Like this:

							if (ITEM_COSTUME != item2->GetType() || (item2->GetSubType() != COSTUME_BODY && item2->GetSubType() != COSTUME_HAIR))
							{
								ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ŔĚ Ç׸ń°ú Ç׸ńŔÇ ĽÓĽşŔ» şŻ°ćÇŇ Ľö ľř˝Ŕ´Ď´Ů."));
								return false;
							}

 

type 28 subtype 2 thanks for share

the costume_body is subtype2 so that isn't possible ... 

Link to comment
Share on other sites

What your type of the sashes?
costume(type:28) with costume_sash(subtype:3)?

You have to correct this statement for your system:

#ifdef __ACCE_COSTUME_SYSTEM__
							if (ITEM_COSTUME != item2->GetType() && COSTUME_HAIR < item2->GetSubType())
#else
							if (ITEM_COSTUME != item2->GetType())
#endif
							{
								ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ŔĚ Ç׸ń°ú Ç׸ńŔÇ ĽÓĽşŔ» şŻ°ćÇŇ Ľö ľř˝Ŕ´Ď´Ů."));
								return false;
							}

Like this:

							if (ITEM_COSTUME != item2->GetType() || (item2->GetSubType() != COSTUME_BODY && item2->GetSubType() != COSTUME_HAIR))
							{
								ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ŔĚ Ç׸ń°ú Ç׸ńŔÇ ĽÓĽşŔ» şŻ°ćÇŇ Ľö ľř˝Ŕ´Ď´Ů."));
								return false;
							}

 

type 28 subtype 2 thanks for share

the costume_body is subtype2 so that isn't possible ... 

sash 2 xD

Link to comment
Share on other sites

@xP3NG3Rx i use your system and it work perfect, but i have just little problem

 

Untitled.thumb.png.d11d1047560deea0ff48c

look, when i put item it show me red not green...how fix that? thx

Have you added this? 

 

Hmm, yes, I forgot the GameLib> ItemData.cpp, sorry and I'll edit the download with this:

const char* CItemData::GetUseTypeString() const
{
	if (GetType() != CItemData::ITEM_TYPE_USE)
		return "NOT_USE_TYPE";

	switch (GetSubType())
	{
		case USE_TUNING:
			return DEF_STR(USE_TUNING);
		case USE_DETACHMENT:
			return DEF_STR(USE_DETACHMENT);
		case USE_CLEAN_SOCKET:
			return DEF_STR(USE_CLEAN_SOCKET);
		case USE_CHANGE_ATTRIBUTE:
			return DEF_STR(USE_CHANGE_ATTRIBUTE);
		case USE_ADD_ATTRIBUTE:
			return DEF_STR(USE_ADD_ATTRIBUTE);
		case USE_ADD_ATTRIBUTE2:
			return DEF_STR(USE_ADD_ATTRIBUTE2);
		case USE_ADD_ACCESSORY_SOCKET:
			return DEF_STR(USE_ADD_ACCESSORY_SOCKET);
		case USE_PUT_INTO_ACCESSORY_SOCKET:
			return DEF_STR(USE_PUT_INTO_ACCESSORY_SOCKET);
		case USE_PUT_INTO_BELT_SOCKET:
			return DEF_STR(USE_PUT_INTO_BELT_SOCKET);
		case USE_PUT_INTO_RING_SOCKET:
			return DEF_STR(USE_PUT_INTO_RING_SOCKET);
		case USE_CHANGE_COSTUME_ATTR:
			return DEF_STR(USE_CHANGE_COSTUME_ATTR);
		case USE_RESET_COSTUME_ATTR:
			return DEF_STR(USE_RESET_COSTUME_ATTR);
	}
	return "USE_UNKNOWN_TYPE";
}

 

Link to comment
Share on other sites

@xP3NG3Rx i use your system and it work perfect, but i have just little problem

 

Untitled.thumb.png.d11d1047560deea0ff48c

look, when i put item it show me red not green...how fix that? thx

Have you added this? 

 

Hmm, yes, I forgot the GameLib> ItemData.cpp, sorry and I'll edit the download with this:

const char* CItemData::GetUseTypeString() const
{
	if (GetType() != CItemData::ITEM_TYPE_USE)
		return "NOT_USE_TYPE";

	switch (GetSubType())
	{
		case USE_TUNING:
			return DEF_STR(USE_TUNING);
		case USE_DETACHMENT:
			return DEF_STR(USE_DETACHMENT);
		case USE_CLEAN_SOCKET:
			return DEF_STR(USE_CLEAN_SOCKET);
		case USE_CHANGE_ATTRIBUTE:
			return DEF_STR(USE_CHANGE_ATTRIBUTE);
		case USE_ADD_ATTRIBUTE:
			return DEF_STR(USE_ADD_ATTRIBUTE);
		case USE_ADD_ATTRIBUTE2:
			return DEF_STR(USE_ADD_ATTRIBUTE2);
		case USE_ADD_ACCESSORY_SOCKET:
			return DEF_STR(USE_ADD_ACCESSORY_SOCKET);
		case USE_PUT_INTO_ACCESSORY_SOCKET:
			return DEF_STR(USE_PUT_INTO_ACCESSORY_SOCKET);
		case USE_PUT_INTO_BELT_SOCKET:
			return DEF_STR(USE_PUT_INTO_BELT_SOCKET);
		case USE_PUT_INTO_RING_SOCKET:
			return DEF_STR(USE_PUT_INTO_RING_SOCKET);
		case USE_CHANGE_COSTUME_ATTR:
			return DEF_STR(USE_CHANGE_COSTUME_ATTR);
		case USE_RESET_COSTUME_ATTR:
			return DEF_STR(USE_RESET_COSTUME_ATTR);
	}
	return "USE_UNKNOWN_TYPE";
}

 

 

yes

Link to comment
Share on other sites

  • Premium
70063	transform_costume	ITEM_USE	USE_CHANGE_ATTRIBUTE	1	ANTI_DROP | ANTI_SELL | ANTI_GIVE | ANTI_MYSHOP	ITEM_STACKABLE | LOG	NONE	NONE	0	0	0	0	0	LIMIT_NONE	0	LIMIT_NONE	0	APPLY_NONE	0	APPLY_NONE	0	APPLY_NONE	0	0	0	0	0	0	0	0	0	0
70064	enchant_costume	ITEM_USE	USE_CHANGE_ATTRIBUTE	1	ANTI_DROP | ANTI_SELL | ANTI_GIVE | ANTI_MYSHOP	ITEM_STACKABLE | LOG	NONE	NONE	0	0	0	0	0	LIMIT_NONE	0	LIMIT_NONE	0	APPLY_NONE	0	APPLY_NONE	0	APPLY_NONE	0	0	0	0	0	0	0	0	0	0

 

Link to comment
Share on other sites

There is an "if-statement" which blocks the usage with non-costumes O.o

The changes need to looks like this:

Hidden Content

I have this error

 

 

char_item.cpp: In member function 'bool CHARACTER::UseItemEx(CItem*, TItemPos)':
char_item.cpp:4505: error: 'USE_CHANGE_COSTUME_ATTR' was not declared in this scope
char_item.cpp:4506: error: 'USE_RESET_COSTUME_ATTR' was not declared in this scope
char_item.cpp:4536: error: 'USE_CHANGE_COSTUME_ATTR' cannot appear in a constant-expression
char_item.cpp:4557: error: 'USE_RESET_COSTUME_ATTR' cannot appear in a constant-expression
char_item.cpp:4600: error: duplicate case value
char_item.cpp:4598: error: previously used here
char_item.cpp:4601: error: duplicate case value
char_item.cpp:4599: error: previously used here

 

Link to comment
Share on other sites

  • 3 weeks later...

OMG NONE OF THESE METHODS WORK!!!!!!!! IM TRYING OVER 3 HOURS!!!!!!! @.Avenue method: the items can also change and add bonus to normal items none only costumes!!! @Vegas and @xP3NG3Rx method: THE GAME WONT COMPILE stuck in char_item.cpp with warnings about other lines that have NOTHING to do with this.... who ever did it i challenge him to explain how he made it

Link to comment
Share on other sites

OMG NONE OF THESE METHODS WORK!!!!!!!! IM TRYING OVER 3 HOURS!!!!!!! @.Avenue method: the items can also change and add bonus to normal items none only costumes!!! @Vegas and @xP3NG3Rx method: THE GAME WONT COMPILE stuck in char_item.cpp with warnings about other lines that have NOTHING to do with this.... who ever did it i challenge him to explain how he made it

On you nothing work.

I tried p3nger metod and work.

Avenue metod wotk too.

 

If u dont know to copy/paste it's your problem.

Link to comment
Share on other sites

well i copied pasted exactly what p3ng3r has write and char_item.cpp stops the compiling... what is your problem anw its been all morning since im getting the same error im trying and i do not want to offend anybodys work but if something is not working i wont sit tight and say oh thats ok the guy tried i tried... may others have the same problems and not saying anything because they think that nobody is going to pay attention...

Link to comment
Share on other sites

well i copied pasted exactly what p3ng3r has write and char_item.cpp stops the compiling... what is your problem anw its been all morning since im getting the same error im trying and i do not want to offend anybodys work but if something is not working i wont sit tight and say oh thats ok the guy tried i tried... may others have the same problems and not saying anything because they think that nobody is going to pay attention...

Upload char_item.cpp and i will make for you

Link to comment
Share on other sites

#nosupport #noreply #nopm #doityourself :)

Here is mine with new use subtypes, Official like:

This is the hidden content, please

#Edit: I will not edit the download but here is a little fix, about ymir's fail:

Search these lines in uiInventory.py:

if player.GetItemAttribute(dstSlotPos, i) != 0:

And replace with:

if player.GetItemAttribute(dstSlotPos, i)[0] != 0:

Why?
Easy, because the player.GetItemAttribute give back 2 values as always in standard case (0, 0) which is a tuple, the comparison is return true every times.

hey man i did it and i saw the comments in here but still the problem remains:

https://metin2.download/picture/Xg1sE35a2y5A0yynShjX1K8WmusQ02Nf/.png

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 1 month later...
On ‎05‎/‎11‎/‎2015 at 3:54 PM, Achilleee said:

Does anyone kwon how can fix this problem?

https://metin2.download/picture/Xg1sE35a2y5A0yynShjX1K8WmusQ02Nf/.png

 

Dude I just fixed this problem you need to create a proto_dump.exe that supports new types and subtypes @xP3NG3Rx gives a good one in his tut. Also guys I tried the p3ng3r method and now my CHANGE_ATTR works but my RESET_ATTR is not doing anything. I just drag it on my costume and nothing happens. Anyone knows where should I look for typos?

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

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.