// Store information for later use before it is lost (via pc->delitem) [Paradox924X]
nameid = sd->inventory_data[n]->nameid;
if( sd->status.inventory[n].card[0] == CARD0_CREATE )
{ // Do not allow use BG - Ancient Items on invalid maps
char_id = MakeDWord(sd->status.inventory[n].card[2],sd->status.inventory[n].card[3]);
if( battle_config.bg_reserved_char_id && char_id == battle_config.bg_reserved_char_id && !map_bg_items(sd->bl.m) )
return 0;
if (!(!strcmp(mapindex_id2name(sd->bl.m),"prontera") || !strcmp(mapindex_id2name(sd->bl.m),"pay_fild01") ) && battle_config.woe_reserved_char_id && char_id == battle_config.woe_reserved_char_id && !map_gvg_items(sd->bl.m) )
return 0;
}