Ir para conteúdo
  • Cadastre-se

Halys

Membro
  • Total de itens

    9
  • Registro em

  • Última visita

Sobre Halys

Halys's Achievements

Aprendiz de Novato

Aprendiz de Novato (1/14)

0

Reputação

  1. Halys

    Preview de um server l2

    galera, onde eu posso dar um preview do meu server? vlw pela respuesta
  2. comparta o npcs pra eu ajudar vc
  3. vc pode fazer isso criando um custom skill e fazer um item com essa skill desculpa por meu portugues, mais eu nao sou br :P Im learning to write huehue
  4. Eu estou procurando um mod que cuando vc hita um mob, vc fica flag... vcs podem criar? :P Obrgiado!
  5. Halys

    Flag ao hitar mob

    Oi galera, eu estou procurando um mod que ao hitar um mob o char fique flag... Alguem conhece como fazer isso?
  6. tenho problema na hora de compilar :( [javac] Compiling 1479 source files to C:\Users\HALYS\workspace\Interlude\gameserver\build\classes [javac] C:\Users\HALYS\workspace\Interlude\gameserver\head-src\com\l2jfrozen\gameserver\handler\voicedcommandhandlers\sellbuff.java:47: error: unmappable character for encoding utf-8 [javac] else if (!activeChar.isAio()){ // < Se o jogador n?o for AIO. [javac] ^ [javac] 1 error eu adicione aqui if(activeChar.isDead() || activeChar.isAlikeDead()){ activeChar.sendMessage("You are dead , you can't sell at the moment"); return false; } else if (!activeChar.isAio()){ // < Se o jogador não for AIO. activeChar.sendMessage("You are not AIO"); return false; } else if(activeChar.isInOlympiadMode() || Olympiad.getInstance().isRegistered(activeChar)){ activeChar.sendMessage("You are in olympiad , you can't sell at the moment"); return false; } else if(activeChar.atEvent){ activeChar.sendMessage("You are in event , you can't sell at the moment"); return false;
  7. eu ja adicionei o mod, mais agora nao sei que modificar pra que so fique pra aio char, eu acho que tenho que modificar o voicedcommandhandlers/sellbuff.java, mais nao sei o que tenho que fazer.. ========================================================== --- head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/sellbuff.java (revision 0) +++ head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/sellbuff.java (working copy) @@ -0,0 +1,111 @@ +/* + * 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.Config; +import com.l2jfrozen.gameserver.model.entity.olympiad.Olympiad; +import com.l2jfrozen.gameserver.handler.IVoicedCommandHandler; +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; + +/** + * + * + * @author Matthew + */ +public class sellbuff implements IVoicedCommandHandler +{ + private static final String[] VOICED_COMMANDS = {"sellbuffs"}; + + @Override + public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) + { + if(activeChar == null) + return false; + + if(activeChar.isDead() || activeChar.isAlikeDead()){ + activeChar.sendMessage("You are dead , you can't sell at the moment"); + return false; + } + else if(activeChar.isInOlympiadMode() || Olympiad.getInstance().isRegistered(activeChar)){ + activeChar.sendMessage("You are in olympiad , you can't sell at the moment"); + return false; + } + else if(activeChar.atEvent){ + activeChar.sendMessage("You are in event , you can't sell at the moment"); + return false; + } + else if(!activeChar.isInsideZone(L2PcInstance.ZONE_PEACE)){ + activeChar.sendMessage("You are not in peacefull zone , you can sell only in peacefull zones"); + return false; + } + else if(isInRestrictedZone(activeChar)){ + activeChar.sendMessage("You can't sell in restricted zone"); + return false; + } + else if(activeChar.getPvpFlag() > 0 || activeChar.isInCombat() || activeChar.getKarma() > 0){ + activeChar.sendMessage("You are in combat mode , you can't sell at the moment"); + return false; + } + else if(!Config.SELL_BUFF_CLASS_LIST.contains(Integer.toString(activeChar.getClassId().getId()))){ + activeChar.sendMessage("Your class can't sell buffs"); + return false; + } + else if(activeChar.getLevel() < Config.SELL_BUFF_MIN_LVL){ + activeChar.sendMessage("You can sell buffs on "+Config.SELL_BUFF_MIN_LVL+" level"); + return false; + } + // summoner classes exception, buffs allowed from 56 level. + else if(activeChar.getClassId().getId() == 96 || activeChar.getClassId().getId() == 14 || activeChar.getClassId().getId() == 104 || activeChar.getClassId().getId() == 28){ + if(activeChar.getLevel() < 56){ + activeChar.sendMessage("You can sell buffs on 56 level"); + return false; + } + } + + activeChar.getSellBuffMsg().sendSellerResponse(activeChar); + + return true; + } + + + @Override + public String[] getVoicedCommandList() + { + return VOICED_COMMANDS; + } + + private boolean isInRestrictedZone(L2PcInstance activeChar){ + for(int i=0; i<Config.SELL_BUFF_RESTRICTED_ZONES_IDS.size(); i++){ + try{ + if(activeChar.isInsideZone(Integer.parseInt(Config.SELL_BUFF_RESTRICTED_ZONES_IDS.get(i)))){ + return true; + } + }catch(Exception e){ + return false; + } + + } + return false; + } + +} + + + +
  8. Oi galera! Sou novo aqui e estou tentando fazer o mod de venda de buff so pra aio char, mais eu nao consigo fazer com certeza.. O mod: [Hidden Content] algem pode me ajudar? obrgiado :anjo:
×
×
  • 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.