• 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!

Removing premium houses

Xapuur

New Member
Joined
Sep 15, 2009
Messages
157
Reaction score
0
Location
Chile
Hello. I don't find how i can remove the requirement of premium to buy a house (!buyhouse).

My server is TFS 9.31

Thanks & Regards

EDIT: I finally find the command, and it is in commands.xml:
Code:
	<command cmd="!buyhouse" group="1" acctype="1"/>

Somebody knows where i can edit the scripts of !buyhouse? Because it isn't in talkactions folder
 
Last edited:
This is my talkactions.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<talkactions>
	<!-- player talkactions -->
	<talkaction words="!buypremium" script="buyprem.lua"/>
	<talkaction words="!leavehouse" script="leavehouse.lua"/>
	<talkaction words="!save" script="savecharacter.lua"/>
	<talkaction words="!changesex" script="changesex.lua"/>
	<talkaction words="!uptime" script="uptime.lua"/>
	<talkaction words="!deathlist" script="deathlist.lua"/>

	<!-- test talkactions -->
	<talkaction words="!z" script="magiceffect.lua"/>
	<talkaction words="!x" script="animationeffect.lua"/>
</talkactions>

I don't find the command "!buyhouse" to change from premium to free account

Regards
 
It isn't too. It's all in config.lua about houses (i use ctrl + f)
Code:
-- Houses
	
housePriceEachSQM = 1000
	
houseRentPeriod = "never"
 
In talkactions.xml is the "!leavehouse" with his respective script, but in commands.xml is the "!buyhouse" and i don't know where i can edit him..
 
download 0.2.11pl2 source, remove this from commands.cpp and compile
Code:
void Commands::buyHouse(Player* player, const std::string& cmd, const std::string& param)
{
[COLOR="#FF0000"]	if(!player->isPremium())
	{
		player->sendCancelMessage(RET_YOUNEEDPREMIUMACCOUNT);
		return;
	}[/COLOR]
 
Back
Top