Jump to content
  • 0

pvp pk colour system problem


anparask

Question

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() = 

Link to comment
Share on other sites

Recommended Posts

  • 0

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 :) )

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

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.



  • Posts

    • Well, sorry not sorry for resurrecting old topic, but I believe it's ultimately stupid to implement license checks like Vilmis did 🙂   private static String url = "jdbc:mysql://185.80.128.233/" + getData("Zm9ydW1fZGI="); private static String username = getData("bXJjb3B5cmlnaHQ="); private static String password = getData("Y29weXJpZ2h0XzEyMw=="); con = GlobalDB.getInstance().getConnection(); PreparedStatement statement; statement = con.prepareStatement("SELECT field_6 from core_pfields_content WHERE member_id = ?"); statement.setInt(1, Config.FORUM_USER_ID); ResultSet rset = statement.executeQuery();   This awesome way of coding things leaves us with base64-encoded credentials and DB exposed and accessible globally 😉 Btw he checks his licensing data from some plugin generated table his forum uses. Vilmis took action and ensured that mrcopyright user would have only needed accesses and rights for this operation. But he forgot to ensure that his INFORMATION_SCHEMA database would not be exposed and readable... That leads us to fully readable server variables like version used (10.1.26-MariaDB-0+deb9u1 - pretty ancient DB and OS, I'd assume). From here you can go south and do some kinky stuff, if you want and have knowledge for that. But who cares, right?   Ooh, table core_pfields_content field_6 is IP address which is checked by FORUM_USER_ID. Yep, you can query all IP addresses there (124 of them right now) and also do whatever you want with them! 🙂  The most fun part? Files source has been shared what, more than 2 years ago?  Vilmis still uses very same credentials and never changed it after sources exposure - who cares. Although, "sources" may be way too strong word here. If anyone still use paid Orion versions, I'd suggest packing your shit and leaving immediately, or at least fix this incompetent fool caused problems. It's obvious Vilmis don't care or maybe doesn't even know from the first place how to solve this problem (hint hint - tiny PHP Rest API microservice which would do absolutely the same but without exposing sensitive data?). By doing that, he exposes his infrastructure and YOUR data, and he does that for more than 2 years now 🙂 Developer of century!    
    • rename the l2.bin into l2.exe
    • L2LIVE.PRO- Dynamic Mid-rates Essence Seven Signs GRAND OPENING - July 5, 20:00 GMT+3 (EEST) TEST SERVER IS OPEN - COME AND CHECK IT OUT TODAY! Join our community and be part of it at: https://www.l2live.pro https://discord.gg/k3NMgR4Dmu   Server description * EXP/SP: Dynamic (x1- x100 based on your level, *before* Sayha and EXP buffs * Adena: x50 / Item Drop: x10 / Fishing EXP increased / Attribute EXP increased * Simplified gameplay to stay in the loop while not spending hours and hours farming * Starter Pack containing very useful items for beginners * MP replenishing potions with auto-consumption * No overpowered donations L2LIVE shop * All spellbook coupons, pet spellbook coupons and master books are sold via Game Assistant * Additionally you can buy SP pouches, enchanted talismans, pet training guides and various other consumables for Adena and L-Coin * More items such as cloaks, more talismans, agathions, belts, pendants, enchantment scrolls of various grades, evolution stones, etc will be added! Shop server as a shortcut, and all retail-like ways of earning items are still here! L-Coins * Drops with small change and in random amounts from Lv60+ monsters  * All raidbosses drop random amount of L-Coin Pouches generating up to 420 Lcoin per unit. **Grand Olympiad and Events** * Grand Olympiad is held week day * Format is 1v1, unlimited weekly fights  * Heroes are declared weekly at Sunday * There are three automated events - TvT, CTF and Deathmatch, running at evenings * Orc Fortress, Battle with Balok, Keber Hunter, Archievements Box, Daily Gift Calendar provisional events are active too Custom user commands * .offlineplay command, your character will keep playing till death or server restart * .offlineshop command, keeps your shop sitting until all items are purchased * .apon / .apoff - enable/disable HP/MP autoconsume And lots of other small improvements are waiting for you!   Join our community and be part of it at: https://www.l2live.pro https://discord.gg/k3NMgR4Dmu
  • Topics

×
×
  • Create New...