dimas19 Posted January 10, 2011 Posted January 10, 2011 Sto simeio if (Config.PLAYER_SPAWN_PROTECTION > 0) activeChar.setProtection(true); @@ -3660,7 +3661,75 @@ DuelManager.getInstance().broadcastToOppositTeam(this, update); } } merikoi den tha mporousan na vroun tin grammi epeidh eixes ksexasei na valeis oti prokeitai gia to l2Pcinstance kai oxi gia to enterworld :P Quote
AlexCardyz Posted February 27, 2011 Posted February 27, 2011 Someone has to L2JServer Epilogue? 7664! Greetings Quote
xBan1x Posted March 21, 2011 Posted March 21, 2011 I complied this no errors on L2j Freya Will post further updates ^^ //EDIT I was wrong by a lot 100 errors after manually inserting the patch :S Can anyone update this to Freya? Quote
Gogos™ Posted March 21, 2011 Posted March 21, 2011 I complied this no errors on L2j Freya Will post further updates ^^ //EDIT I was wrong by a lot 100 errors after manually inserting the patch :S Can anyone update this to Freya? maybe this? http://maxcheaters.com/forum/index.php?topic=28059.msg791307#msg791307 Quote
fLx Posted April 21, 2011 Posted April 21, 2011 Found this on Old L2jserver forum. Works very nice. Index: java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java =================================================================== activeChar.sendPacket(new QuestList()); loadTutorial(activeChar); + if (activeChar.getPvpKills()>100) activeChar.updatePvPColor(activeChar.getPvpKills()); + if (Config.PLAYER_SPAWN_PROTECTION > 0) activeChar.setProtection(true); Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== } } + public void updatePvPColor(int pvpKillAmount) + { + if (isGM()) return; + String colorCode = "0xFFFF77"; + if ((pvpKillAmount >= 500) && (pvpKillAmount <= 999)) colorCode = "0x006400"; + else if ((pvpKillAmount >= 1000) && (pvpKillAmount <= 1499)) colorCode = "0xec5e00"; + else if ((pvpKillAmount >= 1500) && (pvpKillAmount <= 1999)) colorCode = "0x00ffff"; + else if ((pvpKillAmount >= 2000) && (pvpKillAmount <= 2499)) colorCode = "0x0054ff"; + else if (pvpKillAmount >= 2500) colorCode = "0x0800ff";+ else colorCode = "0xFFFF77"; + getAppearance().setTitleColor(Integer.decode(colorCode)); + } + in hexadecimal just put colors you would like to use. Quote
xenewor Posted May 4, 2011 Posted May 4, 2011 I didnt found a guide for compile this code :( Im really interested on put pvp color system, someone can help me? Quote
xBan1x Posted July 11, 2011 Posted July 11, 2011 Found this on Old L2jserver forum. Works very nice. Index: java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java =================================================================== activeChar.sendPacket(new QuestList()); loadTutorial(activeChar); + if (activeChar.getPvpKills()>100) activeChar.updatePvPColor(activeChar.getPvpKills()); + if (Config.PLAYER_SPAWN_PROTECTION > 0) activeChar.setProtection(true); Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== } } + public void updatePvPColor(int pvpKillAmount) + { + if (isGM()) return; + String colorCode = "0xFFFF77"; + if ((pvpKillAmount >= 500) && (pvpKillAmount <= 999)) colorCode = "0x006400"; + else if ((pvpKillAmount >= 1000) && (pvpKillAmount <= 1499)) colorCode = "0xec5e00"; + else if ((pvpKillAmount >= 1500) && (pvpKillAmount <= 1999)) colorCode = "0x00ffff"; + else if ((pvpKillAmount >= 2000) && (pvpKillAmount <= 2499)) colorCode = "0x0054ff"; + else if (pvpKillAmount >= 2500) colorCode = "0x0800ff";+ else colorCode = "0xFFFF77"; + getAppearance().setTitleColor(Integer.decode(colorCode)); + } + in hexadecimal just put colors you would like to use. This way you are making everything hardcoded into the server you cannot change the colors after. I believe what most want is some config file that will allow us to easily change those colors when ever wanted :) Quote
KillingYouSoftly Posted August 1, 2011 Posted August 1, 2011 man this java/net/sf doesnt have my pack :S lol ? Quote
Fiou Posted October 27, 2011 Posted October 27, 2011 oh realy?DELETE THA SH1T IS BEST FULL ERROR JAVA CODE1!!!1!!1! Quote
Recommended Posts
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.