Now quickly test and see if it works:
function onUse(cid, item, fromPosition, itemEx, toPosition, isHotkey)
if item.itemid == ITEM_GOLD_COIN and item.type == ITEMCOUNT_MAX then
Item(item.uid):remove()
Player(cid):addItem(ITEM_PLATINUM_COIN, 1)
elseif item.itemid == ITEM_PLATINUM_COIN and...