Jump to content
  • 0

[Help]Title


Question

Posted

Hello men...

[english]I have a realy big problem when someone logs in my server over his head says (title) JavaL2

how can i delete these stupid titles?

[greek]Γεια σας παιδια εχει γεινει κατι και οποιος μπει στο σερβερ μου εχει σαν τιτλο JavaL2

πως μπορω να το αφαιρεσω?????

Recommended Posts

  • 0
Posted

Index: java/net/sf/l2j/gameserver/clientpackets/CharacterCreate.java
===================================================================
--- java/net/sf/l2j/gameserver/clientpackets/CharacterCreate.java	(revision 4017)
+++ java/net/sf/l2j/gameserver/clientpackets/CharacterCreate.java	(working copy)
@@ -174,6 +174,9 @@

		newChar.setXYZInvisible(template.spawnX, template.spawnY, template.spawnZ);
		newChar.setTitle("");
+		
+		if (Config.CHAR_TITLE)
+			newChar.setTitle(Config.ADD_CHAR_TITLE);

		L2ShortCut shortcut;
		//add attack shortcut
Index: java/net/sf/l2j/Config.java
===================================================================
--- java/net/sf/l2j/Config.java	(revision 4017)
+++ java/net/sf/l2j/Config.java	(working copy)
@@ -881,6 +881,9 @@
     public static boolean L2JMOD_WEDDING_SAMESEX;
     public static boolean L2JMOD_WEDDING_FORMALWEAR;
     public static int L2JMOD_WEDDING_DIVORCE_COSTS;
+    
+    public static boolean CHAR_TITLE;
+    public static String  ADD_CHAR_TITLE;

     // Packet information
     /** Count the amount of packets per minute ? */
@@ -1858,6 +1861,9 @@
                 L2JMOD_WEDDING_SAMESEX                  = Boolean.parseBoolean(L2JModSettings.getProperty("WeddingAllowSameSex", "False"));
                 L2JMOD_WEDDING_FORMALWEAR               = Boolean.parseBoolean(L2JModSettings.getProperty("WeddingFormalWear", "True"));
                 L2JMOD_WEDDING_DIVORCE_COSTS            = Integer.parseInt(L2JModSettings.getProperty("WeddingDivorceCosts", "20"));
+                
+                CHAR_TITLE       = Boolean.parseBoolean(L2JModSettings.getProperty("CharTitle", "False"));
+                ADD_CHAR_TITLE   = L2JModSettings.getProperty("AddCharTitle", "Welcome");

                 if (TVT_EVENT_PARTICIPATION_NPC_ID == 0)
                 {
Index: java/config/l2jmods.properties
===================================================================
--- java/config/l2jmods.properties	(revision 4017)
+++ java/config/l2jmods.properties	(working copy)
@@ -132,3 +132,10 @@
# ex.: 1;2;3;4;5;6
# no ";" at the start or end
TvTEventDoorsCloseOpenOnStartEnd =
+
+#---------------------------------------------------------------
+# Custom Title                     -
+#---------------------------------------------------------------
+# Deafult: False
+CharTitle = False
+AddCharTitle = Welcome

 

Here is your code add it.

Work 100%

  • 0
Posted

this is code for eclipse ...

i ask you if i can fix it now ? :(

or i must start again?

what do you mean?

did you have any error or what?

 

  • 0
Posted

i mean i have my pack ready...

can i add it in the pack or i must delete it and make it again?

if you see prec pack you can't,if you use a compiled back then you should add it from eclipse,compile it and then replace your old files with the new ones,and open your server :)

  • 0
Posted

hmm i have deleted eclipse db

can you sent me the file with the non-title please?

can you give me a link? (i use interlude dot)

i have put protections i was working for 4 hours :(

i cant replease only that file?

  • 0
Posted

hmm i have deleted eclipse db

can you sent me the file with the non-title please?

can you give me a link? (i use interlude dot)

with the non-title?what do you mean man?

what do you want to give you exactly?

  • 0
Posted

the java file witch has not titles over character heads

( i ask you cus i cant compile again in this computer is kinda old and stucks all the time)

  • 0
Posted

clientpackets/CharacterCreate.java

 

search for newChar.setTitle("JavaL2");

clientpackets/CharacterCreate.java

 

search for newChar.setTitle("JavaL2");

clientpackets/CharacterCreate.java

 

search for newChar.setTitle("JavaL2");

clientpackets/CharacterCreate.java

 

search for newChar.setTitle("JavaL2");

Guest
This topic is now closed to further replies.


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