Gente todos os ots de poketibia que eu baixei NENHUM
tinha esse comando para GOD intão resolvir colocar
Sistema
function onSay(cid, words, param, channel)local n = 1
if(param ~= '' and tonumber(param)) then
n = math.max(0, tonumber(param))
end
local tmp, pos = getCreaturePosition(cid), getCreaturePosition(cid)
if(words:sub(2, 2) == "u") then
pos.z = pos.z - n
else
pos.z = pos.z + n
end
pos = getClosestFreeTile(cid, pos, false, false)
if(not pos or isInArray({pos.x, pos.y}, 0)) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Destination not reachable.")
return TRUE
end
if(doTeleportThing(cid, pos, TRUE) and not isPlayerGhost(cid)) then
doSendMagicEffect(tmp, CONST_ME_POFF)
doSendMagicEffect(pos, CONST_ME_TELEPORT)
end
return TRUE
end
Salve com o nome "telegod.lua"
Tag (São 2 Tags)
<talkaction log="yes" words="/up" access="3" event="script" value="telegod.lua"/><talkaction log="yes" words="/down" access="3" event="script" value="telegod.lua"/>
Explicando as tags: Aonde esta de Vermelho é o comando para utilizar o sistema e onde esta de Cinza é o nome do arquivo ( que no caso aqui é telegod.lua)
Ajudei? Entaum da REP+ não cai a mão ;D