local t = {
teleportTo = {x=342,y=839,z=15},
monsterName = 'Monster'
}
function onKill(cid, target, flags)
if getCreatureName(target):lower() == t.monsterName:lower() then
doSendMagicEffect(getThingPos(cid), CONST_ME_TELEPORT)
doTeleportThing(cid, t.teleportTo)
doSendMagicEffect(t.teleportTo, CONST_ME_TELEPORT)
doRemoveItem(getTileItemById({x=314, y=812, z=15}, 9773).uid)
--doCreateItem(1304,1,{x=314, y=812, z=15})
doItemSetAttribute((doCreateItem(1304,1,{x=314, y=812, z=15})).uid, "uid", 61001)
end
return true
end