LO
dúvida

Erro Com "remove Item"

Por Lolksky, 02 de set. de 2012 em Scripts

script
erro
teleport
remove
17
3k
VodkartV
02 de setembro de 2012 às 23:13
--[[ Script By Vodkart and Kydrai ]]--
local tps = {
["Annihilon"] = {pos = {x=1193, y=629, z=10}, toPos = {x=1325, y=699, z=10}, time = 10}
}
local function removeTp(tp)
local t = getTileItemById(tp.pos, 1387).uid
return t > 0 and doRemoveItem(t) and doSendMagicEffect(tp.pos, CONST_ME_POFF)
end
function onDeath(cid)
local tp = tps[getCreatureName(cid)]
if tp then
doCreateTeleport(1387, tp.toPos, tp.pos)
doCreatureSay(cid, "The Hellgorak portal will close at "..tp.time.." seconds. Enterin portal to complete the Inquisition Quest, and pick your reward.", TALKTYPE_ORANGE_1)
addEvent(removeTp, tp.time*1000, tp)
end
return true
end

LolkskyL
02 de setembro de 2012 às 23:55

--[[ Script By Vodkart and Kydrai ]]--
local tps = {
["Annihilon"] = {pos = {x=1193, y=629, z=10}, toPos = {x=1325, y=699, z=10}, time = 10}
}
local function removeTp(tp)
local t = getTileItemById(tp.pos, 1387).uid
return t > 0 and doRemoveItem(t) and doSendMagicEffect(tp.pos, CONST_ME_POFF)
end
function onDeath(cid)
local tp = tps[getCreatureName(cid)]
if tp then
doCreateTeleport(1387, tp.toPos, tp.pos)
doCreatureSay(cid, "The Hellgorak portal will close at "..tp.time.." seconds. Enterin portal to complete the Inquisition Quest, and pick your reward.", TALKTYPE_ORANGE_1)
addEvent(removeTp, tp.time*1000, tp)
end
return true
end

 

aeww \o/ agora foi, valeu aew vod

 

podem fechar o tópico!