Ir para conteúdo
  • Cadastre-se

Levy

AmigosL2JBR
  • Total de itens

    890
  • Registro em

  • Última visita

  • Prêmios recebidos

    19

Tudo que Levy postou

  1. true ou false. Isso é o tipo bolleano. Por isso nao especifiquei o que tinha dentro da coluna, porque quando cria tipo bolleano, ele ja adiciona true e false. showNpcCrest enum 0 0 0 0 0 0 0 false 0 utf8 utf8_general_ci 'true','false' 0 0
  2. Basta criar uma coluna dentro da tabela castle, com o nome de showNpcCrest , do tipo bolleano.
  3. Como seus "APPS" está dizendo que é C4? Conseguiu abrir, poste a linha que o mesmo esta dizendo.. o ID é 13113.
  4. É Praticamente a mesma coisa de voce posta no github. [Hidden Content]
  5. Levy

    Comparação

    L2JSERVER se não me engano, eles não atualizam mais o pack interlude, então entre L2JSERVER e LUCERA, recomendo LUCERA, vários servidores grandes utilizam o pack.
  6. Levy

    Só pra constar...

    Também sou novato, mas gosto desse group bar. Isso é verdade, eu mesmo já tenho 2 ?
  7. Se tiver erros, bugs algo assim, não sei se vai sair atualizações, o proprio @Onã disse que havia parado de mexer, ate mesmo com o Interlude. Mas belo shared. Thanks!
  8. Levy

    vote-games

    Interlude: Que eu saiba tem uma galera que vende ai: @Oseias Garcez, @Mayke Mendes, @Kelvin, @-= JRGames =-. Únicos que sei ou que já ouvi falarem que vendem! Não sei se procede também.
  9. Levy

    vote-games

    Ainda esta no mercado? Acho que isso responde! Próxima pergunta! aowoawo
  10. É so copiar o css dele. Direto da pagina e nao pelo git.
  11. Adaptar pra onde? Pra que versão? Qual projeto? Ficou meio vago seu post, por favor seja mais especifico, para que alguém possa ajudar. Obrigado.
  12. Levy

    L2JBlueHeart 💙

    O meu é assim gameserver.bat.
  13. Levy

    L2JBlueHeart 💙

    Amigo isso é falta de memória , verifique se tem algum programa "comendo" sua memória ou aumente clicando com o botão direito no bat do gameserver e aumente no comando -xms -xmn
  14. Levy

    L2JBlueHeart 💙

    Então, eu conversei com o Synerge, o cara que adaptou o auction pra H5 e Interlude, ele me disse que esse auction é uma versão muito antiga dele, mas que funciona bem. A questão dos icones eu ja corrigi, agora falta eu corrigir a questão do search. No momento, estou tentando adicionar um .report, para que o player possa reportar o bot e etc, não gostei daquela função do botão de reportar, tambem não entendi muito bem, pois ela demora demais pra aplicar as punições.
  15. Levy

    L2JBlueHeart 💙

    Tranquilo @vert, estamos aqui pra ajudar, agora que vi, que voces tambem usam o auction, vou passar uma correção pra galera, acho que nunca perceberam que ao passar o mouse em cima do item na hora da venda, ele fica preto. Postarei a correção em breve, nunca corrigiram na sunrise, então tive que fazer sozinho mesmo kk..
  16. Levy

    L2JBlueHeart 💙

    [Hidden Content]
  17. Levy

    L2JBlueHeart 💙

    Segue Link. @Seferus já adicionei a correção nesse link. [Hidden Content]
  18. Levy

    L2JBlueHeart 💙

    Compilando, Daqui uns minutos, subo o link!
  19. Levy

    L2JBlueHeart 💙

    java\l2r\features\auctionEngine\itemcontainer\AuctionHouseItem.java
  20. Levy

    L2JBlueHeart 💙

    No arquivo AuctionHouseItem.java Procure por: SELECT object_id, item_id, count, enchant_level, loc, loc_data, custom_type1, custom_type2, mana_left, time FROM items WHERE owner_id=? AND loc=? Mude para isso: SELECT object_id, item_id, count, enchant_level, loc, loc_data, custom_type1, custom_type2, mana_left, time, visual_item_id FROM items WHERE owner_id=? AND loc=?
  21. Primeiro precisa de um pack classic, o restante se mantem a mesma coisa dos demais javas.
  22. Levy

    Desenvolvimento H5

    A diferença entre sunrise e blue é que uma é pago e o outro é free. Pode ir de blue, a staff é bem prestativa. Talvez te ajudem com mods privados e etc, já a sunrise é bem tensa. So 1 desenvolvedor, bem puxado pra ele sozinho.
  23. ### Eclipse Workspace Patch 1.0 #P L2jFrozen_GameServer Index: head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/ReportPlayer.java =================================================================== --- head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/ReportPlayer.java (revision 0) +++ head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/ReportPlayer.java (revision 0) @@ -0,0 +1,115 @@ +/* + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + * + * [Hidden Content] + */ +package com.l2jfrozen.gameserver.handler.voicedcommandhandlers; + +import com.l2jfrozen.gameserver.handler.IVoicedCommandHandler; +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; +import com.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage; +import com.l2jfrozen.gameserver.thread.ThreadPoolManager; +import com.l2jfrozen.util.random.Rnd; + +/** + * + * + * @author Rizlaaa + */ +public class ReportPlayer implements IVoicedCommandHandler +{ + + private final String[] REPORT_COMMAND = {"report"}; + + class BotCheck implements Runnable + { + L2PcInstance player; + + private BotCheck(L2PcInstance character) + { + player = character; + } + + @Override + public void run() + { + if(player.isBot()) + { + player.setPunishLevel(L2PcInstance.PunishLevel.JAIL, 15); + player.sendMessage("You are in jail now."); + } + } + + } + + @Override + public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) + { + if(command.equalsIgnoreCase("report")) + { + if(activeChar==null) return false; + + L2PcInstance playerTarget = (L2PcInstance) activeChar.getTarget(); + + if(playerTarget == null) + { + activeChar.sendMessage("Your target is incorrect."); + return false; + } + + if(playerTarget.isBot()) + { + activeChar.sendMessage("This player has been already requested for botting"); + return false; + } + + String password = getPass(Rnd.get(4, 9)); + + NpcHtmlMessage html = new NpcHtmlMessage(0); + html.setFile("data/html/report.htm"); + html.replace("%code", password); + playerTarget.sendPacket(html); + playerTarget.setBot(true); + playerTarget.code = password; + + //schedule the check after 20 seconds + ThreadPoolManager.getInstance().scheduleGeneral(new BotCheck(playerTarget), 2000); + + } + + return true; + } + + private String getPass(int size) + { + String abc = "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890"; + + StringBuilder stringBuilder = new StringBuilder(size); + + for(int j=0;j<size;j++) + stringBuilder.append(abc.charAt(Rnd.get(abc.length()))); + + return stringBuilder.toString(); + } + + + @Override + public String[] getVoicedCommandList() + { + return REPORT_COMMAND; + } + +} Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestBypassToServer.java =================================================================== --- head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestBypassToServer.java (revision 18) +++ head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestBypassToServer.java (working copy) @@ -143,6 +143,25 @@ activeChar.teleToLocation(82904, 148620, -3469); return; } + else if(_command.startsWith("report")) + { + String sub = _command.substring(6); + StringTokenizer st = new StringTokenizer(sub); + String code = ""; + if(st.hasMoreTokens()) + code = st.nextToken(); + + if(code == activeChar.code) + { + activeChar.sendMessage("You are now safe."); + activeChar.setBot(false); + } + else + { + activeChar.sendMessage("Incorrect password"); + } + + } else if (_command.startsWith("teleport_aden")) { activeChar.teleToLocation(147457, 27152, -225); Index: head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java (revision 24) +++ head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -1037,6 +1037,8 @@ /** The _noble. */ private boolean _noble = false; + private boolean botCheck = false; + private boolean _daytop = false; private int _daykills = 0; @@ -1045,6 +1047,8 @@ /** The _donator. */ private boolean _donator = false; + + public String code = ""; /** The L2FolkInstance corresponding to the last Folk wich one the player talked. */ private L2FolkInstance _lastFolkNpc = null; @@ -12895,6 +12899,16 @@ { return _inventoryDisable; } + + public boolean isBot() + { + return botCheck; + } + + public void setBot(boolean bot) + { + botCheck = bot; + } /** * The Class InventoryEnable. Gostaria que alguem me ajudasse a adaptar esse código de .report para sunrise, ou ate mesmo para a jblueheart H5 são os mesmo packs. Obrigado.
×
×
  • Criar Novo...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.