CrazyDeagle Posted January 1, 2010 Posted January 1, 2010 Hello every Body i have a little question ask you. http://www.maxcheaters.com/forum/index.php?topic=28059.0 My question is: + // 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 If i understand If the player have the some PVP he will have a name color And if the player have some PK he will have a tittle color Right? But if: PVP = Name Color PK = Tittle Color But why the Subject is PVP Color System? and not PVP/PK COlor system? Also i have a request I want PVP = Name Color PVP = Tittle Color I try delete all the Pk and remplace By Pvp but when i compile some error. Who can make this for me please
0 Coyote™ Posted January 2, 2010 Posted January 2, 2010 ENTERWORLD: + // ================================================================================= + // 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.getPvPKills()>=(Config.PVP_TITLE_AMOUNT1) && (Config.PVPTITLE_COLOR_SYSTEM_ENABLED)) activeChar.updatePvPColor(activeChar.getPvPKills()); + // Color System checks - End ======================================================= + // ================================================================================= L2PCINSTANCE + // 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 PVP Title Color System - Start + public void updatePvPTitleColor(int pvpKillAmount) + { + if (Config.PVPTITLE_COLOR_SYSTEM_ENABLED) + { + //Check if the character has GM access and if so, let them be, like above. + if (isGM()) + return; + { + if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT1)) && (pkKillAmount <= (Config.PVP_AMOUNT2))) + { + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT1); + } + else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT2)) && (pkKillAmount <= (Config.PVP_AMOUNT3))) + { + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT2); + } + else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT3)) && (pkKillAmount <= (Config.PVP_AMOUNT4))) + { + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT3); + } + else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT4)) && (pkKillAmount <= (Config.PVP_AMOUNT5))) + { + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT4); + } + else if (pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT5)) + { + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT5); + } + } + } + } + //Custom PVP Title Color System - End + @Override public final void updateEffectIcons(boolean partyOnly) { -4996,6 +5065,10 @@ // Add karma to attacker and increase its PK counter setPvpKills(getPvpKills() + 1); + //Update the character's name color if they reached any of the 5 PvP levels. + updatePvPColor(getPvpKills()); + broadcastUserInfo(); + // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter sendPacket(new UserInfo(this)); } -5047,6 +5120,10 @@ setPkKills(getPkKills() + 1); setKarma(getKarma() + newKarma); + //Update the character's title color if they reached any of the 5 PK levels. + updatePvPTitleColor(getPvPKills()); + broadcastUserInfo(); + // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter sendPacket(new UserInfo(this)); } Don't forget: You must add the stuff that has a "+" in the beginning of the line..
0 CrazyDeagle Posted January 2, 2010 Author Posted January 2, 2010 Edit: Sorry for the double Post Ok Coyote i try and i have a error [javac] C:\xxx\xxx\xxx\L2JTeon-Core\java\net\sf\l2j\Config.java:2705: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT1 [javac] location: class net.sf.l2j.Config [javac] TITLE_COLOR_FOR_PVP_AMOUNT1 = Integer.decode("0x" + L2JTeonCustom.getProperty("TitleForAmount1", "DDC0CB")); [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\Config.java:2706: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT2 [javac] location: class net.sf.l2j.Config [javac] TITLE_COLOR_FOR_PVP_AMOUNT2 = Integer.decode("0x" + L2JTeonCustom.getProperty("TitleForAmount2", "808080")); [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\Config.java:2707: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT3 [javac] location: class net.sf.l2j.Config [javac] TITLE_COLOR_FOR_PVP_AMOUNT3 = Integer.decode("0x" + L2JTeonCustom.getProperty("TitleForAmount3", "808080")); [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\Config.java:2708: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT4 [javac] location: class net.sf.l2j.Config [javac] TITLE_COLOR_FOR_PVP_AMOUNT4 = Integer.decode("0x" + L2JTeonCustom.getProperty("TitleForAmount4", "FF0000")); [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\Config.java:2709: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT5 [javac] location: class net.sf.l2j.Config [javac] TITLE_COLOR_FOR_PVP_AMOUNT5 = Integer.decode("0x" + L2JTeonCustom.getProperty("TitleForAmount5", "000000")); [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3713: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT1 [javac] location: class net.sf.l2j.Config [javac] if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT1)) && (pvpKillAmount <= (Config.PVP_AMOUNT2))) [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3713: illegal start of type [javac] if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT1)) && (pvpKillAmount <= (Config.PVP_AMOUNT2))) [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3715: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT1 [javac] location: class net.sf.l2j.Config [javac] getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT1); [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3717: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT2 [javac] location: class net.sf.l2j.Config [javac] else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT2)) && (pvpKillAmount <= (Config.PVP_AMOUNT3))) [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3717: illegal start of type [javac] else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT2)) && (pvpKillAmount <= (Config.PVP_AMOUNT3))) [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3719: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT2 [javac] location: class net.sf.l2j.Config [javac] getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT2); [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3721: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT3 [javac] location: class net.sf.l2j.Config [javac] else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT3)) && (pvpKillAmount <= (Config.PVP_AMOUNT4))) [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3721: illegal start of type [javac] else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT3)) && (pvpKillAmount <= (Config.PVP_AMOUNT4))) [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3723: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT3 [javac] location: class net.sf.l2j.Config [javac] getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT3); [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3725: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT4 [javac] location: class net.sf.l2j.Config [javac] else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT4)) && (pvpKillAmount <= (Config.PVP_AMOUNT5))) [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3725: illegal start of type [javac] else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT4)) && (pvpKillAmount <= (Config.PVP_AMOUNT5))) [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3727: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT4 [javac] location: class net.sf.l2j.Config [javac] getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT4); [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3729: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT5 [javac] location: class net.sf.l2j.Config [javac] else if (pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT5)) [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3729: illegal start of type [javac] else if (pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT5)) [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3731: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT5 [javac] location: class net.sf.l2j.Config [javac] getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT5); [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:4920: cannot find symbol [javac] symbol : method getPvPKills() [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2PcInstance [javac] updatePvPTitleColor(getPvPKills()); [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\network\clientpackets\EnterWorld.java:275: cannot find symbol [javac] symbol : method getPvPKills() [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2PcInstance [javac] if (activeChar.getPvPKills()>=(Config.PVP_TITLE_AMOUNT1) && (Config.PVP_TITLE_COLOR_SYSTEM_ENABLED)) activeChar.updatePvPColor(activeChar.getPvPKills()); [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\network\clientpackets\EnterWorld.java:275: cannot find symbol [javac] symbol : method getPvPKills() [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2PcInstance [javac] if (activeChar.getPvPKills()>=(Config.PVP_TITLE_AMOUNT1) && (Config.PVP_TITLE_COLOR_SYSTEM_ENABLED)) activeChar.updatePvPColor(activeChar.getPvPKills()); [javac] ^ [javac] Note: C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\GeoEngine.java uses or overrides a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] 23 errors BUILD FAILED here > http://www.zshare.net/download/706840911bda2bd6/ you have my L2PCinstance/ENTERWORLD/Config thanks for your help
0 Coyote™ Posted January 2, 2010 Posted January 2, 2010 Edit: Sorry for the double Post Ok Coyote i try and i have a error [javac] C:\xxx\xxx\xxx\L2JTeon-Core\java\net\sf\l2j\Config.java:2705: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT1 [javac] location: class net.sf.l2j.Config [javac] TITLE_COLOR_FOR_PVP_AMOUNT1 = Integer.decode("0x" + L2JTeonCustom.getProperty("TitleForAmount1", "DDC0CB")); [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\Config.java:2706: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT2 [javac] location: class net.sf.l2j.Config [javac] TITLE_COLOR_FOR_PVP_AMOUNT2 = Integer.decode("0x" + L2JTeonCustom.getProperty("TitleForAmount2", "808080")); [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\Config.java:2707: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT3 [javac] location: class net.sf.l2j.Config [javac] TITLE_COLOR_FOR_PVP_AMOUNT3 = Integer.decode("0x" + L2JTeonCustom.getProperty("TitleForAmount3", "808080")); [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\Config.java:2708: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT4 [javac] location: class net.sf.l2j.Config [javac] TITLE_COLOR_FOR_PVP_AMOUNT4 = Integer.decode("0x" + L2JTeonCustom.getProperty("TitleForAmount4", "FF0000")); [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\Config.java:2709: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT5 [javac] location: class net.sf.l2j.Config [javac] TITLE_COLOR_FOR_PVP_AMOUNT5 = Integer.decode("0x" + L2JTeonCustom.getProperty("TitleForAmount5", "000000")); [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3713: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT1 [javac] location: class net.sf.l2j.Config [javac] if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT1)) && (pvpKillAmount <= (Config.PVP_AMOUNT2))) [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3713: illegal start of type [javac] if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT1)) && (pvpKillAmount <= (Config.PVP_AMOUNT2))) [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3715: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT1 [javac] location: class net.sf.l2j.Config [javac] getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT1); [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3717: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT2 [javac] location: class net.sf.l2j.Config [javac] else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT2)) && (pvpKillAmount <= (Config.PVP_AMOUNT3))) [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3717: illegal start of type [javac] else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT2)) && (pvpKillAmount <= (Config.PVP_AMOUNT3))) [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3719: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT2 [javac] location: class net.sf.l2j.Config [javac] getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT2); [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3721: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT3 [javac] location: class net.sf.l2j.Config [javac] else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT3)) && (pvpKillAmount <= (Config.PVP_AMOUNT4))) [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3721: illegal start of type [javac] else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT3)) && (pvpKillAmount <= (Config.PVP_AMOUNT4))) [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3723: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT3 [javac] location: class net.sf.l2j.Config [javac] getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT3); [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3725: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT4 [javac] location: class net.sf.l2j.Config [javac] else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT4)) && (pvpKillAmount <= (Config.PVP_AMOUNT5))) [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3725: illegal start of type [javac] else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT4)) && (pvpKillAmount <= (Config.PVP_AMOUNT5))) [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3727: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT4 [javac] location: class net.sf.l2j.Config [javac] getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT4); [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3729: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT5 [javac] location: class net.sf.l2j.Config [javac] else if (pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT5)) [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3729: illegal start of type [javac] else if (pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT5)) [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3731: cannot find symbol [javac] symbol : variable TITLE_COLOR_FOR_PVP_AMOUNT5 [javac] location: class net.sf.l2j.Config [javac] getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT5); [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:4920: cannot find symbol [javac] symbol : method getPvPKills() [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2PcInstance [javac] updatePvPTitleColor(getPvPKills()); [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\network\clientpackets\EnterWorld.java:275: cannot find symbol [javac] symbol : method getPvPKills() [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2PcInstance [javac] if (activeChar.getPvPKills()>=(Config.PVP_TITLE_AMOUNT1) && (Config.PVP_TITLE_COLOR_SYSTEM_ENABLED)) activeChar.updatePvPColor(activeChar.getPvPKills()); [javac] ^ [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\network\clientpackets\EnterWorld.java:275: cannot find symbol [javac] symbol : method getPvPKills() [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2PcInstance [javac] if (activeChar.getPvPKills()>=(Config.PVP_TITLE_AMOUNT1) && (Config.PVP_TITLE_COLOR_SYSTEM_ENABLED)) activeChar.updatePvPColor(activeChar.getPvPKills()); [javac] ^ [javac] Note: C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\GeoEngine.java uses or overrides a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] 23 errors BUILD FAILED here > http://www.zshare.net/download/706840911bda2bd6/ you have my L2PCinstance/ENTERWORLD/Config thanks for your help asdsadsadasdsadsadsadsa I will make a patch and share ti 2day >_> EDIT: I found the typos that ruinned it. I will rework on teon's pvp system and give you the patch. EDIT 2: Well, it was not working because of typos. I fixed 'em tho and the code works fine. http://www.maxcheaters.com/forum/index.php?topic=111514.0
0 CrazyDeagle Posted January 2, 2010 Author Posted January 2, 2010 ok if i understand the Code for the pvp system is this link: http://www.maxcheaters.com/forum/index.php?topic=111514.0 ??
0 Coyote™ Posted January 2, 2010 Posted January 2, 2010 ok if i understand the Code for the pvp system is this link: http://www.maxcheaters.com/forum/index.php?topic=111514.0 ?? yes. you couldn't add it cuz: 1) Vago's patch had mistakes 2) I had made some typos like.. instead of getPvp, I was writing getPvP.
0 CrazyDeagle Posted January 2, 2010 Author Posted January 2, 2010 Ok for me the Compile is Ok Just have the problem with the Geoengine.java but not real a problem (i think) i will try the server tomorrow, now go to sleep xD Thanks Coyote real good Job :D
0 Coyote™ Posted January 2, 2010 Posted January 2, 2010 Ok for me the Compile is Ok Just have the problem with the Geoengine.java but not real a problem (i think) i will try the server tomorrow, now go to sleep xD Thanks Coyote real good Job :D thanks. BTW Geoengine is not a problem caused because of the use of my code. You must have done something different, or l2jteon has done something.
0 HammerV2 Posted January 3, 2010 Posted January 3, 2010 I already made this changes and work for me, PVP= Name/Title color, but intrepid closed it <.<. http://www.maxcheaters.com/forum/index.php?topic=109406.0
0 CrazyDeagle Posted January 3, 2010 Author Posted January 3, 2010 xD yeh thanks you but is for CT2.3 and my pack is a interlude don't have the same place. but thanks you every people
0 jorgeromero Posted February 16, 2010 Posted February 16, 2010 Thanks for Share!! Perfect work in l2jserver!! :)
0 Commodus Posted February 16, 2010 Posted February 16, 2010 Thanks for Share!! Perfect work in l2jserver!! :) Thanks for share in request help section ? -.-' First warning. Locked.
Question
CrazyDeagle
Hello every Body i have a little question ask you.
http://www.maxcheaters.com/forum/index.php?topic=28059.0
My question is:
If i understand
If the player have the some PVP he will have a name color
And if the player have some PK he will have a tittle color
Right?
But if:
PVP = Name Color
PK = Tittle Color
But why the Subject is PVP Color System? and not PVP/PK COlor system?
Also i have a request
I want
PVP = Name Color
PVP = Tittle Color
I try delete all the Pk and remplace By Pvp but when i compile some error.
Who can make this for me please
27 answers to this question
Recommended Posts