Jump to content
  • 0

pvp pk colour system problem


Question

Posted

re paidia exw balei on kwdika alla tpy ta xrwmata paramenoun ta klassika .... ti exw kanei lathos???

+# Example: PvpAmmount1 = 100, when a character's PvP counter reaches 100, their name color will change

#
+EnablePvPColorSystem = True

#
+EnablePvPTitleSystem = True

#
+PvPAmount1 = 100

#
+NameColorForAmount1 = 000000

#
+PvPTitleForAmount1 = Title

#
+PvpAmount2 = 125

#
+NameColorForAmount2 = 00FF00

#
+PvPTitleForAmount2 = Title

#
+PvpAmount3 = 150

#
+NameColorForAmount3 = 00FF00

#
+PvPTitleForAmount3 = Title

#
+PvpAmount4 = 175

#
+NameColorForAmount4 = 00FF00

#
+PvPTitleForAmount4 = Title

#
+PvpAmount5 = 200

#
+NameColorForAmount5 = 00FF00

#
+PvPTitleForAmount5 = Title

#
+PvpAmount6 = 225

#
+NameColorForAmount6 = CCFF00

#
+PvPTitleForAmount6 = Title

#
+PvpAmount7 = 250

#
+NameColorForAmount7 = 00FF00

#
+PvPTitleForAmount7 = Title

#
+PvpAmount8 = 275

#
+NameColorForAmount8 = 00FF00

#
+PvPTitleForAmount8 = Title

#
+PvpAmount9 = 300

#
+NameColorForAmount9 = 00FF00

#
+PvPTitleForAmount9 = Title

#
+PvpAmount10 = 500

#
+NameColorForAmount10 = 00FF00

#
+PvPTitleForAmount10 = Title

#
+# Example: PkAmmount1 = 100, when a character's Pk counter reaches 100, their title color will change

#
+EnablePkColorSystem = True

#
+EnablePkTitleSystem = True

#
+PkAmount1 = 100

#
+TitleColorForAmount1 = 000000

#
+PkTitleForAmount1 = Title

#
+PkAmount2 = 125

#
+TitleColorForAmount2 = 00FF00

#
+PkTitleForAmount2 = Title

#
+PkAmount3 = 150

#
+TitleColorForAmount3 = 00FF00

#
+PkTitleForAmount3 = Title

#
+PkAmount4 = 175

#
+TitleColorForAmount4 = 00FF00

#
+PkTitleForAmount4 = Title

#
+PkAmount5 = 200

#
+TitleColorForAmount5 = 00FF00

#
+PkTitleForAmount5 = Title

#
+PkAmount6 = 225

#
+TitleColorForAmount6 = 00FF00

#
+PkTitleForAmount6 = Title

#
+PkAmount7 = 250

#
+TitleColorForAmount7 = 00FF00

#
+PkTitleForAmount7 = Title

#
+PkAmount8 = 275

#
+TitleColorForAmount8 = 00FF00

#
+PkTitleForAmount8 = Title

#
+PkAmount9 = 300

#
+TitleColorForAmount9 = 00FF00

#
+PkTitleForAmount9 = Title

#
+PkAmount10 = 500

#
+TitleColorForAmount10 = 00FF00

#
+PkTitleForAmount10 = Title

#
PVP_NORMAL_TIME = Integer.parseInt(pvpSettings.getProperty("PvPVsNormalTime", "120000"));

#
PVP_PVP_TIME = Integer.parseInt(pvpSettings.getProperty("PvPVsPvPTime", "60000"));

#
+				ANNOUNCE_KILL = Boolean.parseBoolean(pvpSettings.getProperty("AnnounceKill", "False"));

#
+				PK_PROTECTION = Integer.parseInt(pvpSettings.getProperty("PkProtection", "0"));

#
+	    			PVP_COLOR_SYSTEM_ENABLED = Boolean.parseBoolean(pvpSettings.getProperty("EnablePvPColorSystem", "true"));

#
+	    			PVP_TITLE_SYSTEM_ENABLED = Boolean.parseBoolean(pvpSettings.getProperty("EnablePvPTitleSystem", "true"));

