im getting this when loading this MOD
This is the Mod script
Code:
[22/09/2013 23:24:53] > Loading animated-smiles.xml... done, but disabled.
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>