const string CUSTOM_NAME_INV_CATEGORY_1 = "Шлемы";
const string CUSTOM_NAME_INV_CATEGORY_2 = "Амулеты";
const string CUSTOM_NAME_INV_CATEGORY_3 = "Кольца";
const string CUSTOM_NAME_INV_CATEGORY_4 = "Книги";
const string CUSTOM_NAME_INV_CATEGORY_5 = "Карты";
const string CUSTOM_NAME_INV_CATEGORY_6 = "Рецепты (крафт)";
const string CUSTOM_NAME_INV_CATEGORY_7 = "Рецепты (еда)";
const string CUSTOM_NAME_INV_CATEGORY_8 = "Кошельки";
const string CUSTOM_NAME_INV_CATEGORY_9 = "Пакеты, бочки, корзины";
const string CUSTOM_NAME_INV_CATEGORY_10 = "Минералы";
const string CUSTOM_NAME_INV_CATEGORY_11 = "Инструменты для крафта";
const string CUSTOM_NAME_INV_CATEGORY_12 = "Травы";
const string CUSTOM_NAME_INV_CATEGORY_13 = "Грибы";
const string CUSTOM_NAME_INV_CATEGORY_14 = "Ягоды";
const string CUSTOM_NAME_INV_CATEGORY_15 = "Напитки";
const string CUSTOM_NAME_INV_CATEGORY_16 = "Приготовленная еда";
const string CUSTOM_NAME_INV_CATEGORY_17 = "Скрижали";
const string CUSTOM_NAME_INV_CATEGORY_18 = "Статуэтки";
func int GET_CUSTOM_ITEM_CATEGORY_ID(var int INSTANCENAME, var int MAINFLAG, var int FLAG, var int HP)
{
if INSTANCENAME == ITWR_STONEPLATECOMMON_ADDON
{
return 17;
};
if INSTANCENAME == ITMI_ADDON_STONE_01
{
return 17;
};
if MAINFLAG & ITEM_KAT_FOOD
{
if HP == HP_TROPHY
{
return 107;
};
if HP == HP_PLANT
{
return 12;
};
if HP == HP_MUSHROOM
{
return 13;
};
if HP == HP_BERRY
{
return 14;
};
if HP == HP_DRINK
{
return 15;
};
if HP == HP_FOOD
{
return 16;
};
return -1;
};
if MAINFLAG & ITEM_KAT_POTIONS
{
if HP == HP_STPLATE
{
return 17;
};
if HP == HP_DRINK
{
return 15;
};
return -1;
};
if MAINFLAG & ITEM_KAT_NONE
{
if HP == HP_STATUE
{
return 18;
};
if HP == HP_TOOL
{
return 11;
};
return -1;
};
return -1;
};