• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

+20% forever Exp Scroll

  • Thread starter Deleted member 49793
  • Start date
D

Deleted member 49793

Guest
Basicly like title, a scroll you use (disapears after) making your character gain 20% more experience forever :) or a really high amount xD... 9999999999999 hours ^^
 
here, +20% more exp
/mods/expscroll.xml
XML:
<?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>
remember to change to the itemid you want
 
Last edited:
here, +20% more exp
/mods/expscroll.xml
XML:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="expscroll" author="C" enabled="yes">
    <config name="settings">
        <=!=[=C=D=A=T=A=[
            extraExp = 1.20
            storage = 4567
        ]=]=>
    </config>
    <event type="login" name="scroll" event="script">
        <=!=[=C=D=A=T=A=[
            domodlib('settings')
            function onLogin(cid)
                if getCreatureStorage(cid, storage) > 0 then
                    doPlayerSetExperienceRate(cid, extraExp)
                end
                return true
            end
        ]=]=>
    </event>
    <action itemid="1981" event="script">
        <=!=[=C=D=A=T=A=[
            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>
remember to change to the itemid you want

CyberM if i want same script but with a long time? Can help? =)
 
I want the extra exp lasts only 24 hours. can?. nothing else lasts 24 hours
time is absolute i think ;x
Lua:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="expscroll" author="C" enabled="yes">
    <config name="settings">
        <![CDATA[
            extraExp = 0.20 --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="1981" 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>
 
thank you very much friend. worked

But I have a problem. Each time you log out or die
use another book

no way that lasts 12 hours or 24 hours without being paid by
any reason?
 
Last edited:
can you make it so you get +15kk exp if you use it? (0-100) and it works only once

Lua:
local exp = xxxxxxxxx ---- Exp
function onUse(cid, item, fromPosition, itemEx, toPosition)
  doPlayerAddExp(cid,exp)
  doRemoveItem(item.uid, 1)
  doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have gained " .. exp .. " experience!")
return true
end
 
Lua:
local t = {
	exp = 15000000,
	storage = 16384,
	levelmax = 100
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if getCreatureStorage(cid, t.storage) == -1 then
		if getPlayerLevel(cid) <= t.levelmax then
			doPlayerAddExp(cid, t.exp)
			doSendAnimatedText(getThingPos(cid), t.exp, 215)
			doRemoveItem(item.uid)
			doCreatureSay(cid, 'You have gained ' .. t.exp .. ' experience!', TALKTYPE_ORANGE_1, false, cid)
			doCreatureSetStorage(cid, t.storage, 1)
		else
			doCreatureSay(cid, 'Your level is too high.', TALKTYPE_ORANGE_1, false, cid)
		end
	else
		doCreatureSay(cid, 'This item can only be used once.', TALKTYPE_ORANGE_1, false, cid)
	end
	return true
end
 
Thanks, rep!
Also,

anyone wanna make a script for training scroll? you get 24hours of training if u use it, example !trainskill axe
after you use it the item vanishes but you can use it again if you get a new one
 
Last edited:
Back
Top