#
+	    			PVP_AMOUNT1 = Integer.parseInt(pvpSettings.getProperty("PvpAmount1", "100"));

#
+	    			PVP_AMOUNT2 = Integer.parseInt(pvpSettings.getProperty("PvpAmount2", "125"));

#
+	    			PVP_AMOUNT3 = Integer.parseInt(pvpSettings.getProperty("PvpAmount3", "150"));

#
+	    			PVP_AMOUNT4 = Integer.parseInt(pvpSettings.getProperty("PvpAmount4", "175"));

#
+	    			PVP_AMOUNT5 = Integer.parseInt(pvpSettings.getProperty("PvpAmount5", "200"));

#
+	    			PVP_AMOUNT6 = Integer.parseInt(pvpSettings.getProperty("PvpAmount6", "225"));

#
+	    			PVP_AMOUNT7 = Integer.parseInt(pvpSettings.getProperty("PvpAmount7", "250"));

#
+	    			PVP_AMOUNT8 = Integer.parseInt(pvpSettings.getProperty("PvpAmount8", "275"));

#
+	    			PVP_AMOUNT9 = Integer.parseInt(pvpSettings.getProperty("PvpAmount9", "300"));

#
+	    			PVP_AMOUNT10 = Integer.parseInt(pvpSettings.getProperty("PvpAmount10", "500"));

#
+	    			NAME_COLOR_FOR_PVP_AMOUNT1 = Integer.decode("0x" + pvpSettings.getProperty("NameColorForAmount1", "000000"));

#
+	    			NAME_COLOR_FOR_PVP_AMOUNT2 = Integer.decode("0x" + pvpSettings.getProperty("NameColorForAmount2", "00FF00"));

#
+	    			NAME_COLOR_FOR_PVP_AMOUNT3 = Integer.decode("0x" + pvpSettings.getProperty("NameColorForAmount3", "00FF00"));

#
+	    			NAME_COLOR_FOR_PVP_AMOUNT4 = Integer.decode("0x" + pvpSettings.getProperty("NameColorForAmount4", "00FF00"));

#
+	    			NAME_COLOR_FOR_PVP_AMOUNT5 = Integer.decode("0x" + pvpSettings.getProperty("NameColorForAmount5", "00FF00"));

#
+	    			NAME_COLOR_FOR_PVP_AMOUNT6 = Integer.decode("0x" + pvpSettings.getProperty("NameColorForAmount6", "00FF00"));

#
+	    			NAME_COLOR_FOR_PVP_AMOUNT7 = Integer.decode("0x" + pvpSettings.getProperty("NameColorForAmount7", "00FF00"));

#
+	    			NAME_COLOR_FOR_PVP_AMOUNT8 = Integer.decode("0x" + pvpSettings.getProperty("NameColorForAmount8", "00FF00"));

#
+	    			NAME_COLOR_FOR_PVP_AMOUNT9 = Integer.decode("0x" + pvpSettings.getProperty("NameColorForAmount9", "00FF00"));

#
+	    			NAME_COLOR_FOR_PVP_AMOUNT10 = Integer.decode("0x" + pvpSettings.getProperty("ColorForAmount10", "00FF00"));

#
+				TITLE_FOR_PVP_AMOUNT1 = pvpSettings.getProperty("PvPTitleForAmount1", "Title");

#
+				TITLE_FOR_PVP_AMOUNT2 = pvpSettings.getProperty("PvPTitleForAmount2", "Title");

#
+				TITLE_FOR_PVP_AMOUNT3 = pvpSettings.getProperty("PvPTitleForAmount3", "Title");

#
+				TITLE_FOR_PVP_AMOUNT4 = pvpSettings.getProperty("PvPTitleForAmount4", "Title");

#
+				TITLE_FOR_PVP_AMOUNT5 = pvpSettings.getProperty("PvPTitleForAmount5", "Title");

#
+				TITLE_FOR_PVP_AMOUNT6 = pvpSettings.getProperty("PvPTitleForAmount6", "Title");

