1
[Talkactions] Teleport House (tfs 0.4 and tfs 0.3.7) el Vie Mar 09, 2018 7:44 am
[Admin] God Maya
![[Admin] God Maya](https://2img.net/u/2712/30/40/04/avatars/1-92.jpg)
Administrador

Bueno aqui les dejo un scriptsen base a un talkactions que al ejecutar en el juego de donde este te enviara a la puerta su house.
![[Talkactions] Teleport House (tfs 0.4 and tfs 0.3.7) Rkr51c](https://2img.net/h/oi49.tinypic.com/rkr51c.gif)
buenos vamos a instalacion:
nos vamos a:
Data/talkactions/scripts |
copiamos cualquier archivo y renombramos por tphouse.lua y pegamos esto dentro
- Código:
function onSay(cid, words, param, channel)
local playerPos = getCreaturePosition(cid)
if exhaustion.check(cid, 7612) == false then
if getHouseByPlayerGUID(getPlayerGUID(cid)) and getCreatureCondition(cid, CONDITION_INFIGHT) == false then
doTeleportThing(cid, getHouseEntry(getHouseByPlayerGUID(getPlayerGUID(cid))))
doSendMagicEffect(playerPos, CONST_ME_TELEPORT)
doSendAnimatedText(playerPos, 'Bye!', TEXTCOLOR_GREEN)
exhaustion.set(cid, 7612, 10)
elseif getCreatureCondition(cid, CONDITION_INFIGHT) == true then
doSendAnimatedText(playerPos, 'PZ Locked!', TEXTCOLOR_RED)
exhaustion.set(cid, 7612, 10)
elseif getHouseByPlayerGUID(getPlayerGUID(cid)) == nil then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You dont own a house!")
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You are exhausted!")
end
return true
end
luego nos vamos a:
Data/talkactions/talkactions.xml |
y agregamos esta tag
- Código:
<talkaction words="!gohouse" event="script" value="tphouse.lua"/>
creditos: Cornex

![[Talkactions] Teleport House (tfs 0.4 and tfs 0.3.7) YNU5B25](https://i.imgur.com/yNU5B25.png)