local toPos = {x = 1, y = 1, z = 1} --pos pra onde o player vai ser teleportado
function onSay(cid, words, param)
if getCreatureCondition(cid, CONDITION_INFIGHT) then
return doPlayerSendTextMessage(cid, 27, "You can't do that while is in battle!")
elseif not getTileInfo(getPlayerPosition(cid)).protection then
return doPlayerSendTextMessage(cid, 27, "You need be in Protection Zone to use this command!")
end
doTeleportThing(cid, toPos, false)
doSendMagicEffect(getPlayerPosition(cid), 21)
return true
end
tag:
<talkaction words="xxxx" event="script" value="yyyy.lua"/>








info
Grupo: Visconde
Registrado: 19/02/13
Posts: 285
Reputação: +28
Quero um talkaction que teleportasse o player para tal position!
Que só pode teleporta se tiver sem battle e em area pz!