#
+				TITLE_FOR_PVP_AMOUNT7 = pvpSettings.getProperty("PvPTitleForAmount7", "Title");

#
+				TITLE_FOR_PVP_AMOUNT8 = pvpSettings.getProperty("PvPTitleForAmount8", "Title");

#
+				TITLE_FOR_PVP_AMOUNT9 = pvpSettings.getProperty("PvPTitleForAmount9", "Title");

#
+				TITLE_FOR_PVP_AMOUNT10 = pvpSettings.getProperty("PvPTitleForAmount10", "Title");

#
+	    			PK_COLOR_SYSTEM_ENABLED = Boolean.parseBoolean(pvpSettings.getProperty("EnablePkColorSystem", "true"));

#
+	    			PK_TITLE_SYSTEM_ENABLED = Boolean.parseBoolean(pvpSettings.getProperty("EnablePKTitleSystem", "true"));

#
+	    			PK_AMOUNT1 = Integer.parseInt(pvpSettings.getProperty("PkAmount1", "100"));

#
+	    			PK_AMOUNT2 = Integer.parseInt(pvpSettings.getProperty("PkAmount2", "125"));

#
+	    			PK_AMOUNT3 = Integer.parseInt(pvpSettings.getProperty("PkAmount3", "150"));

#
+	    			PK_AMOUNT4 = Integer.parseInt(pvpSettings.getProperty("PkAmount4", "175"));

#
+	    			PK_AMOUNT5 = Integer.parseInt(pvpSettings.getProperty("PkAmount5", "200"));

#
+	    			PK_AMOUNT6 = Integer.parseInt(pvpSettings.getProperty("PkAmount6", "225"));

#
+	    			PK_AMOUNT7 = Integer.parseInt(pvpSettings.getProperty("PkAmount7", "250"));

#
+	    			PK_AMOUNT8 = Integer.parseInt(pvpSettings.getProperty("PkAmount8", "275"));

#
+	    			PK_AMOUNT9 = Integer.parseInt(pvpSettings.getProperty("PkAmount9", "300"));

#
+	    			PK_AMOUNT10 = Integer.parseInt(pvpSettings.getProperty("PkAmount10", "500"));

#
+	    			TITLE_COLOR_FOR_PK_AMOUNT1 = Integer.decode("0x" + pvpSettings.getProperty("TitleForAmount1", "000000"));

#
+	    			TITLE_COLOR_FOR_PK_AMOUNT2 = Integer.decode("0x" + pvpSettings.getProperty("TitleForAmount2", "00FF00"));

#
+	    			TITLE_COLOR_FOR_PK_AMOUNT3 = Integer.decode("0x" + pvpSettings.getProperty("TitleForAmount3", "00FF00"));

#
+	    			TITLE_COLOR_FOR_PK_AMOUNT4 = Integer.decode("0x" + pvpSettings.getProperty("TitleForAmount4", "00FF00"));

#
+	    			TITLE_COLOR_FOR_PK_AMOUNT5 = Integer.decode("0x" + pvpSettings.getProperty("TitleForAmount5", "00FF00"));

#
+	    			TITLE_COLOR_FOR_PK_AMOUNT6 = Integer.decode("0x" + pvpSettings.getProperty("TitleForAmount6", "00FF00"));

#
+	    			TITLE_COLOR_FOR_PK_AMOUNT7 = Integer.decode("0x" + pvpSettings.getProperty("TitleForAmount7", "00FF00"));

#
+	    			TITLE_COLOR_FOR_PK_AMOUNT8 = Integer.decode("0x" + pvpSettings.getProperty("TitleForAmount8", "00FF00"));

#
+	    			TITLE_COLOR_FOR_PK_AMOUNT9 = Integer.decode("0x" + pvpSettings.getProperty("TitleForAmount9", "00FF00"));

#
+	    			TITLE_COLOR_FOR_PK_AMOUNT10 = Integer.decode("0x" + pvpSettings.getProperty("TitleForAmount10", "00FF00"));

