Tente assim:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local config = {
teleportTo = {x = 50, y = 100, z = 7},
removeOnUse = true
}
if itemEx.itemid == 2249 then
doTeleportThing(cid, config.teleportTo)
if config.removeOnUse then
doRemoveItem(item.uid, 1)
end
end
return true
end
flw




info
Grupo: Campones
Registrado: 20/02/08
Posts: 2
Reputação: 0
to precisando de um script onde, o player usa fire bug no local, e ele é teleportado pra algum outro local.
tipo dreamer challange quest, onde ele usa no smoke(2249) e é teleportado para algum local.
pata tfs 0.3.6