RєVєnGeR^ Posted October 5, 2009 Posted October 5, 2009 Hello folks... This is one of my 1st java codes , i want to thx stefoulis15 too much for helping me at configs ... Index: config/mods/customs.properties =================================================================== --- config/mods/customs.properties (revision 43) +++ config/mods/customs.properties (revision 44) @@ -77,4 +77,9 @@ WarriorTitleSystemEnabled = False MageTitleSystemEnabled = False + +#------------------------------------------------------------- +# Section: Custom Fight Stats Title System +#------------------------------------------------------------- +AllowFightStatsSystem = False #------------------------------------------------------------- Index: /java/com/l2jarchid/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- /java/com/l2jarchid/gameserver/model/actor/instance/L2PcInstance.java (revision 32) +++ /java/com/l2jarchid/gameserver/model/actor/instance/L2PcInstance.java (revision 44) @@ -5453,4 +5453,7 @@ broadcastUserInfo(); + FightStatsSystem(getPvpKills(), getPkKills()); + broadcastUserInfo(); + // Update the character's name color if they reached any of the 5 PvP // levels. @@ -5463,4 +5466,12 @@ } + public void FightStatsSystem(int pvpKillAmount, int pkKillAmount) + { + if (L2Config.ALLOW_FIGHT_STATS_SYSTEM) + { + activeChar.setTitle("PvPs:"+getPvpKills()+ "| PKs:"+getPkKills()+""); + } + } + public void PvpReward() { if (L2Config.PVP_REWARD_ENABLED) { Index: //java/com/l2jarchid/L2Config.java =================================================================== --- /java/com/l2jarchid/L2Config.java (revision 41) +++ /java/com/l2jarchid/L2Config.java (revision 44) @@ -1346,4 +1346,5 @@ public static int SIDE_BLOW_SUCCESS; public static boolean ENABLE_MODIFY_SKILL_DURATION; + public static boolean ALLOW_FIGHT_STATS_SYSTEM; //===================================================================================== public static FastList<Integer> ALLOWED_SKILLS_LIST = new FastList<Integer>(); @@ -1597,5 +1598,5 @@ ARCHID_BACK_TIMER = Integer.parseInt(CustomMod.getProperty("BackTimer", "30")); ARCHID_AWAY_PEACE_ZONE = Boolean.parseBoolean(CustomMod.getProperty("AwayOnlyInPeaceZone", "False")); - + ALLOW_FIGHT_STATS_SYSTEM = Boolean.parseBoolean(CustomMod.getProperty("AllowFightStatsSystem", "False")); CHAR_TITLE = Boolean.parseBoolean(CustomMod.getProperty("CharTitle", "false")); ADD_CHAR_TITLE = CustomMod.getProperty("CharAddTitle", "Welcome"); What is this i just posted? When you aply this code , inside the game , the players are gonna have theyr fight status on their titles .. example?! PvPs : 50 | PKs : 10 Thanks .. Working on L2J Archid
Stefoulis15 Posted October 5, 2009 Posted October 5, 2009 Good Work. I Must say. i'm surprised! i've never thought that something like this could be created. nice , nice. go on , i see u are stepping forward to java!
RєVєnGeR^ Posted October 5, 2009 Author Posted October 5, 2009 Good Work. I Must say. i'm surprised! i've never thought that something like this could be created. nice , nice. go on , i see u are stepping forward to java! Thanks teacher :P
Stefoulis15 Posted October 5, 2009 Posted October 5, 2009 Some packs have already it hmmm well mate , no offense but i havent seen it anywhere.. i mean , L2Emu / Archid / Free / Server / Official / Equal Doesnt have this. if there is any other team that has it , please inform me , and also Show me a link or sth , in order to check it. if u are right , i'll put the correct credits..
™Tekto StyleZ Posted October 5, 2009 Posted October 5, 2009 Equal had it. I have the pack:P I will send you the link to see it,in pm. Anw,keep on Rev^ ^
Intrepid Posted October 5, 2009 Posted October 5, 2009 honestly dont need to start these thing about equal have it or no here it is like it ok dont like it alt+F4... and dont call plz archid or equal to a server pack please thats humiliating against lineage...
Stefoulis15 Posted October 5, 2009 Posted October 5, 2009 nop. equal had it , but it wasnt working . i remember nsstop added it if im not mistaken.. and i remember that he was like oh , its not ready yet..
™Tekto StyleZ Posted October 5, 2009 Posted October 5, 2009 No,it worked:P I had it to my old server. And as I remember,every pvp/pk you took,it automatically update char's tittle.
xDunno Posted October 5, 2009 Posted October 5, 2009 Nice idea ;p thx for this code its usefull on pvp servers ;p U should add voice command like .Titleon .titleoff or smth b/c i think not all players whana pvp count title ;p
ĐarkSlayer Posted October 5, 2009 Posted October 5, 2009 indeed equal got it and its working but whatever keep on reve @Interpid i feel u :D
Grim. Posted October 5, 2009 Posted October 5, 2009 well i have seen it at l2java.... anyway good work reve-san
MaestroLuke Posted October 5, 2009 Posted October 5, 2009 Nothing special but really creative thanks for sharing
Horus Posted October 5, 2009 Posted October 5, 2009 i'm surprised! i've never thought that something like this could be created. No comments Stef.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now