<?xml version="1.0" encoding="UTF-8"?>
<mod name="expscroll" author="C" enabled="yes">
<config name="settings">
<![CDATA[
extraExp = 1.20
storage = 4567
]]>
</config>
<event type="login" name="scroll" event="script">
<![CDATA[
domodlib('settings')
function onLogin(cid)
if getCreatureStorage(cid, storage) > 0 then
doPlayerSetExperienceRate(cid, extraExp)
end
return true
end
]]>
</event>
<action itemid="1981" event="script">
<![CDATA[
function onUse(cid, item, fromPosition, itemEx, toPosition)
domodlib('settings')
doRemoveItem(item.uid, 1)
doCreatureSetStorage(cid, storage, 1)
doPlayerSetExperienceRate(cid, extraExp)
return true
end
]]>
</action>
</mod>