Ir para conteúdo

Fir3element

Héroi
  • Registro em

  • Última visita

Tudo que Fir3element postou

  1. Qual a versão do servidor? Tente usar um valor positivo.
  2. Fir3element postou uma resposta no tópico em Outros Jogos
    https://kickass.to/pirates-of-the-caribbean-pc-eng-t420522.html http://uploadsnack.com/Td2sAO
  3. Fir3element postou uma resposta no tópico em Suporte Tibia OTServer
    function onSay(cid, words, param) local player = Player(cid) local function getPlayerResets() local resets = player:getStorageValue(500) return resets < 0 and 0 or resets end local hasAccess = player:getGroup():getAccess() local players = Game.getPlayers() local playerCount = Game.getPlayerCount() player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, playerCount .. " players online.") local i = 0 local msg = "" for k, tmpPlayer in ipairs(players) do if hasAccess or not tmpPlayer:isInGhostMode() then if i > 0 then msg = msg .. ", " end msg = msg .. tmpPlayer:getName() .. " (" .. tmpPlayer:getLevel() .. ") [Resets: " .. getPlayerResets() .. "]" i = i + 1 end if i == 10 then if k == playerCount then msg = msg .. "." else msg = msg .. "," end player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, msg) msg = "" i = 0 end end if i > 0 then msg = msg .. "." player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, msg) end return false end
  4. Aprovado e movido para a área correta.
  5. local config = { level = 20, -- level que irá ganhar storage = 9557, -- storage msg = "Você ganhou 10k por upar ate o level 20.", -- mensagem ao ganhar msgtp = MESSAGE_EVENT_ADVANCE, -- tipo da mensagem money = 10000 -- quantidade de dinheiro } function onAdvance(cid, oldLevel, newLevel) if getPlayerStorageValue(cid, config.storage) == -1 and newLevel >= config.level then doPlayerAddMoney(cid, config.money) setPlayerStorageValue(cid, config.storage, 1) doPlayerSendTextMessage(cid, config.msgtp, config.msg) end return true end
  6. Fir3element postou uma resposta no tópico em Suporte Tibia OTServer
    online.lua (tfs 1.1) function onSay(player, words, param) local function getPlayerResets() local resets = player:getStorageValue(500) return resets < 0 and 0 or resets end local hasAccess = player:getGroup():getAccess() local players = Game.getPlayers() local playerCount = Game.getPlayerCount() player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, playerCount .. " players online.") local i = 0 local msg = "" for k, tmpPlayer in ipairs(players) do if hasAccess or not tmpPlayer:isInGhostMode() then if i > 0 then msg = msg .. ", " end msg = msg .. tmpPlayer:getName() .. " (" .. tmpPlayer:getLevel() .. ") [Resets: " .. getPlayerResets() .. "]" i = i + 1 end if i == 10 then if k == playerCount then msg = msg .. "." else msg = msg .. "," end player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, msg) msg = "" i = 0 end end if i > 0 then msg = msg .. "." player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, msg) end return false end
  7. Já existe. creature:getPathTo(pos[, minTargetDist = 0[, maxTargetDist = 1[, fullPathSearch = true[, clearSight = true[, maxSearchDist = 0]]]]])
  8. 1/1, account manager Nesse server seu não existe, procure o TFS (0.3.6/0.4/0.3.7).
  9. Aprovado e movido para a área correta.
  10. Fir3element postou uma resposta no tópico em Suporte Tibia OTServer
    Tenta assim: # deb cdrom:[Debian GNU/Linux 7.4.0 _Wheezy_ - Official i386 CD Binary-1 20140208-12:25]/ wheezy main #deb cdrom:[Debian GNU/Linux 7.4.0 _Wheezy_ - Official i386 CD Binary-1 20140208-12:25]/ wheezy main deb http://ftp.br.debian.org/debian/ wheezy main deb-src http://ftp.br.debian.org/debian/ wheezy main deb http://security.debian.org/ wheezy/updates main deb-src http://security.debian.org/ wheezy/updates main # wheezy-updates, previously known as 'volatile' deb http://ftp.br.debian.org/debian/ wheezy-updates main deb-src http://ftp.br.debian.org/debian/ wheezy-updates main # Repositório Kali Linux #deb http://http.kali.org/kali kali main non-free contrib #deb http://security.kali.org/kali-security kali/updates main contrib non-free # Edge repositorie Kali Linux #deb http://repo.kali.org/kali kali-bleeding-edge main #deb-src http://repo.kali.org/kali kali-bleeding-edge main # MATE - Desktop repository deb http://repo.mate-desktop.org/debian wheezy main # mirror deb http://packages.mate-desktop.org/repo/debian wheezy main # Google Chrome. # Chave GPG: wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - deb http://dl.google.com/linux/deb/ stable main # Repositório Cinnamon deb http://ftp.iitm.ac.in/debian/ wheezy main deb-src http://ftp.iitm.ac.in/debian/ wheezy main # Cinnamon Contrib non-free: deb http://ftp.iitm.ac.in/debian/ wheezy main contrib non-free deb-src http://ftp.iitm.ac.in/debian/ wheezy main contrib non-free # Backports Debian Wheezy deb http://ftp.debian.org/debian/ wheezy-backports main contrib non-free # Rep. Firefox browser deb http://packages.linuxmint.com debian import
  11. Fir3element postou uma resposta no tópico em Tutoriais sobre Clients
    Scan: https://www.virustotal.com/pt/file/c51ff182f8ca16c169841479eb83f2f65276c6f7689e7f2eca194e6b68eab611/analysis/1430482105/ Aprovado e movido para a área correta.
  12. Limpei a source: http://www.mediafire.com/download/g8u6etthct7c9fq/Server+Sources.rar Scan: https://www.virustotal.com/pt/file/5bf37d692200a105953e64b247260027c5d657f2576c0ac60f3cb46d4d498791/analysis/1430481948/
  13. Pra compilar o 0.4/0.3.6, faz a segunda parte: http://www.tibiaking.com/forum/topic/56001-compilar-erro-ao-compilar-tfs-04-ubuntu-1404/?p=329136
  14. Não consegui achar a linha, tenta trocar essa: if(speaker && pg != NULL && pg->isCast) {//CA por essa: if((speaker && pg != NULL) && pg->isCast) {//CA
  15. O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de Programação" Para: "OTServ → Suporte OTServ → Suporte de Scripts"
  16. 1º warning Troca essa linha: bool updateLook = true, outOfRange = true; Por essa: bool updateLook = true; Troca isso: if(inRange) outOfRange = false; else if(it->isMelee) //melee swing out of reach extraMeleeAttack = true; Por isso: if(!inRange && it->isMelee) //melee swing out of reach extraMeleeAttack = true; 2º warning Deleta essas linhas da função getTownTemplePosition: bool displayError = true; if(lua_gettop(L) >= 2) displayError = popNumber(L); 3º warning Poste o código.
  17. Fir3element postou uma resposta no tópico em Suporte Tibia OTServer
    http://tibia.sx/
  18. Fir3element postou uma resposta no tópico em Suporte Tibia OTServer
    Fiz o teste aqui e funcionou normalmente, verifique se tá usando a storage 500 no script de reset.
  19. Tem que substituir o .exe, libs, data/xml, config.lua, database, etc. Pode usar esse aqui: trunk.r4269.tar.gz
  20. Pensei nessa função pra usar em comandos como changename, dai seguiria o mesmo padrão do gesior.
  21. É semelhante a função que existe em PHP, transforma a primeira letra de cada palavra da string em maiúscula. function ucwords(str) str = str:lower():gsub("(%l)(%w*)", function(x, y) return x:upper() .. y end) return str end Exemplo: print(ucwords("aBCde ABCDE aBBcDDe")) Resultado: Abcde Abcde Abbcdde
  22. Seu linux deve ser diferente do que usaram para compilar... Encontre as sources e compile.
  23. O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de OTServ Geral" Para: "OTServ → Suporte OTServ → Suporte de Infraestrutura"

Informação Importante

Confirmação de Termo