Postado Julho 4, 2014 10 anos Boa Tarde a todos, seguinte - eu quero mudar pro GOD falar vermelho no help, se alguem souber Me ajude. +REP Ae cara, Se eu te ajudei +REP Sei que nao vai matar ninguem
Postado Julho 4, 2014 10 anos Em \data\chatchannels\scripts Substitua seu HELP.LUA POR local CHANNEL_HELP = 7 local muted = createConditionObject(CONDITION_CHANNELMUTEDTICKS) setConditionParam(muted, CONDITION_PARAM_SUBID, CHANNEL_HELP) setConditionParam(muted, CONDITION_PARAM_TICKS, 3600000) function onSpeak(cid, type, message) local playerAccountType = Player(cid):getAccountType() if(Player(cid):getLevel() == 1 and playerAccountType == ACCOUNT_TYPE_NORMAL) then Player(cid):sendCancelMessage("You may not speak into channels as long as you are on level 1.") return false end if(getCreatureCondition(cid, CONDITION_CHANNELMUTEDTICKS, CHANNEL_HELP)) then Player(cid):sendCancelMessage("You are muted from the Help channel for using it inappropriately.") return false end if(playerAccountType >= ACCOUNT_TYPE_TUTOR) then if(string.sub(message, 1, 6) == "!mute ") then local targetName = string.sub(message, 7) local target = Player(name):getId(targetName) if(target ~= false) then if(playerAccountType > target:getAccountType()) then if(not getCreatureCondition(target, CONDITION_CHANNELMUTEDTICKS, CHANNEL_HELP)) then doAddCondition(target, muted) sendChannelMessage(CHANNEL_HELP, TALKTYPE_CHANNEL_R1, getPlayerName(target) .. " has been muted by " .. getPlayerName(cid) .. " for using Help Channel inappropriately.") else Player(cid):sendCancelMessage("That player is already muted.") end else Player(cid):sendCancelMessage("You are not authorized to mute that player.") end else Player(cid):sendCancelMessage(RETURNVALUE_PLAYERWITHTHISNAMEISNOTONLINE) end return false elseif(string.sub(message, 1, 8) == "!unmute ") then local targetName = string.sub(message, 9) local target = Player(name):getId(targetName) if(target ~= false) then if(playerAccountType > getPlayerAccountType(target)) then if(getCreatureCondition(target, CONDITION_CHANNELMUTEDTICKS, CHANNEL_HELP)) then doRemoveCondition(target, CONDITION_CHANNELMUTEDTICKS, CHANNEL_HELP) sendChannelMessage(CHANNEL_HELP, TALKTYPE_CHANNEL_R1, getPlayerName(target) .. " has been unmuted by " .. getPlayerName(cid) .. ".") else Player(cid):sendCancelMessage("That player is not muted.") end else Player(cid):sendCancelMessage("You are not authorized to unmute that player.") end else Player(cid):sendCancelMessage(RETURNVALUE_PLAYERWITHTHISNAMEISNOTONLINE) end return false end end if(type == TALKTYPE_CHANNEL_Y) then if(playerAccountType >= ACCOUNT_TYPE_TUTOR or getPlayerFlagValue(cid, PlayerFlag_TalkOrangeHelpChannel)) then type = TALKTYPE_CHANNEL_O end elseif(type == TALKTYPE_CHANNEL_O) then if(playerAccountType < ACCOUNT_TYPE_TUTOR and not getPlayerFlagValue(cid, PlayerFlag_TalkOrangeHelpChannel)) then type = TALKTYPE_CHANNEL_Y end elseif(type == TALKTYPE_CHANNEL_R1) then if(playerAccountType < ACCOUNT_TYPE_GAMEMASTER and not getPlayerFlagValue(cid, PlayerFlag_CanTalkRedChannel)) then if(playerAccountType >= ACCOUNT_TYPE_TUTOR or getPlayerFlagValue(cid, PlayerFlag_TalkOrangeHelpChannel)) then type = TALKTYPE_CHANNEL_O else type = TALKTYPE_CHANNEL_Y end end end return type end | TFS 0.4 DEV | Ajudei você ? retribua a ajuda com uma Reputação positiva " Se a sua vida for a melhor coisa que já te aconteceu, acredite, você tem mais sorte do que pode imaginar. "
Postado Julho 4, 2014 10 anos Autor Olá amigo, meu otserver não tem essa pasta "chatchannels" poderia me ajudar? só tem data/xml/channels.xml Ae cara, Se eu te ajudei +REP Sei que nao vai matar ninguem
Postado Julho 4, 2014 10 anos TioSlash, esse comentário é considerado flood, existe uma área do fórum destinada a brincadeiras (playground). Leia as regras. Ot Design: https://discord.gg/VgtVRNmCD7
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.