Ir para conteúdo

anakinl2

Membro
  • Total de itens

    240
  • Registro em

  • Última visita

Reputação

18 Normal

Sobre anakinl2

  • Rank
    Noob
  • Data de Nascimento 07-03-1986

Profile Information

  • Gênero:
    Masculino
  • Localização:
    Belém Pará
  • Interesses:
    Servidores de lineage 2 interlude base acis

Contact Methods

  • Facebook:
    https://www.facebook.com/lineage2us

Últimos Visitantes

2.774 visualizações
  1. npc boss

    alguém tem esse npc para acis 370 https://www.l2jbrasil.com/index.php?/topic/113457-raid-boss-info-para-todos-os-bosses/ eu consigo adicionar ele sem erros mais ele não aparece o html in game.
  2. L2jdream Making GM

    you should go in, * E: \ server \ game \ config \ admin \ access copy and paste in the same place the file * example.cfg rename to your admin nick, open or file in nonas block or efer of your reference, select the id of your char in the database copy and paste in place. # # - # - # # # # # # # # Server Admin Settings # ======================================== # # Number of character (charId) You can see it in the database CharId = 0 ode this * CharId = 0 * paste your Char id. so you can have ADMIN access
  3. Existe para acis afinal ou não?

    ### Eclipse Workspace Patch 1.0 #P aCis_gameserver Index: java/net/sf/l2j/gameserver/handler/IVoicedCommandHandler.java =================================================================== --- java/net/sf/l2j/gameserver/handler/IVoicedCommandHandler.java (revision 0) +++ java/net/sf/l2j/gameserver/handler/IVoicedCommandHandler.java (working copy) @@ -0,0 +1,24 @@ +/* + * 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 3 of the License, 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, see <http://www.gnu.org/licenses/>. + */ +package net.sf.l2j.gameserver.handler; + +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; + +public interface IVoicedCommandHandler +{ + public boolean useVoicedCommand(String command, L2PcInstance activeChar, String params); + + public String[] getVoicedCommandList(); +} \ No newline at end of file Index: java/net/sf/l2j/gameserver/handler/chathandlers/ChatAll.java =================================================================== --- java/net/sf/l2j/gameserver/handler/chathandlers/ChatAll.java (revision 1) +++ java/net/sf/l2j/gameserver/handler/chathandlers/ChatAll.java (working copy) @@ -14,7 +14,11 @@ */ package net.sf.l2j.gameserver.handler.chathandlers; +import java.util.StringTokenizer; + import net.sf.l2j.gameserver.handler.IChatHandler; +import net.sf.l2j.gameserver.handler.IVoicedCommandHandler; +import net.sf.l2j.gameserver.handler.VoicedCommandHandler; import net.sf.l2j.gameserver.model.BlockList; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.network.serverpackets.CreatureSay; @@ -37,15 +41,43 @@ @Override public void handleChat(int type, L2PcInstance activeChar, String params, String text) { - CreatureSay cs = new CreatureSay(activeChar.getObjectId(), type, activeChar.getName(), text); + boolean vcd_used = false; + if (text.startsWith(".")) + { + StringTokenizer st = new StringTokenizer(text); + IVoicedCommandHandler vch; + String command = ""; - for (L2PcInstance player : activeChar.getKnownList().getKnownTypeInRadius(L2PcInstance.class, 1250)) + if (st.countTokens() > 1) + { + command = st.nextToken().substring(1); + params = text.substring(command.length() + 2); + vch = VoicedCommandHandler.getInstance().getHandler(command); + } + else + { + command = text.substring(1); + vch = VoicedCommandHandler.getInstance().getHandler(command); + } + + if (vch != null) + { + vch.useVoicedCommand(command, activeChar, params); + vcd_used = true; + } + } + if (!vcd_used) { - if (!BlockList.isBlocked(player, activeChar)) - player.sendPacket(cs); - } - - activeChar.sendPacket(cs); + CreatureSay cs = new CreatureSay(activeChar.getObjectId(), type, activeChar.getName(), text); + + for (L2PcInstance player : activeChar.getKnownTypeInRadius(L2PcInstance.class, 1250)) + { + if (!BlockList.isBlocked(player, activeChar)) + player.sendPacket(cs); + } + + activeChar.sendPacket(cs); + } } /** Index: java/net/sf/l2j/gameserver/GameServer.java =================================================================== --- java/net/sf/l2j/gameserver/GameServer.java (revision 1) +++ java/net/sf/l2j/gameserver/GameServer.java (working copy) @@ -63,6 +63,7 @@ import net.sf.l2j.gameserver.handler.ItemHandler; import net.sf.l2j.gameserver.handler.SkillHandler; import net.sf.l2j.gameserver.handler.UserCommandHandler; +import net.sf.l2j.gameserver.handler.VoicedCommandHandler; import net.sf.l2j.gameserver.idfactory.IdFactory; import net.sf.l2j.gameserver.instancemanager.AuctionManager; import net.sf.l2j.gameserver.instancemanager.BoatManager; @@ -275,7 +276,8 @@ _log.config("ItemHandler: Loaded " + ItemHandler.getInstance().size() + " handlers."); _log.config("SkillHandler: Loaded " + SkillHandler.getInstance().size() + " handlers."); _log.config("UserCommandHandler: Loaded " + UserCommandHandler.getInstance().size() + " handlers."); - + _log.config("VoicedCommandHandler: Loaded " + VoicedCommandHandler.getInstance().size() + " handlers."); + if (Config.ALLOW_WEDDING) CoupleManager.getInstance(); Index: java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/Online.java =================================================================== --- java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/Online.java (revision 0) +++ java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/Online.java (working copy) @@ -0,0 +1,42 @@ +/* + * 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 3 of the License, 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, see <http://www.gnu.org/licenses/>. + */ +package net.sf.l2j.gameserver.handler.voicedcommandhandlers; + +import net.sf.l2j.gameserver.handler.IVoicedCommandHandler; +import net.sf.l2j.gameserver.model.World; +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; + +public class Online implements IVoicedCommandHandler +{ + private static final String[] _voicedCommands = {"online"}; + + @Override + public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) + { + if (command.equals("online")) + { + activeChar.sendMessage("====[Online Players]===="); + activeChar.sendMessage("Player(s): " + World.getInstance().getAllPlayersCount() + " Online."); + activeChar.sendMessage("======[L2 Brutal]======"); + } + return true; + } + + @Override + public String[] getVoicedCommandList() + { + return _voicedCommands; + } +} \ No newline at end of file Index: java/net/sf/l2j/gameserver/handler/VoicedCommandHandler.java =================================================================== --- java/net/sf/l2j/gameserver/handler/VoicedCommandHandler.java (revision 0) +++ java/net/sf/l2j/gameserver/handler/VoicedCommandHandler.java (working copy) @@ -0,0 +1,64 @@ +/* + * 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 3 of the License, 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, see <http://www.gnu.org/licenses/>. + */ +package net.sf.l2j.gameserver.handler; + +import java.util.HashMap; +import java.util.Map; + +import net.sf.l2j.gameserver.handler.voicedcommandhandlers.Online; + +public class VoicedCommandHandler +{ + private final Map<Integer, IVoicedCommandHandler> _datatable = new HashMap<>(); + + public static VoicedCommandHandler getInstance() + { + return SingletonHolder._instance; + } + + protected VoicedCommandHandler() + { + // coloque aqui os comandos + registerHandler(new Online()); + } + + public void registerHandler(IVoicedCommandHandler handler) + { + String[] ids = handler.getVoicedCommandList(); + + for (int i = 0; i < ids.length; i++) + _datatable.put(ids[i].hashCode(), handler); + } + + public IVoicedCommandHandler getHandler(String voicedCommand) + { + String command = voicedCommand; + + if (voicedCommand.indexOf(" ") != -1) + command = voicedCommand.substring(0, voicedCommand.indexOf(" ")); + + return _datatable.get(command.hashCode()); + } + + public int size() + { + return _datatable.size(); + } + + private static class SingletonHolder + { + protected static final VoicedCommandHandler _instance = new VoicedCommandHandler(); + } +} \ No newline at end of file para você conseguir adicionar novos comandos, e para que possa funcionar corretamente, você tem adicionar esse mods primeiro.
  4. acis geodata

    uma migo meu ta com duvida como ativa a geodata na acis 350, eu não me recordo mais .
  5. Boss

    Ola, alguém sabe como eu faço para não levarem o boss. para longe para ele voltar em uma determinada distancia ?
  6. venda de buff

    vlw muito obrigado
  7. Talking Island area

    eu queria colocar ela em flag zone
  8. venda de buff

    estou atras de um mods que rolava por aqui se não me engano ele era do Kraker funciona da segunte forma tipo um buff shop, voce criava um char de qualquer classe buff ele sentava e vendia os buffs da classe. ou se alguem tiver buffshop mais atualizado !
  9. Acis 368

    ola gostaria de saber se alguem pra onde mudou essa linha aqui ? ." broadcastNpcInfo(0); " getActiveChar().getPet().broadcastNpcInfo(0);
  10. Community Custon

    faz acis :P
  11. Talking Island area

    alguem sabe como eu posso colocar a aréa toda de fora de Talking Island, como pvp?
  12. Xp dobrado aos sábados

    Alguém tem esse mods para acis ? Ou do buffshop compatível com acis.
  13. ~~WoH-V3~~ By Dagger Based In Acis 366 Revision~~

    atah muito obrigado vou da uma olhada aqui.... need commands for buffshop? or sell buff shop? osvaldotl2015
  14. ~~WoH-V3~~ By Dagger Based In Acis 366 Revision~~

    eu instalei um jogo limpo, e usei seu patch, mais na tela de loguin não aparece personagens, algum mesmo se criar não aparece.
  15. ~~WoH-V3~~ By Dagger Based In Acis 366 Revision~~

    aqui não apareceu nem um char na hora de criar um novo char ao abrir a system. aparece o nome ai quando entra no jogo o char aparece.
×