<?xml version="1.0" encoding="UTF-8"?>
<mod name="expscroll" author="CyberM" enabled="yes">
<config name="settings">
<![CDATA[
extraExp = 0.25 --extra exp rate percent
storage = 4567
time = 24 * 60 * 60 --how many seconds(current is 24hours)
]]>
</config>
<event type="login" name="scroll" event="script">
<![CDATA[
domodlib('settings')
function onLogin(cid)
if exhaustion.check(cid, storage) then
doPlayerSetExperienceRate(cid, 1+extraExp)
end
return true
end
]]>
</event>
<action itemid="xxxx" event="script">
<![CDATA[
function onUse(cid, item, fromPosition, itemEx, toPosition)
domodlib('settings')
doRemoveItem(item.uid, 1)
exhaustion.set(cid, storage, time)
doCreatureSetStorage(cid, storage, 1)
doPlayerSetExperienceRate(cid, 1+extraExp)
return true
end
]]>
</action>
</mod>