Jump to content

Recommended Posts

Posted

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

 

Posted

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!

Posted

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
Posted

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..

Posted

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...

Posted

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..

Posted

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

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
Reply to this topic...

×   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...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock