Here is my script, everything works fine except for the addEvents
local pos = {x=419, y=1325, z=8}
function onUse(cid, item, frompos, itemEx, topos)
if getPlayerItemCount(cid, 2087) >= 1 and item.itemid == 7106 then
doRemoveItem(getTileItemById(pos,7106).uid,1)
addEvent(one()...