local talk = TalkAction("!home")
function talk.onSay(player, words, param)
local house = player:getHouse()
if not house then
player:sendTextMessage(MESSAGE_STATUS_SMALL, "You do not have a house.")
return false
end
if player:isPzLocked() then
player:sendTextMessage(MESSAGE_STATUS_SMALL, "You cannot teleport yourself or other while in combat.")
return false
end
if player:getSkull() ~= SKULL_NONE then
player:sendTextMessage(MESSAGE_STATUS_SMALL, "You can't teleport yourself or players with a skull.")
return false
end
player:teleportTo(house:getExitPosition())
return...