Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: L2jFrozen_GameServer/config/functions/pvp.properties
- ===================================================================
- --- L2jFrozen_GameServer/config/functions/pvp.properties
- +++ L2jFrozen_GameServer/config/functions/pvp.properties
- @@ -207,4 +208,5 @@
- # War Legend Configs
- WarLegendAura = False
- KillsToGetWarLegendAura = 30
- +
- +#=============================================================
- +# Show Hp PvP
- +#=============================================================
- +# By João Vitor Barbosa
- +ShowHpPvP = True
- #====================================
- # Anti Farm System
- #====================================
- # You must put True to active the AntiFarm mod.
- Creditos meu !!
- Index: java/L2jFrozen_GameServer/head-src/com/l2jfrozen/Config.java
- ===================================================================
- --- java/L2jFrozen_GameServer/head-src/com/l2jfrozen/Config.java
- +++ java/L2jFrozen_GameServer/head-src/com/l2jfrozen/Config.java
- @@ -2623,2 +2624,3 @@
- public static boolean WAR_LEGEND_AURA;
- public static int KILLS_TO_GET_WAR_LEGEND_AURA;
- +
- +// Show HP PvP
- +public static boolean SHOW_HP_PVP;
- public static boolean ANTI_FARM_ENABLED;
- @@ -2744,6 +2745,7 @@
- WAR_LEGEND_AURA = Boolean.parseBoolean(pvpSettings.getProperty("WarLegendAura", "False"));
- KILLS_TO_GET_WAR_LEGEND_AURA = Integer.parseInt(pvpSettings.getProperty("KillsToGetWarLegendAura", "30"));
- +
- +// Show HP PvP
- +SHOW_HP_PVP = Boolean.parseBoolean(pvpSettings.getProperty("ShowHpPvP", "True"));
- ANTI_FARM_ENABLED = Boolean.parseBoolean(pvpSettings.getProperty("AntiFarmEnabled", "False"));
- Index: java/L2jFrozen_GameServer/head-src/com/l2jfrozen/gameserver/model/L2Character.java
- ===================================================================
- --- java/L2jFrozen_GameServer/head-src/com/l2jfrozen/gameserver/model/L2Character.java
- +++ java/L2jFrozen_GameServer/head-src/com/l2jfrozen/gameserver/model/L2Character.java
- @@ -10312,4 +10313,5 @@
- public final double getCurrentHp()
- {
- return getStatus().getCurrentHp();
- }
- + /**
- + * Gets the current enemy hp after death
- + * @return the current hp
- + */
- + public final int getCurrentShowHpPvp()
- + {
- + return (int) getStatus().getCurrentHp();
- + }
- +
- + /**
- + * Gets the current enemy hp after death
- + * @return the current hp
- + */
- + public final int getCurrentShowCpPvp()
- + {
- + return (int) getStatus().getCurrentCp();
- + }
- /**
- * Sets the current hp.
- * @param newHp the new current hp
- */
- public final void setCurrentHp(final double newHp)
- {
- getStatus().setCurrentHp(newHp);
- }
- Index: java/L2jFrozen_GameServer/head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java
- ===================================================================
- --- java/L2jFrozen_GameServer/head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java
- +++ java/L2jFrozen_GameServer/head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java
- @@ -7859,1 +7860,2 @@
- // If in Arena, do nothing
- if (isInsideZone(ZONE_PVP) || targetPlayer.isInsideZone(ZONE_PVP))
- return;
- +
- +// Show HP PvP
- +if (Config.SHOW_HP_PVP)
- +targetPlayer.sendPacket(new ExShowScreenMessage( getName() + " - HP: " + getCurrentShowHpPvp() + "/" + getCurrentShowCpPvp() + " - CP: " , 4000));
- // check anti-farm
- if (!checkAntiFarm(targetPlayer))
- return;
- import com.l2jfrozen.gameserver.network.serverpackets.ExShowScreenMessage;
Add Comment
Please, Sign In to add comment