#
+				TITLE_FOR_PK_AMOUNT1 = pvpSettings.getProperty("PkTitleForAmount1", "Title");

#
+				TITLE_FOR_PK_AMOUNT2 = pvpSettings.getProperty("PkTitleForAmount2", "Title");

#
+				TITLE_FOR_PK_AMOUNT3 = pvpSettings.getProperty("PkTitleForAmount3", "Title");

#
+				TITLE_FOR_PK_AMOUNT4 = pvpSettings.getProperty("PkTitleForAmount4", "Title");

#
+				TITLE_FOR_PK_AMOUNT5 = pvpSettings.getProperty("PkTitleForAmount5", "Title");

#
+				TITLE_FOR_PK_AMOUNT6 = pvpSettings.getProperty("PkTitleForAmount6", "Title");

#
+				TITLE_FOR_PK_AMOUNT7 = pvpSettings.getProperty("PkTitleForAmount7", "Title");

#
+				TITLE_FOR_PK_AMOUNT8 = pvpSettings.getProperty("PkTitleForAmount8", "Title");

#
+				TITLE_FOR_PK_AMOUNT9 = pvpSettings.getProperty("PkTitleForAmount9", "Title");

#
+				TITLE_FOR_PK_AMOUNT10 = pvpSettings.getProperty("PkTitleForAmount10", "Title");

#
else if (pName.equalsIgnoreCase("PvPVsNormalTime")) PVP_NORMAL_TIME = Integer.parseInt(pValue);

#
else if (pName.equalsIgnoreCase("PvPVsPvPTime")) PVP_PVP_TIME = Integer.parseInt(pValue);

#
+		else if (pName.equalsIgnoreCase("AnnounceKill") ) ANNOUNCE_KILL = Boolean.valueOf(pValue);

#
+		else if (pName.equalsIgnoreCase("PkProtection")) PK_PROTECTION = Integer.parseInt(pValue);

#
else if (pName.equalsIgnoreCase("GlobalChat")) DEFAULT_GLOBAL_CHAT = pValue;

#
else if (pName.equalsIgnoreCase("TradeChat"))	DEFAULT_TRADE_CHAT = pValue;

#
else if (pName.equalsIgnoreCase("GMAdminMenuStyle"))	GM_ADMIN_MENU_STYLE = pValue;

#
+        if (activeChar.getPvpKills()> = (Config.PVP_AMOUNT1) && (Config.PVP_COLOR_SYSTEM_ENABLED)) activeChar.updatePvPColor(activeChar.getPvpKills());

#
+        if (activeChar.getPvpKills()> = (Config.PVP_AMOUNT1) && (Config.PVP_TITLE_SYSTEM_ENABLED)) activeChar.updatePvPTitle(activeChar.getPvpKills());

#
+        if (activeChar.getPkKills()> = (Config.PK_AMOUNT1) && (Config.PK_COLOR_SYSTEM_ENABLED)) activeChar.updatePkColor(activeChar.getPkKills());

#
+        if (activeChar.getPkKills()> = (Config.PK_AMOUNT1) && (Config.PK_TITLE_SYSTEM_ENABLED)) activeChar.updatePkTitle(activeChar.getPkKills());

#
+				if ((pvpKillAmount > = (Config.PVP_AMOUNT1)) && (pvpKillAmount < (Config.PVP_AMOUNT2)))

#
+				else if ((pvpKillAmount > = (Config.PVP_AMOUNT2)) && (pvpKillAmount < (Config.PVP_AMOUNT3)))

#
+				else if ((pvpKillAmount > = (Config.PVP_AMOUNT3)) && (pvpKillAmount < (Config.PVP_AMOUNT4)))

#
+				else if ((pvpKillAmount > = (Config.PVP_AMOUNT4)) && (pvpKillAmount < (Config.PVP_AMOUNT5)))

#
+				else if ((pvpKillAmount > = (Config.PVP_AMOUNT5)) && (pvpKillAmount < (Config.PVP_AMOUNT6)))

#
+				else if ((pvpKillAmount > = (Config.PVP_AMOUNT6)) && (pvpKillAmount < (Config.PVP_AMOUNT7)))

