Ir para conteúdo

Otzero

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Obrigado
    Otzero deu reputação a Lyu em ALGUEM PODE AJUDAR   
    Testa aí amigo
    local config = { tempo = 5, --tempo em segundos mensagem = { texto = "[TOP]", --não use mais de 9 caracteres efeito = TEXTCOLOR_LIGHTBLUE --efeito para a função doSendAnimatedText }, efeito = 30, --efeito da função doSendMagicEffect globalstr = 150202 -- uma global storage qualquer q esteje vazia } function TopEffect(cid) local var = tostring(getGlobalStorageValue(config.globalstr)):gsub(':', ''):explode(',') if not isCreature(cid) or getPlayerName(cid) ~= var[1] then return LUA_ERROR end doSendAnimatedText(getCreaturePosition(cid), config.mensagem.texto, config.mensagem.efeito) doSendMagicEffect(getCreaturePosition(cid), config.efeito) addEvent(TopEffect, config.tempo*1000, cid) end function onLogin(cid) if tonumber(getGlobalStorageValue(config.globalstr)) then -- virgin local query = db.getResult("SELECT `name`, `level` FROM `players` WHERE `group_id` < 2 ORDER BY `level` DESC LIMIT 1") if (query:getID() ~= -1) then local name = query:getDataString("name") setGlobalStorageValue(config.globalstr, ":"..name..",:"..query:getDataInt("level")) if getPlayerName(cid) == name then doCreatureSetGuildEmblem(cid, 1) end TopEffect(cid) end else TopEffect(cid) end registerCreatureEvent(cid, "CheckTop") return true end function onAdvance(cid, skill, oldLevel, newLevel) if skill ~= SKILL__LEVEL then return true end local var = tostring(getGlobalStorageValue(config.globalstr)):gsub(':', ''):explode(',') if newLevel > tonumber(var[2]) then doBroadcastMessage("O jogador " .. getPlayerName(cid) .. " tornou-se o novo Top Level. Parabens!", 22) setGlobalStorageValue(config.globalstr, ":"..getPlayerName(cid)..",:"..newLevel) doCreatureSetGuildEmblem(cid, 1) TopEffect(cid) end return true end  
  2. Obrigado
    Otzero deu reputação a WooX em Ot War   
    Desativa o acc manager e pagina de criação de contas no site.
  3. Obrigado
    Otzero deu reputação a WooX em Ot War   
    Não era enter, era por acc. 1/1, 2/2, 3/3 e etc. Era praticamente várias contas com diversos personagens, mas daria pra fazer usando só enter também, só é mais complicado.
  4. Obrigado
    Otzero deu reputação a Vodkart em (Resolvido)colocar efeito nesse npc   
    depois dessa linha:
    setPlayerStorageValue(cid,addoninfo.storageID,1) adiciona
    doSendMagicEffect(getPlayerPosition(cid), 10) -- 10 é o numero do efeito  
  5. Obrigado
    Otzero deu reputação a Sphynx1 em VPS   
    Muda o servidor ou muda a hospedagem, gratuita é Azure, Google & Amazon, apenas.

Informação Importante

Confirmação de Termo