try this .. not tested
function onDeath(cid, corpse, killer)
local M ={
["Serpent Spawn"] = {{Pos = {x=983,y=994,z=7}, {x=990,y=992,z=7}},{id= 1060,5009},
}
local x = M[getCreatureName(cid)]
function criar()
local parede = getTileItemById(x.Pos, x.id, x.Pos2, x.id2)
doCreateItem(x.id[i], 1...