#
+				else if ((pvpKillAmount > = (Config.PVP_AMOUNT7)) && (pvpKillAmount < (Config.PVP_AMOUNT8)))

#
+				else if ((pvpKillAmount > = (Config.PVP_AMOUNT8)) && (pvpKillAmount < (Config.PVP_AMOUNT9)))

#
+				else if ((pvpKillAmount > = (Config.PVP_AMOUNT9)) && (pvpKillAmount < (Config.PVP_AMOUNT10)))

#
+				else if (pvpKillAmount > = (Config.PVP_AMOUNT10))

#
+				if ((pvpKillAmount > = (Config.PVP_AMOUNT1)) && (pvpKillAmount < (Config.PVP_AMOUNT2)))

#
+				else if ((pvpKillAmount > = (Config.PVP_AMOUNT2)) && (pvpKillAmount < (Config.PVP_AMOUNT3)))

#
+				else if ((pvpKillAmount > = (Config.PVP_AMOUNT3)) && (pvpKillAmount < (Config.PVP_AMOUNT4)))

#
+				else if ((pvpKillAmount > = (Config.PVP_AMOUNT4)) && (pvpKillAmount < (Config.PVP_AMOUNT5)))

#
+				else if ((pvpKillAmount > = (Config.PVP_AMOUNT5)) && (pvpKillAmount < (Config.PVP_AMOUNT6)))

#
+				else if ((pvpKillAmount > = (Config.PVP_AMOUNT6)) && (pvpKillAmount < (Config.PVP_AMOUNT7)))

#
+				else if ((pvpKillAmount > = (Config.PVP_AMOUNT7)) && (pvpKillAmount < (Config.PVP_AMOUNT8)))

#
+				else if ((pvpKillAmount > = (Config.PVP_AMOUNT8)) && (pvpKillAmount < (Config.PVP_AMOUNT9)))

#
+				else if ((pvpKillAmount > = (Config.PVP_AMOUNT9)) && (pvpKillAmount < (Config.PVP_AMOUNT10)))

#
+				else if (pvpKillAmount > = (Config.PVP_AMOUNT10))

#
+				if ((pkKillAmount > = (Config.PK_AMOUNT1)) && (pkKillAmount < (Config.PVP_AMOUNT2)))

#
+				else if ((pkKillAmount > = (Config.PK_AMOUNT2)) && (pkKillAmount < (Config.PVP_AMOUNT3)))

#
+				else if ((pkKillAmount > = (Config.PK_AMOUNT3)) && (pkKillAmount < (Config.PVP_AMOUNT4)))

#
+				else if ((pkKillAmount > = (Config.PK_AMOUNT4)) && (pkKillAmount < (Config.PVP_AMOUNT5)))

#
+				else if ((pkKillAmount > = (Config.PK_AMOUNT5)) && (pkKillAmount < (Config.PVP_AMOUNT6)))

#
+				else if ((pkKillAmount > = (Config.PK_AMOUNT6)) && (pkKillAmount < (Config.PVP_AMOUNT7)))

#
+				else if ((pkKillAmount > = (Config.PK_AMOUNT7)) && (pkKillAmount < (Config.PVP_AMOUNT8)))

#
+				else if ((pkKillAmount > = (Config.PK_AMOUNT8)) && (pkKillAmount < (Config.PVP_AMOUNT9)))

#
+				else if ((pkKillAmount > = (Config.PK_AMOUNT9)) && (pkKillAmount < (Config.PVP_AMOUNT10)))

#
+				else if (pkKillAmount > = (Config.PK_AMOUNT10))

#
+				if ((pkKillAmount > = (Config.PK_AMOUNT1)) && (pkKillAmount < (Config.PVP_AMOUNT2)))

#
+				else if ((pkKillAmount > = (Config.PK_AMOUNT2)) && (pkKillAmount < (Config.PVP_AMOUNT3)))

#
+				else if ((pkKillAmount > = (Config.PK_AMOUNT3)) && (pkKillAmount < (Config.PVP_AMOUNT4)))

