Teste ai
function onUse(cid, item, fromPosition, itemEx, toPosition)
local fromPosimperador = {x=392, y=524, z=8}
local toPosimperador = {x=397, y=527, z=8}
local monsterimperador = getThingfromPos(fromPosimperador, toPosimperador)
if isInArea(getPlayerPosition(cid), fromPosimperador, toPosimperador) then
if getPlayerStorageValue(cid,2566) == 4 then
doTeleportThing(cid,{x=395,y=525,z=8})
doSendMagicEffect(getPlayerPosition(cid), 10)
doCreatureSay(cid, "Voc\ê est\á viajando no tempo",TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid,2566,5)
else
if getPlayerStorageValue(cid,2566) == 6 then
doTeleportThing(cid,{x=395,y=525,z=8})
doSendMagicEffect(getPlayerPosition(cid), 10)
doCreatureSay(cid, "Voc\ê est\á viajando no tempo",TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid,2566,7)
if(isPlayer(monsterimperador.uid) == TRUE)then
doRemoveCreature(monsterimperador.cid)
return true
end
return true
end
return true
end
return true
end
return true
end







info
Grupo: Cavaleiro
Registrado: 13/11/11
Posts: 190
Reputação: +20
Char no Tibia: Sweesh
Tem um erro nessa action, ela nao remove o monstro
aqui vai o script