ACMD(do_shop_remote)
{
if (ch->IsDead() || ch->GetExchange() || ch->GetMyShop() || ch->IsOpenSafebox() || ch->IsCubeOpen())
{
ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT(TRANSLATE_LANGUAGE,"Close the open windows first."));
return;
}
char arg1[256];
one_argument(argument, arg1, sizeof(arg1));
if (!*arg1)
return;
uint16_t vnum;
str_to_number(vnum, arg1);
LPSHOP shop = CShopManager::instance().Get(vnum);
if (!shop)
return;
ch->SetShopOwner(ch);
shop->AddGuest(ch, 0, false);
}
I have this function to open the normal shops.
I'm wondering if there is not an function in server source to can open a specific tab, without to use binary or slots..
size_t GetTabCount() { return m_vec_shopTabs.size(); }
All i can find about ShopEX tab is this check in Server source..