local c = { wood = 5901, wtile = 1284 } function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerItemCount(cid, c.wood) >= 1 then if itemEx.itemid == 100 then doPlayerRemoveItem(cid, c.wood, 1) doTransformItem(itemEx.uid, c.wtile) addEvent(doCreateItem, 10000, 100,toPosition) else return doPlayerSendCancel(cid, "You cannot use the hammer on that tile.") end else return doPlayerSendCancel(cid, "You don't have enough wood.") end return true end