Skip to content

Instantly share code, notes, and snippets.

@LucusAngel
Created October 27, 2014 21:18
Show Gist options
  • Save LucusAngel/9b5ba7df8101a65bf812 to your computer and use it in GitHub Desktop.
Save LucusAngel/9b5ba7df8101a65bf812 to your computer and use it in GitHub Desktop.
Custom title for new characters
### Eclipse Workspace Patch 1.0
#P L2J_Server_BETA
Index: java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (revision 6665)
+++ java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (working copy)
@@ -935,6 +935,8 @@
player.setNewbie(1);
// Give 20 recommendations
player.setRecomLeft(20);
+ // Set custom title
+ player.setTitle("Uber custom title!");
// Add the player in the characters table of the database
return player.createDb() ? player : null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment