if(!house->getDoorByPosition(pos))
{
player->sendCancel("You have to be looking at door of flat you would like to purchase.");
g_game.addMagicEffect(player->getPosition(), MAGIC_EFFECT_POFF);
return false;
}
std::string canBuy;
player->getStorage(cyferka, canBuy);
if(canBuy != "yes")
{
player->sendCancel("You are not allowed to buy house.");
g_game.addMagicEffect(player->getPosition(), MAGIC_EFFECT_POFF);
return false;
}
doCreatureSetStorage(cid, cyferka, "yes")