Hi guys, how can i block items like potions and poly on guild map? I want solutions only in c++, andy ideas?
static bool IS_ENABLE_ITEM(int vnum)
{
switch (vnum)
{
case 39011:
case 39012:
case 39013:
return true;
}
return false;
}
bool IS_ENABLE_ITEM_ZONE(int map_index)
{
switch (map_index)
{
case 29:
case 30:
case 31:
return false;
}
return true;
}
if (IS_ENABLE_ITEM(item->GetVnum()))
{
if (false == IS_ENABLE_ITEM_ZONE(GetMapIndex()))
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You can not use this item here."));
return false;
}
}