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
Group: Visconde
Joined: 19/02/13
Posts: 285
Reputation: +28
Quero um talkaction que teleportasse o player para tal position!
Que só pode teleporta se tiver sem battle e em area pz!