• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

napis przy kupowaniu domku..

lenidas

New Member
Joined
Mar 18, 2010
Messages
149
Reaction score
0
w sumie to jest bug bo ustawiłem
Code:
        houseRentAsPrice = false
        housePriceAsRent = false
        houseRentPeriod = "never"

a mimo to i tak pokazuje się:
You have successfully bought this house, remember to leave money at bank or depot of this town for rent.


i teraz taka sprawa
Code:
	house->setOwnerEx(player->getGUID(), true);
	std::string ret = "You have successfully bought this ";
	if(house->isGuild())
		ret += "hall";
	else
		ret += "house";

	ret += ", remember to leave money at ";
	if(house->isGuild())
		ret += "guild owner ";

	if(g_config.getBool(ConfigManager::BANK_SYSTEM))
		ret += "bank or ";

	ret += "depot of this town for rent.";
	player->sendTextMessage(MSG_INFO_DESCR, ret.c_str());

	g_game.addMagicEffect(player->getPosition(), MAGIC_EFFECT_WRAPS_BLUE);
	return false;
}

Czy jak to edytuje na
Code:
	house->setOwnerEx(player->getGUID(), true);
	std::string ret = "You have successfully bought this ";
	if(house->isGuild())
		ret += "hall";
	else
		ret += "house";

	ret += "";
	if(house->isGuild())
		ret += "";

	if(g_config.getBool(ConfigManager::BANK_SYSTEM))
		ret += "";

	ret += "";
	player->sendTextMessage(MSG_INFO_DESCR, ret.c_str());

	g_game.addMagicEffect(player->getPosition(), MAGIC_EFFECT_WRAPS_BLUE);
	return false;
}

to już nie będzie pokazywać tego napisu o wynajmie?
i drugie pytanie czy to wystarczy tylko edytować talkaction.cpp czy jeszcze jakiś plik?
 
Code:
	house->setOwnerEx(player->getGUID(), true);
	std::string ret = "You have successfully bought this ";
	if(house->isGuild())
		ret += "hall.";
	else
		ret += "house.";

	player->sendTextMessage(MSG_INFO_DESCR, ret.c_str());

	g_game.addMagicEffect(player->getPosition(), MAGIC_EFFECT_WRAPS_BLUE);
	return false;
}


te ify nie potrzebne Ci juz. Nic wiecej nie edytuj - zrekompiluj.
 
Back
Top