-
Total de itens
9 -
Registro em
-
Última visita
Sobre Halys
Halys's Achievements
Aprendiz de Novato (1/14)
0
Reputação
-
galera, onde eu posso dar um preview do meu server? vlw pela respuesta
-
comparta o npcs pra eu ajudar vc
-
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
-
Eu estou procurando um mod que cuando vc hita um mob, vc fica flag... vcs podem criar? :P Obrgiado!
-
Oi galera, eu estou procurando um mod que ao hitar um mob o char fique flag... Alguem conhece como fazer isso?
-
agora sim, vlw mano!
-
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;
-
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; + } + +} + + + +
-
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:
-
Atualizações Recentes de Status
-
Por favor, compartilhe a fonte da versão revisada do Orion. Obrigado.· 0 respostas
please...
-
The Event - Team vs Team· 0 respostas
The Event - Team vs Team
The event cannot be terminated when participating in the event.
The event does not end.
The event starts and does not end after teleporting.
Please tell me how. Please.
Even if the event is held for 2 minutes, it will not end.
I don't know how to proceed...
-