Tente isso:
function onDeath(cid, corpse, killer)
registerCreatureEvent(cid, "bluelegs")
-----------------------------------------------------------------------
local creaturename = getCreatureName(target)
local battle_position = {x=33271, y=32407, z=12, stackpos=2}
local reward_position = {x=33266, y=32446, z=12, stackpos=1}
local time_to_pass = 180
local teleport = 5023
local doEffect = CONST_ME_ENERGYHIT
local message = "You have only 3 minutes to enter the teleport!"
-----------------------------------------------------------------------
if creaturename == 'Koshei The Deathless' then
doCreateTeleport(teleport, reward_position, battle_position)
doSendMagicEffect(battle_position, doEffect)
doCreatureSay(cid,message,TALKTYPE_ORANGE_1)
addEvent(removeteleport, (1000*time_to_pass))
end
function removeteleport()
if getThingfromPos({x=33271, y=32407, z=12, stackpos=1}).itemid == teleport then
doRemoveItem(getThingfromPos({x=33271, y=32407, z=12, stackpos=1}).uid,1)
doSendMagicEffect({x=33271, y=32407, z=12, stackpos=1}, CONST_ME_POFF)
end
return TRUE
end
end
Se não funcionar avisa.




info
Grupo: Campones
Registrado: 20/02/09
Posts: 13
Reputação: +1
Char no Tibia: Sir Tiaguin
Boa tarde!,
Estou com um problema em minha quest da blue legs onde quando mata o monstro Koshei The Deathless não aparece o Tp onde mandaria para pegar a recompensa.
Segue o script da quest:
function onDeath(cid, corpse, killer) registerCreatureEvent(cid, "bluelegs") local creaturename = getCreatureName(cid) local koshei_in_position = {x=33271, y=32407, z=12, stackpos=2} local koshei_to_position = {x=33266, y=32446, z=12, stackpos=1} local time_to_pass = 180 local tpID = 5023 local doEffect = CONST_ME_ENERGYHIT local message = "GOOO! You have only 3 minutes to enter the teleport!" if creaturename == 'Koshei The Deathless' then teleport = doCreateTeleport(tpID, koshei_to_position, koshei_in_position) doSendMagicEffect(koshei_in_position, CONST_ME_ENERGYHIT) doCreatureSay(cid,message,TALKTYPE_ORANGE_1) addEvent(removeTeleportInKosheiWard, (1000*time_to_pass)) end end function removeTeleportInKosheiWard() if getThingfromPos({x=33271, y=32407, z=12, stackpos=1}).itemid == 5023 then doRemoveItem(getThingfromPos({x=33271, y=32407, z=12, stackpos=1}).uid,1) doSendMagicEffect({x=33271, y=32407, z=12, stackpos=1}, CONST_ME_POFF) return TRUE end endObrigado.
OBS: Não é só o Tp que não aparece a msg que indicaria que o Tp foi liberado também não aparece.
Editado Julho 29 por ADM Dark