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



  • Similar Content

  • Activity

    1. 0

      Metin2 effect script files (MSE and MSA file) how can convert

    2. 10

      Multi Language System

    3. 0

      We are looking for a C++ and Python programmer

    4. 0

      [Quest Scheduler Request] Is there a way to make a quest run independet of player events? Lets say start quest automatically at server startup?

    5. 111

      Ulthar SF V2 (TMP4 Base)

    6. 0

      Quest function when 102.kill definition whereabouts help

    7. 5

      [M2 FILTER] Customized Client Filter

    8. 0

      [INGAME] RGB Color on chat broken

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.