doPlayerAddExp(cid,exp)
local t = {
storage = 20000,
exp = 850000
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, t.storage) < 5 then
doPlayerAddExp(cid, 850000)
doSendAnimatedText(getThingPos(cid), t.exp, TEXTCOLOR_WHITE)
doCreatureSay(cid, "You gained " .. t.exp .. " experience!", TALKTYPE_ORANGE_1, false, cid, getThingPos(cid))
setPlayerStorageValue(cid, t.storage, 1)
doRemoveItem(item.uid, 1)
end
return true
end
<action itemid="6544" event="script" value="expeggs.lua"/>
doPlayerAddExp(cid, 50000000, true, true)