<talkaction log="no" words="fuck, ass" separator="," case-sensitive="no" event="script" value="curse.lua"/>
local c = {
exhaustion = 2, -- in seconds
storage = 30102, -- storage value used to save exhaustion
onlyDefaultChannel = false
}
function onSay(cid, words, param, channel)
if c.onlyDefaultChannel then
if (channel ~= CHANNEL_DEFAULT) then return true end
end
if(exhaustion.check(cid, c.storage)) then return true end
exhaustion.set(cid, c.storage, c.exhaustion)
return false
end
error console[Error - LuaScriptInterface::loadFile] data/talkactions/scripts/curse.lua:4: '}' expected (to close '{' at line 1) near 'onlyDefaultChannel'
[Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/curse.lua)
data/talkactions/scripts/curse.lua:4: '}' expected (to close '{' at line 1) near 'onlyDefaultChannel'
local c = {
exhaustion = 2, -- in seconds
storage = 30102, -- storage value used to save exhaustion
onlyDefaultChannel = false
}
function onSay(cid, words, param, channel)
if c.onlyDefaultChannel then
if (channel ~= CHANNEL_DEFAULT) then return false end
end
if(exhaustion.check(cid, c.storage)) then return true end
exhaustion.set(cid, c.storage, c.exhaustion)
return true
end
:[Error - LuaScriptInterface::loadFile] data/talkactions/scripts/curse.lua:4: '}' expected (to close '{' at line 1) near 'onlyDefaultChannel'
[Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/curse.lua)
data/talkactions/scripts/curse.lua:4: '}' expected (to close '{' at line 1) near 'onlyDefaultChannel'
local c = {
exhaustion = 2, -- in seconds
storage = 30102 -- storage value used to save exhaustion
onlyDefaultChannel = false
}
function onSay(cid, words, param, channel)
if c.onlyDefaultChannel then
if (channel ~= CHANNEL_DEFAULT) then return false end
end
if(exhaustion.check(cid, c.storage)) then return true end
exhaustion.set(cid, c.storage, c.exhaustion)
return false
end
local c = {
exhaustion = 2, -- in seconds
storage = 30102, -- storage value used to save exhaustion
onlyDefaultChannel = false
}
function onSay(cid, words, param, channel)
if c.onlyDefaultChannel then
if (channel ~= CHANNEL_DEFAULT) then return true end
end
if(exhaustion.check(cid, c.storage)) then return true end
exhaustion.set(cid, c.storage, c.exhaustion)
return false
end