local id1 = 2123 -- ID of the first item.
local id2 = 2648 -- ID of the second item.
local id3 = 2112 -- ID of the final item.
function onUse(cid, item, frompos, item2, topos)
if item.itemid == id1 then
doPlayerRemoveItem(cid, id1, 1)
doPlayerSendTextMessage(cid,22,"Please use the next item.")
end
if item2.itemid == id2 then
doPlayerRemoveItem(cid, id2, 1)
doPlayerSendTextMessage(cid,22,"Congratulations! you received an [itemname].")
doPlayerAddItem(cid, id3, 1)
end
end