function onSay(cid, words, param)
local params = string.explode(param,",")
local conditionAttrib = doAddCondition(cid, CONDITION_PARAM_STAT_MAGICPOINTS)
local itemid = tonumber(params[1])
local count = tonumber(params[2])
local refML = tonumber(params[7])
if itemid ~= nil then
local uid = doPlayerAddItem(cid, itemid, count)
end
if refML ~= nil and refML > 0 then
setConditionParam(conditionAttrib, 30, value)
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'O item foi criado com sucesso.')
end
return FALSE
HELP PLS :s
local params = string.explode(param,",")
local conditionAttrib = doAddCondition(cid, CONDITION_PARAM_STAT_MAGICPOINTS)
local itemid = tonumber(params[1])
local count = tonumber(params[2])
local refML = tonumber(params[7])
if itemid ~= nil then
local uid = doPlayerAddItem(cid, itemid, count)
end
if refML ~= nil and refML > 0 then
setConditionParam(conditionAttrib, 30, value)
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'O item foi criado com sucesso.')
end
return FALSE
HELP PLS :s