function onSay(cid, words, param, channel)
local out = {
[1] = 123, -- VOCATION / LOOKTYPE
[2] = 321,
[3] = 321,
[4] = 321,
}
local config = {
removeSpeed = "sim", -- sim ou nao
storage = 2501, -- Nao mecha
outs = out[getPlayerVocation(cid)],
}
if not config.outs then
return true
end
if getPlayerStorageValue(cid,config.storage) <= 0 then
doSetCreatureOutfit(cid, out[getPlayerVocation(cid)], -1)
setPlayerStorageValue(cid, config.storage, 350)
if config.removeSpeed == "sim" then
doCreatureSetNoMove(cid, true)
end
else
doRemoveCondition(cid, CONDITION_OUTFIT)
setPlayerStorageValue(cid, config.storage, 0)
if config.removeSpeed == "sim" then
doCreatureSetNoMove(cid, false)
end
end
return true
end