Jump to content

Enchant & Transform Costume


Recommended Posts

  • Premium

well in general it works perfect but there is some bugs

70063 can also add ATTRIBUTE like 70064 but when i had changed

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

with

70063	transform_costume	ITEM_USE	USE_ADD_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

it can add 4 bounses not 3

and Costume bounses changer works perfect btw

waiting for your reply

king regards

Link to comment
Share on other sites

  • 2 weeks later...

error uiinventory.py

 

0912 13:23:08972 :: 
networkModule.py(line:200) SetSelectCharacterPhase
system.py(line:144) __pack_import
system.py(line:124) _process_result
introSelect.py(line:31) ?
system.py(line:144) __pack_import
system.py(line:124) _process_result
interfaceModule.py(line:14) ?
system.py(line:144) __pack_import

networkModule.SetSelectCharacterPhase - exceptions.IndentationError:expected an indented block (line 993)

0912 13:23:08972 :: ============================================================================================================
0912 13:23:08972 :: Abort!!!!

:D

Link to comment
Share on other sites

  • Honorable Member

#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.

Edited by xP3NG3Rx
little fix added | download modified
  • Metin2 Dev 12
  • Confused 1
  • Good 4
  • Love 10
Link to comment
Share on other sites

  • Premium

#nosupport #noreply #nopm #doityourself :)

Here is mine with new use subtypes, Official like:

This is the hidden content, please

 

For me it is all fine when compiling but ingame

i can't add or change the costume bounses

https://metin2.download/picture/3RyB6fnz4QtwzbdGV1N5nQMUDO3crD8l/.jpg

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

  • Honorable Member

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";
}

 

  • Love 1
Link to comment
Share on other sites

  • Premium

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";
}

 

Same thing man

can't add any ATTR to the Costume

Link to comment
Share on other sites

  • Premium
70063	ؤع½؛ئ¬ ¼س¼؛ ہüأ¼ ؛¯°و	ITEM_USE	USE_RESET_COSTUME_ATTR	1	NONE	ITEM_STACKABLE | LOG	NONE	NONE	200000	200000	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	ؤع½؛ئ¬ ¼س¼؛ ء¾·ù ؛¯°و	ITEM_USE	USE_CHANGE_COSTUME_ATTR	1	NONE	ITEM_STACKABLE | LOG	NONE	NONE	400000	400000	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

  • 2 weeks later...

#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.

sorry for doublepost, I corrected something and the system works.

Good job Penger.

Edited by Tasho
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.