-
Total de itens
890 -
Registro em
-
Última visita
-
Prêmios recebidos
19
Tudo que Levy postou
-
Provavelmente esta faltando arquivo. Esses npcs foram ripados, então devem esta faltando arquivos.
-
Nice Shared @StinkyMadness, thx bro!
-
Index: config/pvpcolorsystem.properties =================================================================== --- config/pvpcolorsystem.properties (revision 0) +++ config/pvpcolorsystem.properties (revision 0) @@ -0,0 +1,9 @@ +# Advanced pvp/pk color system, by Anarchy. + +# PvP Name color System. +# It works like: pvps,color;pvps,color, eg. 100,00FF00;200,FF0000;300,0000FF;. +PvpsColors = 100,00FF00; + +# Pk Title color System. +# It works like: pks,color;pks,color, eg. 100,00FF00;200,FF0000;300,0000FF;. +PksColors = 100,00FF00; \ No newline at end of file Index: java/net/sf/l2j/Config.java =================================================================== --- java/net/sf/l2j/Config.java (revision 2) +++ java/net/sf/l2j/Config.java (working copy) @@ -46,6 +46,7 @@ public static final String RUS_ACIS_FILE = "./config/rus_acis.properties"; public static final String SERVER_FILE = "./config/server.properties"; public static final String SIEGE_FILE = "./config/siege.properties"; + private static final String PVP_COLOR_SYSTEM_CONFIG_FILE = "./config/pvpcolorsystem.properties"; // -------------------------------------------------- // Clans settings @@ -776,6 +777,11 @@ public static boolean CABAL_BUFFER; public static int[] NO_DROP_ITEMS; + /** PVP COLOR SYSTEM */ + public static String PVPS_COLORS; + public static Map<Integer, Integer> PVPS_COLORS_LIST; + public static String PKS_COLORS; + public static Map<Integer, Integer> PKS_COLORS_LIST; /** * Initialize {@link ExProperties} from specified configuration file. * @param filename : File name to be loaded. @@ -814,6 +820,46 @@ } /** + * Loads PvPColor settings. + */ + private static final void loadPvPColors() { + final ExProperties pvpcolor = initProperties(PVP_COLOR_SYSTEM_CONFIG_FILE); + + PVPS_COLORS = pvpcolor.getProperty("PvpsColors", ""); + PVPS_COLORS_LIST = new HashMap <> (); + + String[] splitted_pvps_colors = PVPS_COLORS.split(";"); + + for (String iii: splitted_pvps_colors) { + + String[] pvps_colors = iii.split(","); + + if (pvps_colors.length != 2) { + System.out.println("Invalid properties."); + } else { + PVPS_COLORS_LIST.put(Integer.parseInt(pvps_colors[0]), Integer.decode("0x" + pvps_colors[1])); + } + + } + + PKS_COLORS = pvpcolor.getProperty("PksColors", ""); + PKS_COLORS_LIST = new HashMap <> (); + + String[] splitted_pks_colors = PKS_COLORS.split(";"); + + for (String iii: splitted_pks_colors) { + + String[] pks_colors = iii.split(","); + + if (pks_colors.length != 2) { + System.out.println("Invalid properties."); + } else { + PKS_COLORS_LIST.put(Integer.parseInt(pks_colors[0]), Integer.decode("0x" + pks_colors[1])); + } + + } + } + /** * Loads clan and clan hall settings. */ private static final void loadClans() @@ -1646,6 +1692,9 @@ // clans settings loadClans(); + + // pvpcolor settings + loadPvPColors(); // events settings loadEvents(); Index: java/net/sf/l2j/gameserver/anarchy/PvPColorSystem.java =================================================================== --- java/net/sf/l2j/gameserver/anarchy/PvPColorSystem.java (revision 0) +++ java/net/sf/l2j/gameserver/anarchy/PvPColorSystem.java (revision 0) @@ -0,0 +1,53 @@ +/* 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 net.sf.l2j.gameserver.anarchy; + +import java.util.Set; + +import net.sf.l2j.Config; +import net.sf.l2j.gameserver.model.actor.Player; + +/** + * + * @author Anarchy + */ +public class PvPColorSystem +{ + public void updateNameColor(Player player) + { + Set<Integer> pvpscolors = Config.PVPS_COLORS_LIST.keySet(); + for (Integer i : pvpscolors) + { + if (player.getPvpKills() >= i) + { + player.getAppearance().setNameColor(Config.PVPS_COLORS_LIST.get(i)); + } + } + } + public void updateTitleColor(Player player) + { + Set<Integer> pkscolors = Config.PKS_COLORS_LIST.keySet(); + for (Integer i : pkscolors) + { + if (player.getPkKills() >= i) + { + player.getAppearance().setTitleColor(Config.PKS_COLORS_LIST.get(i)); + } + } + } +} \ No newline at end of file Index: java/net/sf/l2j/gameserver/model/actor/Player.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/Player.java (revision 2) +++ java/net/sf/l2j/gameserver/model/actor/Player.java (working copy) @@ -32,6 +32,7 @@ import net.sf.l2j.Config; import net.sf.l2j.gameserver.LoginServerThread; +import net.sf.l2j.gameserver.anarchy.PvPColorSystem; import net.sf.l2j.gameserver.communitybbs.CommunityBoard; import net.sf.l2j.gameserver.communitybbs.model.Forum; import net.sf.l2j.gameserver.data.SkillTable; @@ -2971,7 +2972,9 @@ { // Add PvP point to attacker. setPvpKills(getPvpKills() + 1); - + PvPColorSystem pvpcolor = new PvPColorSystem(); + pvpcolor.updateNameColor(this); + pvpcolor.updateTitleColor(this); // Send UserInfo packet to attacker with its Karma and PK Counter sendPacket(new UserInfo(this)); } Index: java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java =================================================================== --- java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java (revision 2) +++ java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java (working copy) @@ -54,6 +54,7 @@ import net.sf.l2j.gameserver.scripting.QuestState; import net.sf.l2j.gameserver.skills.L2Skill; import net.sf.l2j.gameserver.taskmanager.GameTimeTaskManager; +import net.sf.l2j.gameserver.anarchy.PvPColorSystem; public class EnterWorld extends L2GameClientPacket { @@ -94,6 +95,9 @@ else AdminData.getInstance().addGm(player, true); } + PvPColorSystem pvpcolor = new PvPColorSystem(); + pvpcolor.updateNameColor(player); + pvpcolor.updateTitleColor(player); // Set dead status if applies if (player.getStatus().getHp() < 0.5 && player.isMortal())
-
Upa o link em outro shared, google drive ta osso! Obrigado.
-
Você precisa adicionar isso na ukx do monstro. Fazer a action. AnimNotify_AttackItem : class AnimNotify_AttackItem extends AnimNotify native; AnimNotify_AttackPreShot : class AnimNotify_AttackPreShot extends AnimNotify native; AnimNotify_AttackShot : class AnimNotify_AttackShot extends AnimNotify native; var() int TargetIndex;
-
If you care about these types of comments you will go crazy. That's the Brazilian's Evil, it just cries for cheap values and when it can't buy, they end up doing everything they can to steal. @marciox25 knows how difficult it is for me to lock files because of this slutty community that doesn't value anyone's work.
-
Se nao me engano isso fica na system. Em: ZoneName-e.dat
-
Existe algum npc ou mob que se você bater nele sai mais mobs de dentro?
pergunta respondeu ao Brun Brunus de Levy em Dúvidas
Os anjos de TOI, Ao morrer nasce outro. -
Links OFF! Links OFF!
-
São os dias atuais kkk. Fórum foi bom em 2009 / 2010, que ninguém manjava nada, e quem manjava tinha prazer em ajudar. Hoje? Duvido!
- 37 respostas
-
- 1
-
- h5
- h5 sunrise
-
(and 1 more)
Tags:
-
@marciox25 ele consegue burlar, e ate mesmo gerar keys!
- 37 respostas
-
- h5
- h5 sunrise
-
(and 1 more)
Tags:
-
icpnetworks ICPNetworks V3 ~~> Multiplataform: L2j & L2OFF
Tópico respondeu ao Ivan Pires de Levy em Sites e Sistemas ICP
Ah, outra coisa, sera que não seria melhor, quando o cara executar uma função, no refresh ele resetar os campos? Apenas uma duvida mesmo. Exemplo: Quando o cara seleciona mudar de classe, ele da um refresh, mas continua com o personagem selecionado. O correto seria isso mesmo ou seria resetar o personagem? Não sei se minha explicação ficou muito clara. -
icpnetworks ICPNetworks V3 ~~> Multiplataform: L2j & L2OFF
Tópico respondeu ao Ivan Pires de Levy em Sites e Sistemas ICP
Bom, mas voce pode me dar um caminho para que eu possa acrescentar isso no meu sistema? Apenas para mim ter uma logica que como posso criar algo depois. -
icpnetworks ICPNetworks V3 ~~> Multiplataform: L2j & L2OFF
Tópico respondeu ao Ivan Pires de Levy em Sites e Sistemas ICP
Então, estava fazendo um teste na mudança de base. E tipo, lá muda para a 3° JOB, então deveria ter um requisito pelo menos de Lv 78+ para mudar a job. Se não um cara Lv 1, consegue pegar a 3° job. Sei que muitos podem não utilizar essa parte do sistema, mas vamos pensar em um servidor low, o cara pega uma 3° job no site, não sei se era essa a intenção. -
icpnetworks ICPNetworks V3 ~~> Multiplataform: L2j & L2OFF
Tópico respondeu ao Ivan Pires de Levy em Sites e Sistemas ICP
Após varias tentativas sem sucesso ontem, consegui resolver o problema. Para sanar esse problema, mesmo sendo localhost, é necessário liberar a porta 1433 para o IP 127.0.0.1 dentro do SQL Server Configuration Manager. @Ivan Pireso template é montado em tlp? Tem umas condições que seriam boas para adicionar, vou tentar faze algumas hoje. @xk4rm4012 As tabelas tem que ser L2J amigão. -
icpnetworks ICPNetworks V3 ~~> Multiplataform: L2j & L2OFF
Tópico respondeu ao Ivan Pires de Levy em Sites e Sistemas ICP
Ao tentar conectar com o DB do L2OFF, recebo esse retorno, te reportei no MP, porem caso alguém esteja tentando e venha ocorrer o mesmo problema, estou fazendo o report no tópico, Já que no vídeo a instalação foi apenas para L2J. Obrigado. -
icpnetworks ICPNetworks V3 ~~> Multiplataform: L2j & L2OFF
Tópico respondeu ao Ivan Pires de Levy em Sites e Sistemas ICP
Que é isso meu caro amigo @Ivan Pires. Agora tu quebrou a banca em kk, cara, pra quem faz isso apenas por hobby, o trabalho esta excepcional. Parabéns, como sempre com ótimos trabalhos. -
Use a quest de recipe grad S como base. Inicia no npc em imperial tomb, ela faz praticamente isso que você quer. Voce fala com o NPC, mata 1000 mobs e ele te da um recipe aleatorio. Quest name: Relics of the Old Empire Q619_RelicsOfTheOldEmpire
-
Qual parte dessa linha é responsavel pela posição que o personagem segura a arma?
pergunta respondeu ao Brun Brunus de Levy em Dúvidas
Se for dessa arma que vocÊ citou acima a animation é essa: LineageWeapons.assassin_knife_m00_wp Legenda: Nome da Animation Mesh da Weapon -
Download NPC Complete. Thx
-
Check MP.
-
[Monstro Fighter] for Interlude with animations and sounds
Tópico respondeu ao Rolo de Levy em C1 - Interlude
Nice Share Rolo!
-
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...
-