• 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!

Experience Token or Donator Coin

lol94

Loler
Joined
Dec 23, 2008
Messages
764
Reaction score
55
Location
Mexico
Hey whats up Otland! well can somebody tellme what is the scrpit of a experience token/donate coin?

Thankyou! gonna rep++ if you helpme
 
LUA:
<?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>
xxxx = Item ID of the Token.
LUA:
    <action itemid="xxxx" event="script">

 
Back
Top