alguem pode me ajudar nessa script tipo assim ela nao funciona dentro do jogo se falar com o god /setGraduation < ela pede o nome do char ai você fala o nome do char ela fala em global e nao a da graduação pro personagem, se alguem conseguir me ajudar a arrumar essa script pfv, to começando agora em questao de otserver e to aprendendo pouco a pouco
function onSay(cid, words, param, channel)
if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Digite o nome de um Usuario.")
return true
end
local t = string.explode(param, ",")
local pid = getPlayerByNameWildcard(t[1])
if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. t[Chunnin] .. " not found.")
return true
end
setPlayerStorageValue(pid, initStorages.graduation, ""..t[Chunnin].."")
setPlayerStorageValue(pid, 600, 3)
doPlayerSendTextMessage(pid, MESSAGE_STATUS_CONSOLE_BLUE, "Você se tornou um "..t[Chunnin].."")
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Jogador "..t[1].." virou "..t[Chunnin].."")
return true
end