Ir para conteúdo

narazaky

Membro
  • Registro em

  • Última visita

Tudo que narazaky postou

  1. Putz, kkkkkk
  2. Vou votar em Aércio, so o meu trabalho me liberar aqui. 45 Dilma usa os metodos de Maquiavel: "Para o poder, as pessoas mata" "Quem está no poder pode usar todos os meios disponiveis para continuar, afinal ir para o poder é facil, dificil é continuar..." "os fins justificam os meios" (perdão pelos meus palavreamentos, faz um bom tempo que eu li o principe :/) Afinal, quem é essa pessoa que elogia e depois taca-lhe pedra nas eleições?
  3. narazaky postou uma resposta no tópico em Suporte Tibia OTServer
    O pronatec abriu vagas para cursos de técnico de informatica e técnico em informatica na net. So nao participei pq nao tinha na minha cidade. :/ Só ficar atento no site.
  4. Nao aconteceu nada, acho que é nessa aqui: ban.php uso gesior tfs 1.0
  5. qnd clico numa conta banida, aparece esse erro: Warning: Invalid argument supplied for foreach() in C:\xampp2\htdocs\classes\account.php on line 159 aqui a minha account.php:
  6. Na pagina que uso, coloquei dessa maneira, mas retornou o valor do numero com link, mas nao com o nome. e se clicasse nao encontrava, pois indicava o pesonagem com o nome no caso "2".
  7. Tipo, eu quero colocar o autor, qual seria o comando que eu colocaria para ver o nome do jogador (que baniu) pelo player_ip na parte $ban['banned_by']? Ja que retorna valor inteiro
  8. tente agora: function onSay(cid, words, param) local t = string.explode(param, ",") local id = tonumber(t[1]) if words == "!depositar" then local id = tonumber(t[1]) if (id == 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Não é possível depositar 0 moedas!") return true end if (id == null) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Por favor digite um valor.") return true end if getPlayerItemCount(cid, 9971) >= id then AddPlayerPPontos(cid, id) doPlayerRemoveItem(cid, 9971, id) doPlayerSendTextMessage(cid, 29, "Parabéns, você depositou ".. id .." barras de ouro com sucesso! Seu saldo no banco agora é de ".. getPlayerPPoints(cid) .." moedas, para sacar utilize o comando !sacar") else doPlayerSendTextMessage(cid, 29, "Você não possui a quantidade necessária para adicionar no seu saldo.") return TRUE end ---------------------------------------------------------------------- elseif words == "!sacar" then local t = string.explode(param, ",") local id = tonumber(t[1]) if (id == 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Não é possível depositar 0 moedas!") return true end if (id == null) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Por favor digite um valor.") return true end if getPlayerPPoints(cid) >= id then doPlayerAddItem(cid, 9971, id) RemoverPlayerPPontos(cid, id) doPlayerSendTextMessage(cid, 29, "Parabéns, você sacou ".. id .." barras de ouro com sucesso! Seu saldo no banco agora é de ".. getPlayerPPoints(cid) .." moedas.") setPlayerStorageValue(cid,11548,os.time()+15) return TRUE else doPlayerSendTextMessage(cid, 29, "Você não possui a quantidade necessária para sacar.") end ------------------------------------------------------------------------ elseif words == "!saldo" then if not param or param == "" then doPlayerSendTextMessage(cid, 29, "O seu saldo no shopping é de: ".. getPlayerPPoints(cid) .." moedas.") return true end ------------------------------------------------------------------------------------- elseif words == "!verpontos" then if (not t[1]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Comando precisa de parametros") return true end if(getPlayerGroupId(cid) >= 3) then local player = getPlayerGUIDByName(t[1]) if (not player) then doPlayerSendTextMessage(cid, 29, "Jogador não existe ou não está online") return true else doPlayerSendTextMessage(cid, 29, "O jogador "..getCreatureName(t[1]) .." tem ".. getPlayerPPoints(t[1]).." moedas.") return true end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não tem permição de usar esse comando") return true end ------------------------------------------------------------------------------------ elseif words == "!addpontos" then local player = getPlayerGUIDByName(t[1]) if (not t[1]) and (not t[2]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Comando precisa de parametros") return true end if(getPlayerGroupId(cid) >= 3) then if (not player) then doPlayerSendTextMessage(cid, 29, "Jogador não existe ou não está online") return true else AddPlayerPPontos(player,t[2]) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você adicionou "..t[2].." moedas para conta de "..t[1]..".") return true end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não tem permição de usar esse comando") return true end ------------------------------------------------------------------------------------------------------------------------ elseif words == "!removerpontos" then local player = getPlayerGUIDByName(t[1]) if (not t[1]) and (not t[2]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Comando precisa de parametros") return true end if(getPlayerGroupId(cid) >= 3) then if (not player) then doPlayerSendTextMessage(cid, 29, "Jogador não existe ou não está online") return true else if(t[2] > getPlayerPPoints(player)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "O jogador "..t[1].." só tem ".. getPlayerPPoints(player).." moedas.") return true end if(t[2] < 0) then RemoverPlayerPPontos(player,getPlayerPPoints(player)) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Foi removida todos as moedas do jogador "..t[1]..".") else RemoverPlayerPPontos(player,t[2]) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Foi removido "..t[2].." moedas do jogador "..t[1]..".") return true end end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não tem permição de usar esse comando") return true end return TRUE end end
  9. narazaky postou uma resposta no tópico em Websites
    Ja consertei, era que eu usava uma db difrente da desse site. Obrigado luanluciano93 Baixei ele porem nao consegui colocar a senha para a acc "1" Alguem poderia informa a senha que vem nessa db?
  10. narazaky postou uma resposta no tópico em Websites
    Fatal error: Call to a member function fetch() on a non-object in C:\xampp2\htdocs\pages\latestnews.php on line 8 Apareceu isso. como faço para consertar?
  11. só por a função math.random na primeira vez, se der certo vai para a proxima etapa, que nela é só por para o item com delay mudar para a próxima imagem e assim vai ate a ultima vez que é so encaixar a funcao de domar normal ainda estou aprendendo a mexer em LUA, por isso ainda nao tenho como ajudar, irei aguardar alguem responder tambem para eu poder analisar
  12. Aqui está:va e Vai em seu banco de dados e execute essa querry: ALTER TABLE `accounts` ADD `premium_points` int(11) NOT NULL DEFAULT '0' depois vai em na sua lib e depois em 050-function.lua e coloque isso: function getPlayerPPoints(cid) local Info = db.getResult("SELECT `premium_points` FROM `accounts` WHERE `id` = " .. getPlayerAccountId(cid) .. " LIMIT 1") if Info:getID() ~= LUA_ERROR then local Points= Info:getDataInt("premium_points") Info:free() return Points end return LUA_ERROR end function AddPlayerPPontos(cid, points) local Info = db.getResult("SELECT `premium_points` FROM `accounts` WHERE `id` = " .. getPlayerAccountId(cid) .. " LIMIT 1") if Info:getID() ~= LUA_ERROR then db.executeQuery("UPDATE accounts SET premium_points = " .. getPlayerPPoints(cid) + points .. " WHERE id=" .. getPlayerAccountId(cid) .. ";") Info:free() return 1 end end function RemoverPlayerPPontos(cid, points) local Info = db.getResult("SELECT `premium_points` FROM `accounts` WHERE `id` = " .. getPlayerAccountId(cid) .. " LIMIT 1") if Info:getID() ~= LUA_ERROR then db.executeQuery("UPDATE accounts SET premium_points = " .. getPlayerPPoints(cid) - points .. " WHERE id=" .. getPlayerAccountId(cid) .. ";") Info:free() return 1 end end Feito isso, vai em talkaction/script cria um arquivo .lua e coloque isso: function onSay(cid, words, param) local t = string.explode(param, ",") local id = tonumber(t[1]) if words == "!depositar" then local id = tonumber(t[1]) if (id == 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Não é possível depositar 0 moedas!") return true end if (id == null) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Por favor digite um valor.") return true end if getPlayerItemCount(cid, 9971) >= id then AddPlayerPPontos(cid, id) doPlayerRemoveItem(cid, 9971, id) doPlayerSendTextMessage(cid, 29, "Parabéns, você depositou ".. id .." barras de ouro com sucesso! Seu saldo no banco agora é de ".. getPlayerPPoints(cid) .." moedas, para sacar utilize o comando !sacar") else doPlayerSendTextMessage(cid, 29, "Você não possui a quantidade necessária para adicionar no seu saldo.") return TRUE end ---------------------------------------------------------------------- elseif words == "!sacar" then local t = string.explode(param, ",") local id = tonumber(t[1]) if (id == 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Não é possível depositar 0 moedas!") return true end if (id == null) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Por favor digite um valor.") return true end if getPlayerPPoints(cid) >= id then doPlayerAddItem(cid, 9971, id) RemoverPlayerPPontos(cid, id) doPlayerSendTextMessage(cid, 29, "Parabéns, você sacou ".. id .." barras de ouro com sucesso! Seu saldo no banco agora é de ".. getPlayerPPoints(cid) .." moedas.") setPlayerStorageValue(cid,11548,os.time()+15) return TRUE else doPlayerSendTextMessage(cid, 29, "Você não possui a quantidade necessária para sacar.") end ------------------------------------------------------------------------ elseif words == "!saldo" then if not param or param == "" then doPlayerSendTextMessage(cid, 29, "O seu saldo no shopping é de: ".. getPlayerPPoints(cid) .." moedas.") return true end end ------------------------------------------------------------------------------------- elseif words == "!verpontos" then if (not t[1]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Comando precisa de parametros") return true end if(getPlayerGroupId(cid) >= 3) then local player = getPlayerGUIDByName(t[1]) if (not player) then doPlayerSendTextMessage(cid, 29, "Jogador não existe ou não está online") return true else doPlayerSendTextMessage(cid, 29, "O jogador "..getCreatureName(t[1]) .." tem ".. getPlayerPPoints(t[1]).." moedas.") return true end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não tem permição de usar esse comando") return true end ------------------------------------------------------------------------------------ elseif words == "!addpontos" then local player = getPlayerGUIDByName(t[1]) if (not t[1]) and (not t[2]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Comando precisa de parametros") return true end if(getPlayerGroupId(cid) >= 3) then if (not player) then doPlayerSendTextMessage(cid, 29, "Jogador não existe ou não está online") return true else AddPlayerPPontos(player,t[2]) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você adicionou "..t[2].." moedas para conta de "..t[1]..".") return true end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não tem permição de usar esse comando") return true end ------------------------------------------------------------------------------------------------------------------------ elseif words == "!removerpontos" then local player = getPlayerGUIDByName(t[1]) if (not t[1]) and (not t[2]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Comando precisa de parametros") return true end if(getPlayerGroupId(cid) >= 3) then if (not player) then doPlayerSendTextMessage(cid, 29, "Jogador não existe ou não está online") return true else if(t[2] > getPlayerPPoints(player)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "O jogador "..t[1].." só tem ".. getPlayerPPoints(player).." moedas.") return true end if(t[2] < 0) then RemoverPlayerPPontos(player,getPlayerPPoints(player)) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Foi removida todos as moedas do jogador "..t[1]..".") else RemoverPlayerPPontos(player,t[2]) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Foi removido "..t[2].." moedas do jogador "..t[1]..".") return true end end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não tem permição de usar esse comando") return true end return TRUE end onde o numero 9971 é o item que será sacado do comando. agora vai em talkaction.xml <talkaction words="!saldo;!sacar;!depositar;!verpontos;!addpontos;!removerpontos" event="script" value="Nome do seu arquivo.lua"/> Como usar: !saldo -> retorna o valor do saldo !depositar qnt > deposita a qnt !sacar qnt -> saca a qnt !verpontos jogador -> ver o ponto do jogador !addpontos jogador,qnt -> add ao jogador a qnt de pontos !removerpontos jogador,qnt -> remove a qnt de pontos do jogador Espero ter ajudado.
  13. narazaky postou uma resposta no tópico em Suporte Bots
    valeu cara, vc me ajudou muito!!
  14. narazaky postou uma resposta no tópico em Suporte Bots
    Olá nunca usei bot antes, ai resolvi ver como funciona, porem estou com umas duvidas que sao: 1º O bot tem algum meio de detectar o membro da staff? Se sim como? 2º PK, como ele reage ao ver algum jogador de pk 3º Qual o bot mais dificil de detectar atualmente? 4º caso eu estiver de cave bot e algum god vir me verrificar de ghost o bot pode piar? 5º O bot que usei não detecta pessoas com o nome {} [] () como faço para corrigir? 6º Alguém passa o Download de bot bom para 10x Só isso darei REP + para quem me ajudar
  15. narazaky postou uma resposta no tópico em Suporte Tibia OTServer
    Eu tinha esse mapa. Tinha em outro forum, fechou e acabei perdendo esse arquivo. Também estou atras
  16. Nessa parte você deve ir ao banco de dados do seu servidor, se for sqlita, clica na caneta que fca em cima cole isso e aperte F9, mas se for mysql vai na db clia em SQL cola isso e aperte executar.
  17. narazaky postou uma resposta no tópico em Suporte Tibia OTServer
    como faço para importar minhas criaturas para a db? e como crio uma tabela para ela z_monster?
  18. como colocar isso no site: uso gesior 2012 tfs 1.0
  19. Valeu cara, vc me ajudou pakas Rep +
  20. Quando vou instalar o WEBSITE VictorWEBMaster 0.0.8 da esse problema: Notice: Undefined index: page in C:\xampp2\htdocs\www\install.php on line 41 Notice: Undefined index: page in C:\xampp2\htdocs\www\install.php on line 55 Notice: Undefined index: page in C:\xampp2\htdocs\www\install.php on line 64 aqui meu install.php:
  21. Funcionou perfeitamente. Como é que eu faço para que ninguém possa ver o meu personagem, qnd clica aparece: vc nao tem permissão para ver esse personagem.
  22. meu team.php
  23. Não, eu quero que o nome dos membros acima do nivel 6, apareça no site:

Informação Importante

Confirmação de Termo