Will this work?
Code:
-- Script by Ates
function onUse(cid, item, fromPosition, itemEx, toPosition)
local item = 6388
local exp = 1000000
if item.itemid == item then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You gained 1000000 experience.")
doPlayerAddExp(cid, exp)
doRemoveItem(cid, item)
bye
bye