Manda esse script aí, eventoteleport.lua que está em talkactions/scripts
[RESOLVIDO] Erro com função
By jeffersonfds, 06 de ago. de 2013 in Scripts
info
Group: Herói
Joined: 14/12/10
Posts: 3.6k
Reputation: +846
Gender: Masculino

info
Group: Visconde
Joined: 11/08/10
Posts: 477
Reputation: +175
Gender: Masculino

o script tá passando um valor nulo pra funcao gettile... na linha 11
info
Group: Campones
Joined: 27/03/13
Posts: 34
Reputation: +3
Tibia Character: jeffersonfds

function onSay(cid, words, param)
if words=="/eventoon" then
local create_pos = {x=1060 , y=1046 , z=5, stackpos=255}
local tp_pos = {x=1045 , y=1049 , z=15}
doCreateTeleport(1387, tp_pos , create_pos)
doSendMagicEffect(create_pos , 10)
doPlayerSendTextMessage(cid, 28 , "Portal para o Evento está aberto!")
return TRUE
end
if words=="/eventooff" then
doRemoveItem(getTileItemById(create_pos,1387))
doPlayerSendTextMessage(cid, 28 , "Portal para o Evento fechou!")
end
return TRUE
end
info
Group: Conde
Joined: 20/09/12
Posts: 711
Reputation: +86
Tibia Character: noé

tente ae.
function onSay(cid, words, param)
if words=="/eventoon" then
local create_pos = {x=1060 , y=1046 , z=5, stackpos=255}
local tp_pos = {x=1045 , y=1049 , z=15}
doCreateTeleport(1387, tp_pos , create_pos)
doSendMagicEffect(create_pos , 10)
doPlayerSendTextMessage(cid, 28 , "Portal para o Evento está aberto!")
return TRUE
end
if words=="/eventooff" then
doRemoveItem(getItemById(create_pos,1387))
doPlayerSendTextMessage(cid, 28 , "Portal para o Evento fechou!")
end
return TRUE
end
info
Group: Campones
Joined: 27/03/13
Posts: 34
Reputation: +3
Tibia Character: jeffersonfds

como assim ESKYLO
info
Group: Herói
Joined: 14/12/10
Posts: 3.6k
Reputation: +846
Gender: Masculino

Tente:
function onSay(cid, words, param)
local create_pos = {x = 1060, y = 1046, z = 5, stackpos = 255}
local tp_pos = {x = 1045, y = 1049, z = 15}
if words == "/eventoon" then
doCreateTeleport(1387, tp_pos, create_pos)
doSendMagicEffect(create_pos, 10)
doPlayerSendTextMessage(cid, 28 ,"Portal para o Evento está aberto!")
elseif words=="/eventooff" then
doRemoveItem(getThingFromPos({x = create_pos.x, y = create_pos.y, z = create_pos.z, stackpos = 1}).uid, 1)
doPlayerSendTextMessage(cid, 28 ,"Portal para o Evento fechou!")
end
return true
end
@Maelnise
Não existe essa função.
Edited Agosto 6 by Roksas
info
Group: Campones
Joined: 27/03/13
Posts: 34
Reputation: +3
Tibia Character: jeffersonfds

foi obrigado
um rep para você




info
Group: Campones
Joined: 27/03/13
Posts: 34
Reputation: +3
Tibia Character: jeffersonfds
como eu arrumo esse erro