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

Solved Antimated Smilies

simson361

The Grim Reaper
Joined
Aug 4, 2010
Messages
626
Reaction score
27
Location
sweden
im getting this when loading this MOD
Code:
[22/09/2013 23:24:53] > Loading animated-smiles.xml... done, but disabled.
This is the Mod script
Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="animated-smiles" version="1.1" author="slawkens" contact="[email protected]" enabled="no">
    <config name="animated-smiles-config"><![CDATA[
        exhaust = 1 -- in seconds
        storage = 3000 -- storage value used to save exhaustion
    ]]></config>

    <talkaction words="NOOB,LOL,xd, :d, ;d, =d, xp, :p, ;p, =p, :o, ;o, ;s, :s, :/, ;/, :*, ;*, =*, :>, ;>, :), ;), =), :(, ;(, =(, :[, ;[, :], ;], :@, ;@, ^^, ^.^, -.-" separator="," logged="no" hidden="yes" case-sensitive="no" event="script"><![CDATA[
        domodlib('animated-smiles-config')

        local config = {
            exhaustion = exhaust,
            storage = storage
        }

        function onSay(cid, words, param, channel)
            if(channel ~= CHANNEL_DEFAULT) then
                return false
            end

            if(exhaustion.check(cid, config.storage)) then -- prevent spam
                return true
            end

            if(isInArray({":*", ";*", "=*","Muack"}, words)) then
                doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HEARTS)
            end

            exhaustion.set(cid, config.storage, config.exhaustion)
            doCreatureSay(cid, words, TALKTYPE_ORANGE_1)
            return true
        end
    ]]></talkaction>
</mod>
 
Back
Top