#
+				else if ((pkKillAmount > = (Config.PK_AMOUNT4)) && (pkKillAmount < (Config.PVP_AMOUNT5)))

#
+				else if ((pkKillAmount > = (Config.PK_AMOUNT5)) && (pkKillAmount < (Config.PVP_AMOUNT6)))

#
+				else if ((pkKillAmount > = (Config.PK_AMOUNT6)) && (pkKillAmount < (Config.PVP_AMOUNT7)))

#
+				else if ((pkKillAmount > = (Config.PK_AMOUNT7)) && (pkKillAmount < (Config.PVP_AMOUNT8)))

#
+				else if ((pkKillAmount > = (Config.PK_AMOUNT8)) && (pkKillAmount < (Config.PVP_AMOUNT9)))

#
+				else if ((pkKillAmount > = (Config.PK_AMOUNT9)) && (pkKillAmount < (Config.PVP_AMOUNT10)))

#
+				else if (pkKillAmount > = (Config.PK_AMOUNT10))

#
if (targetPlayer = 

#
if (targetPlayer = 

#
else if (targetPlayer.getPvpFlag() = 

#
if(getInventory().getPaperdollItemId(7) > = 7816 && getInventory().getPaperdollItemId(7) <

#
+                if (target ! = this && target instanceof L2PcInstance &&

#
+                final L2PcInstance targetPlayer = (L2PcInstance) target;

#
+                if (getClan() ! = null && targetPlayer.getClan() !

#
+                if (targetPlayer.getPvpFlag() = 

#
+                        targetPlayer.getKarma() = 

Recommended Posts

  • 0
Posted

file m an thumamai kala apo edw to eixa parei  http://maxcheaters.com/forum/index.php?topic=28059.0 se parakalw an mporeis na kaneis kati tha to ektimousa para poli to psaxnw kairo alla apo oti fainetai den ta katafera ... Hi5 client exw ( upenthimisi :) )

  • 0
Posted

1) l2jmods.properties

_______________________

# ---------------------------------------
# Section: PvP Title Color Change System by Level
# ---------------------------------------
# Each Amount will change the name color to the values defined here.
# Example: PvpAmmount1 = 500, when a character's PvP counter reaches 500, their name color will change
# according to the ColorForAmount value.
# Note: Colors Must Use RBG format
EnablePvPColorSystem = false

# Pvp Amount & Name color level 1.
PvpAmount1 = 500
ColorForAmount1 = CCFF00

# Pvp Amount & Name color level 2.
PvpAmount2 = 1000
ColorForAmount2 = 00FF00

# Pvp Amount & Name color level 3.
PvpAmount3 = 1500
ColorForAmount3 = 00FF00

# Pvp Amount & Name color level 4.
PvpAmount4 = 2500
ColorForAmount4 = 00FF00

# Pvp Amount & Name color level 5.
PvpAmount5 = 5000
ColorForAmount5 = 00FF00

# ---------------------------------------
# Section: PvP Nick Color System by Level
# ---------------------------------------
# Same as above, with the difference that the PK counter changes the title color.
# Example:  PkAmmount1 = 500, when a character's PK counter reaches 500, their title color will change
# according to the Title For Amount
# WAN: Colors Must Use RBG format
EnablePkColorSystem = false

# Pk Amount & Title color level 1.
PkAmount1 = 500
TitleForAmount1 = 00FF00

# Pk Amount & Title color level 2.
PkAmount2 = 1000
TitleForAmount2 = 00FF00

# Pk Amount & Title color level 3.
PkAmount3 = 1500
TitleForAmount3 = 00FF00

# Pk Amount & Title color level 4.
PkAmount4 = 2500
TitleForAmount4 = 00FF00

# Pk Amount & Title color level 5.
PkAmount5 = 5000
TitleForAmount5 = 00FF00

 

__________________________

2)Index: /java/net/sf/l2j/Config.java

______________________________

sto eclipce 8a vris tin grami 544

einai peripou edo -->    public static boolean L2JMOD_ENABLE_WAREHOUSESORTING_CLAN;

______________________________

ke 8a valis to afto to java code

_____________________________

	public static boolean		PVP_COLOR_SYSTEM_ENABLED;
public static int			PVP_AMOUNT1;
public static int			PVP_AMOUNT2;
public static int			PVP_AMOUNT3;
public static int			PVP_AMOUNT4;
public static int			PVP_AMOUNT5;
public static int			NAME_COLOR_FOR_PVP_AMOUNT1;
public static int			NAME_COLOR_FOR_PVP_AMOUNT2;
public static int			NAME_COLOR_FOR_PVP_AMOUNT3;
public static int			NAME_COLOR_FOR_PVP_AMOUNT4;
public static int			NAME_COLOR_FOR_PVP_AMOUNT5;
public static boolean		PK_COLOR_SYSTEM_ENABLED;
public static int			PK_AMOUNT1;
public static int			PK_AMOUNT2;
public static int			PK_AMOUNT3;
public static int			PK_AMOUNT4;
public static int			PK_AMOUNT5;
public static int			TITLE_COLOR_FOR_PK_AMOUNT1;
public static int			TITLE_COLOR_FOR_PK_AMOUNT2;
public static int			TITLE_COLOR_FOR_PK_AMOUNT3;
public static int			TITLE_COLOR_FOR_PK_AMOUNT4;
public static int			TITLE_COLOR_FOR_PK_AMOUNT5;

____________________________

stin grami 1654 8a vris to -->                L2JMOD_ENABLE_WAREHOUSESORTING_FREIGHT  = Boolean.valueOf(L2JModSettings.getProperty("EnableWarehouseSortingFreight", "False"));

_________________________

ke 8a valis afto to java code

_________________________

                
    			// PVP Name Color System configs - Start
    			PVP_COLOR_SYSTEM_ENABLED = Boolean.parseBoolean(L2JModSettings.getProperty("EnablePvPColorSystem", "false"));
    			PVP_AMOUNT1 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount1", "500"));
    			PVP_AMOUNT2 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount2", "1000"));
    			PVP_AMOUNT3 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount3", "1500"));
    			PVP_AMOUNT4 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount4", "2500"));
    			PVP_AMOUNT5 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount5", "5000"));
    			NAME_COLOR_FOR_PVP_AMOUNT1 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount1", "00FF00"));
    			NAME_COLOR_FOR_PVP_AMOUNT2 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount2", "00FF00"));
    			NAME_COLOR_FOR_PVP_AMOUNT3 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount3", "00FF00"));
    			NAME_COLOR_FOR_PVP_AMOUNT4 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount4", "00FF00"));
    			NAME_COLOR_FOR_PVP_AMOUNT5 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount4", "00FF00"));
    			// PvP Name Color System configs - End
    			
    			// PK Title Color System configs - Start
    			PK_COLOR_SYSTEM_ENABLED = Boolean.parseBoolean(L2JModSettings.getProperty("EnablePkColorSystem", "false"));
    			PK_AMOUNT1 = Integer.parseInt(L2JModSettings.getProperty("PkAmount1", "500"));
    			PK_AMOUNT2 = Integer.parseInt(L2JModSettings.getProperty("PkAmount2", "1000"));
    			PK_AMOUNT3 = Integer.parseInt(L2JModSettings.getProperty("PkAmount3", "1500"));
    			PK_AMOUNT4 = Integer.parseInt(L2JModSettings.getProperty("PkAmount4", "2500"));
    			PK_AMOUNT5 = Integer.parseInt(L2JModSettings.getProperty("PkAmount5", "5000"));
    			TITLE_COLOR_FOR_PK_AMOUNT1 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount1", "00FF00"));
    			TITLE_COLOR_FOR_PK_AMOUNT2 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount2", "00FF00"));
    			TITLE_COLOR_FOR_PK_AMOUNT3 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount3", "00FF00"));
    			TITLE_COLOR_FOR_PK_AMOUNT4 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount4", "00FF00"));
    			TITLE_COLOR_FOR_PK_AMOUNT5 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount5", "00FF00"));
    			//PK Title Color System configs - End

______________________________________________

sto java Index: /java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java

8a vris tin grami 177  loadTutorial(activeChar);

ke 8a valis java code

_____________________________________________

        // =================================================================================
        // Color System checks - Start =====================================================
        // Check if the custom PvP and PK color systems are enabled and if so ==============
        // check the character's counters and apply any color changes that must be done. ===
        if (activeChar.getPvpKills()>=(Config.PVP_AMOUNT1) && (Config.PVP_COLOR_SYSTEM_ENABLED)) activeChar.updatePvPColor(activeChar.getPvpKills());
        if (activeChar.getPkKills()>=(Config.PK_AMOUNT1) && (Config.PK_COLOR_SYSTEM_ENABLED)) activeChar.updatePkColor(activeChar.getPkKills());
        // Color System checks - End =======================================================
        // =================================================================================

________________________________________________

stin grami 3660 DuelManager.getInstance().broadcastToOppositTeam(this, update);

        }

}

8a valis to java code

__________________________________________

// Custom PVP Color System - Start
public void updatePvPColor(int pvpKillAmount)
{
	if (Config.PVP_COLOR_SYSTEM_ENABLED)
	{
		//Check if the character has GM access and if so, let them be.
		if (isGM())
			return;
		{
			if ((pvpKillAmount >= (Config.PVP_AMOUNT1)) && (pvpKillAmount <= (Config.PVP_AMOUNT2)))
			{
				getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT1);
		}
			else if ((pvpKillAmount >= (Config.PVP_AMOUNT2)) && (pvpKillAmount <= (Config.PVP_AMOUNT3)))
			{
				getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT2);
			}
			else if ((pvpKillAmount >= (Config.PVP_AMOUNT3)) && (pvpKillAmount <= (Config.PVP_AMOUNT4)))
			{
				getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT3);
			}
			else if ((pvpKillAmount >= (Config.PVP_AMOUNT4)) && (pvpKillAmount <= (Config.PVP_AMOUNT5)))
			{
				getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT4);
			}
			else if (pvpKillAmount >= (Config.PVP_AMOUNT5))
			{
				getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT5);				}
		}
	}
}
//Custom PVP Color System - End

