Geeeente ;D
meu /t ( comando que vai para o templo) esta dando em lugar diferente do templo, como resolvo isso ?
Geeeente ;D
meu /t ( comando que vai para o templo) esta dando em lugar diferente do templo, como resolvo isso ?
Posta o script do /t
Estagiário 24/01/2013
pedido para sair : 23/02/2013
Volta como estagiário: 11/04/2013
Pedido para sair: 10/05/2013
onde ele esta ?
Usa esse talkaction:
function onSay(cid, words, param)
local tid = cid
if(param ~= "") then
tid = getPlayerByNameWildcard(param)
if(tid == 0 or (isPlayerGhost(tid) == TRUE and getPlayerAccess(tid) > getPlayerAccess(cid))) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " not found.")
return TRUE
end
end
local pos = getPlayerTown(tid)
local tmp = getTownName(pos)
if(tmp == LUA_ERROR) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Home town does not exists.")
return TRUE
end
pos = getTownTemplePosition(pos)
if(pos == LUA_ERROR or isInArray({pos.x, pos.y, pos.z}, 0) == TRUE) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Wrong temple position for town " .. tmp .. ".")
return TRUE
end
pos = getClosestFreeTile(tid, pos)
if(pos == LUA_ERROR or isInArray({pos.x, pos.y, pos.z}, 0) == TRUE) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Destination not reachable.")
return TRUE
end
tmp = getCreaturePosition(tid)
if(doTeleportThing(tid, pos, TRUE) ~= LUA_ERROR and isPlayerGhost(tid) ~= TRUE) then
doSendMagicEffect(tmp, CONST_ME_POFF)
doSendMagicEffect(pos, CONST_ME_TELEPORT)
end
return TRUE
end
Ele está em Pasta do seu OT -> data -> talkactions -> scripts -> teleportmaster.lua
onde edita a posição do templo ?
Obrigado, ja resolvi
Thiago sempre ajudando a comunidade XTIBIANA, parabéns meu caro!
Tópico movido para pedidos e dúvidas resolvidos.
"O fracasso é a oportunidade de se começar de novo inteligentemente"