1. Search in char_item.cpp :
Cod: Selectaţi tot
constint ITEM_BROKEN_METIN_VNUM =28960;Cod: Selectaţi tot
#define ERROR_MSG(exp, msg) \
if(true==(exp)){ \
ChatPacket(CHAT_TYPE_INFO, msg); \
returnfalse; \
}
Te duci la sfarsit si adaugi :
Cod: Selectaţi tot
bool CHARACTER::UseItem(TItemPos Cell, TItemPos DestCell)
{
WORD wCell = Cell.cell;
BYTE window_type = Cell.window_type;
//WORD wDestCell = DestCell.cell;
//BYTE bDestInven = DestCell.window_type;
LPITEM item;
if (!CanHandleItem())
return false;
if (!IsValidItemPosition(Cell) || !(item = GetItem(Cell)))
return false;Cod: Selectaţi tot
if (ITEM_BELT == item->GetType())
ERROR_MSG(CBeltInventoryHelper::IsExistItemInBeltInventory(this), "Cartof smecher");
Sper ca v-am ajutat. (Nu uitati de thanks.)





