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

How to Leave House

If you are using TFS:

leavehouse.lua
function onSay(cid, words, param)
if getTileHouseInfo(getPlayerPosition(cid)) ~= FALSE then
if getHouseOwner(getTileHouseInfo(getPlayerPosition(cid))) == getPlayerGUID(cid) then
setHouseOwner(getTileHouseInfo(getPlayerPosition(cid)), 0)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have successfully left your house.")
else
doPlayerSendCancel(cid, "You are not the owner of this house.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
else
doPlayerSendCancel(cid, "You are not inside a house.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
end

talkactions.xml
<talkaction words="!leavehouse" script="leavehouse.lua" />

This works for me but im using TFS 0.3
 
Back
Top