function onUse(cid, item, fromPosition, itemEx, toPosition)
local position = {x=1001, y=858, z=8} -- reward room
local rpos = {x=1000, y=1001, z=7} -- position where your character must stand
local ppos = getPlayerPosition(cid)
if(ppos.x == rpos.x and ppos.y == rpos.y and ppos.z...