Jump to content
  • Join-Us

    https://metin2.dev is the 1st international community on Metin2 development. Join us to develop your skills and share your knowledge with the community, respectful and ethical forum.

  • 0

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


Ulthar

Question

  • 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
Link to comment
Share on other sites

  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

2 answers to this question

Recommended Posts

  • 0
  • Bronze

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

  • 0
  • 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

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

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.