Here You Got A Working Exp Scroll. Hope You Like It. A Simple One.
Place This One In Action.xml
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid,1302) == 2 then
doCreatureSay(cid, "You can only use this scroll once!", TALKTYPE_ORANGE_1)
else if getPlayerLevel(cid) >= 8 then
doCreatureSay(cid, "You Gained 40 000 000 Experience Points!", TALKTYPE_ORANGE_1)
doPlayerAddExp(cid, 40000000)
doSendMagicEffect(fromPosition, CONST_ME_GIFT_WRAPS)
doRemoveItem(item.uid)
setPlayerStorageValue(cid,1302,2)
return TRUE
else
doCreatureSay(cid, "You must be over level 8 to use this scroll", TALKTYPE_ORANGE_1)
end
end
end
Place This One In Action.xml
Code:
<action itemid="7722" script="quests/exp scroll.lua"/>
Last edited: