Index: D:/workspace/L2_GameServer/java/config/l2jmods.properties
===================================================================
--- D:/workspace/L2_GameServer/java/config/l2jmods.properties (revision 2739)
+++ D:/workspace/L2_GameServer/java/config/l2jmods.properties (working copy)
@@ -161,4 +161,10 @@
#----------------------------------
EnableWarehouseSortingClan = False
EnableWarehouseSortingPrivate = False
-EnableWarehouseSortingFreight = False
\ No newline at end of file
+EnableWarehouseSortingFreight = False
+
+# Set this option to true to enable custom titles on new chars.
+# Also replace Welcome with title you want.
+
+CharTitle = false
+CharAddTitle = Welcome
Index: D:/workspace/L2_GameServer/java/net/sf/l2j/Config.java
===================================================================
--- D:/workspace/L2_GameServer/java/net/sf/l2j/Config.java (revision 2739)
+++ D:/workspace/L2_GameServer/java/net/sf/l2j/Config.java (working copy)
@@ -569,6 +569,18 @@
/** ************************************************** **/
/** ************************************************** **/
+ /** Custom Title Settings -Begin **/
+ /** ************************************************** **/
+
+ public static boolean CHAR_TITLE;
+ /** This is the new players title. */
+ public static String ADD_CHAR_TITLE;
+
+ /** ************************************************** **/
+ /** Custom Title Settings -End **/
+ /** ************************************************** **/
+
+ /** ************************************************** **/
/** NPC Settings -Begin **/
/** ************************************************** **/
@@ -1900,6 +1912,10 @@
BANKING_SYSTEM_ENABLED = Boolean.parseBoolean(L2JModSettings.getProperty("BankingEnabled", "false"));
BANKING_SYSTEM_GOLDBARS = Integer.parseInt(L2JModSettings.getProperty("BankingGoldbarCount", "1"));
BANKING_SYSTEM_ADENA = Integer.parseInt(L2JModSettings.getProperty("BankingAdenaCount", "500000000"));
+
+ CHAR_TITLE = Boolean.parseBoolean(L2JModSettings.getProperty("CharTitle", "false"));
+ ADD_CHAR_TITLE = L2JModSettings.getProperty("CharAddTitle", "Welcome");
+
}
catch (Exception e)
{
Index: D:/workspace/L2_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java
===================================================================
--- D:/workspace/L2_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java (revision 2739)
+++ D:/workspace/L2_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java (working copy)
@@ -174,8 +174,13 @@
newChar.addAdena("Init", Config.STARTING_ADENA, null, false);
newChar.setXYZInvisible(template.spawnX, template.spawnY, template.spawnZ);
- newChar.setTitle("");
+
+ if (Config.CHAR_TITLE)
+ newChar.setTitle(Config.ADD_CHAR_TITLE);
+ else
+ newChar.setTitle("");
+
L2ShortCut shortcut;
//add attack shortcut
shortcut = new L2ShortCut(0,0,3,2,-1,1);