Jump to content

[cube system help] I cannot do anything with items from special storage to cube window


Recommended Posts

  • Premium

Hello

Im using "UK_ENABLE_SPECIAL_STORAGE".
And i cannot move items from special storage to normal inventory, or even into cube window.
I saw a "one line code" for enable move items from special-inv to normal-inv, but i cant find it. :c
 

Gif about thishttps://metin2.download/picture/2ch9DNSYcoua898Edc3ycMAkGUjnE38U/.gif

Edited by Metin2 Dev
Core X - External 2 Internal

Ulthar

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

you extend this function in cube.cpp?

 

void Cube_add_item (LPCHARACTER ch, int cube_index, int inven_index)



in my code:

 

#ifdef __SPECIAL_INVENTORY_SYSTEM__
	if (inven_index < 0 || INVENTORY_MAX_NUM +
		SKILL_BOOK_INVENTORY_MAX_NUM +
		UPGRADE_ITEMS_INVENTORY_MAX_NUM +
		STONE_INVENTORY_MAX_NUM +
		GIFT_BOX_INVENTORY_MAX_NUM +
		CHANGERS_INVENTORY_MAX_NUM <= inven_index)
		return;
#else
	if (inven_index < 0 || INVENTORY_MAX_NUM <= inven_index)
		return;
#endif

 

Edited by SamuraiHUN
Link to comment
Share on other sites

  • Premium
3 minutes ago, SamuraiHUN said:

you extend this function in cube.cpp?

Szia!
Yes, i did it

 

#ifdef UK_ENABLE_SPECIAL_STORAGE
void Cube_add_item(LPCHARACTER ch, UINT cube_index, UINT inven_index, int inven_type)
#else
void Cube_add_item(LPCHARACTER ch, UINT cube_index, UINT inven_index)
#endif

 

Ulthar

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

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.