Troque o seu leavehouse no talkactions.xml por:
<talkaction words="!leavehouse" script="leavehouse.lua"/>
Depois vá na pasta talkactions copie e cole qualquer arquivo .lua renomeie para leavehouse.lua e cole isto dentro:
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
return TRUE
end
Se você está usando o servidor Mystic Spirit as casas estão bugadas, reporte o criador do servidor.
Abraços.