local function changeTiles(cid)
local newTileID = 671
local pos = getCreaturePosition(cid)
for x = pos.x-1, pos.x+1 do
for y = pos.y-1, pos.y+1 do
local tpos = {x = x, y = y, z = pos.z, stackpos = STACKPOS_GROUND}
local tile = getThingFromPos(tpos)
if (tile) then
doTransformItem(tile.uid, newTileID)
end
end
end
end