// Custom Pk Color System - Start
public void updatePkColor(int pkKillAmount)
{
	if (Config.PK_COLOR_SYSTEM_ENABLED)
	{
		//Check if the character has GM access and if so, let them be, like above.
		if (isGM())
			return;
		{
			if ((pkKillAmount >= (Config.PK_AMOUNT1)) && (pkKillAmount <= (Config.PVP_AMOUNT2)))
			{
				getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT1);
			}
			else if ((pkKillAmount >= (Config.PK_AMOUNT2)) && (pkKillAmount <= (Config.PVP_AMOUNT3)))
			{
				getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT2);
			}
			else if ((pkKillAmount >= (Config.PK_AMOUNT3)) && (pkKillAmount <= (Config.PVP_AMOUNT4)))
			{
				getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT3);
			}
			else if ((pkKillAmount >= (Config.PK_AMOUNT4)) && (pkKillAmount <= (Config.PVP_AMOUNT5)))
			{
				getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT4);
			}
			else if (pkKillAmount >= (Config.PK_AMOUNT5))
			{
				getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT5);
			}
		}
	}
}
//Custom Pk Color System - End

________________________________________________

stin grami 4996          // Add karma to attacker and increase its PK counter

        setPvpKills(getPvpKills() + 1);

8a valis java code

_____________________________________________

      //Update the character's name color if they reached any of the 5 PvP levels.
        updatePvPColor(getPvpKills());
        broadcastUserInfo();

__________________________________

stin grami 5047          setPkKills(getPkKills() + 1);

        setKarma(getKarma() + newKarma)

_________________________________

 
      //Update the character's title color if they reached any of the 5 PK levels.
        updatePkColor(getPkKills());
        broadcastUserInfo();

        _____________________________________

telos

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...