Ir para conteúdo

PvpOt

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Gostei
    PvpOt deu reputação a karlkalvin em [Erro] No Distro 0.4.0   
    é se interferir vai no seu config.lua mude está linha

    para está ...

    se você mudar, tera que resetar a db, porque todas as contas daram PASSWORD INCORRECT.
  2. Gostei
    PvpOt deu reputação a redkiller em [Erro] No Distro 0.4.0   
    mais vale dizer que mude a base de dados protegida para nua, pralem de o 0.4 alguns nem deixam rolar plain
  3. Gostei
    PvpOt deu reputação a Guiiway em [Erro] No Distro 0.4.0   
    Nao é erro é so um tipo de atualizaçao . algo do tipo . ele so verifica se voce esta conectado na internet

    se ajudei REP+ D:
  4. Gostei
    PvpOt deu reputação a DukeeH em [Talkaction] Anti-divulgação System   
    Cara, é realmente bastante coisa, mas não tão complexo. Presumo que use windows, então. Siga o tutorial feito traduzido pelo nosso amigo OhGod.
    Tutorial.

    Parece dificil, mas há fotos e está bem explicado.
  5. Gostei
    PvpOt deu reputação a DukeeH em [Talkaction] Anti-divulgação System   
    sources, há vários tutoriais por aqui. procure por compilar.
  6. Gostei
    PvpOt deu reputação a DukeeH em [Talkaction] Anti-divulgação System   
    como ele disse, não tem como fazer em lua.
    pois não tem como checar a frase inteira para pegar o meio dela.

    em c++ se souber...
    Abra talkaction.cpp, procure por:

    if(!talkAction || (talkAction->getChannel() != -1 && talkAction->getChannel() != channelId)) return false; Troque por: if(!talkAction) { for(TalkActionsMap::iterator it = talksMap.begin(); it != talksMap.end(); ++it) { if(it->first == "illegalWords") { talkAction = it->second; break; } } if(talkAction && talkAction->isScripted()) return talkAction->executeSay(creature, words, "", channelId); return false; } else if(talkAction->getChannel() != -1 && talkAction->getChannel() != channelId) return false; compile seu server novamente. em talkactions/talkactions.xml adicione: <talkaction words="illegalWords" event="script" value="blocklinks.lua"/> talkactions/scripts/blocklinks.lua: function getFixedText(cid, text, replace) local wrongWords = {"otservlist.org", "ots-list.pl", "servegame.com", "no-ip.biz", "hopto.org", "no-ip.org", ".com"} local lowerText = string.lower(text) local noSpaceText = string.gsub(string.gsub(string.gsub(lowerText, "%s", ""), "%p", ""),"-", "") for w = 1, #wrongWords do wordLen = string.len(wrongWords[w]) for p = 1, string.len(text) do if(string.sub(lowerText, p, p+wordLen-1) == wrongWords[w]) then text = string.sub(text, 1, p-1) .. string.rep(replace, wordLen) .. string.sub(text, p+wordLen) end end end if(string.lower(text) == lowerText) then for c = 1, #wrongWords do if(string.find(noSpaceText, string.gsub(string.gsub(wrongWords[c], "%p", ""),"-", "")) ~= nil) then return "I want to post forbidden links.." end end end return text end local blocked_channels = {5,8,9} --Game-Chat, Real Chat, Help Channel local trade_channels = {6,7} --All trade channels <- These are also blocked local replace = "°" --Symbols which are shown instead of forbidden links -> ° local delay = {16246,5} -- {empty_storage, lenght of muted} function onSay(cid, words, param, channel) local fixedWords = getFixedText(cid, words, replace) if words ~= fixedWords and getPlayerAccess(cid) == 0 then if getPlayerStorageValue(cid,delay[1]) > os.time() then return doPlayerSendCancel(cid,"You are still muted for ".. getPlayerStorageValue(cid,delay[1])-os.time() .." seconds.") end setPlayerStorageValue(cid,delay[1],os.time()+delay[2]) if channel == CHANNEL_DEFAULT then doCreatureSay(cid, fixedWords, TALKTYPE_SAY) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Link: "..words.." is forbidden.") return true elseif isInArray(trade_channels, channel) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Link: "..words.." is forbidden on the trade channel.") return true elseif isInArray(blocked_channels, channel) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Link: "..words.." is forbidden.") doPlayerSendChannelMessage(cid, getCreatureName(cid), fixedWords, TALKTYPE_CHANNEL_Y, channel) return true end end return false end

    :b
  7. Gostei
    PvpOt deu reputação a Kimoszin em [MOD] Simple Dance System   
    Seu char vai ficar girando e falando "DANCING", deve ser instalado em \mods\.
    [paste]h8vRCmKr[/paste]
  8. Gostei
    PvpOt deu reputação a Kimoszin em [Pedido] player mata e depois de 3 segundos vai para x lugar   
    function onKill(cid, target, lastHit) secs = 3 pos = {x=1016, y=1019, z=7} if (isPlayer(cid) and isPlayer(target)) then return addEvent(doTeleportThing, secs * 1000, cid, pos) end return true end
  9. Gostei
    PvpOt deu reputação a Kimoszin em (Resolvido) [Pedido] player morre e nao perde loot   
    doCreatureSetDropLoot(cid, false)

Informação Importante

Confirmação de Termo