function onUse(cid, item, fromPosition, itemEx, toPosition)
local tpPos = {x = 100, y = 100, z = 7}
local pPos = {x = 200, y = 200, z = 7, stackpos = 253} -- dont touch the stackpos
local itemPos = {x = 201, y = 201, z = 7, stackpos = 1}
local getItem = getThingFromPos(itemPos)
local getPlayer = getThingFromPos(pPos)
local itemId = 2160
if getPlayer.itemid > 0 then
if getItem.itemid == itemId then
doRemoveItem(getItem.uid, 1)
doSendMagicEffect(getPlayer.uid, CONST_ME_POFF)
doTeleportThing(getPlayer.uid, tpPos)
doSendMagicEffect(tpPos, 37)
else
doPlayerSendCancel(cid, "You have to stay on the right position and put the "..getItemNameById(itemId).." on the coal basin")
end
end
return TRUE
end