Skip to content

Instantly share code, notes, and snippets.

@St3eT
Created April 5, 2013 18:00
Show Gist options
  • Save St3eT/5321314 to your computer and use it in GitHub Desktop.
Save St3eT/5321314 to your computer and use it in GitHub Desktop.
Patch for 20 recommend on first login
### 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 5806)
+++ java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (working copy)
@@ -1113,6 +1113,9 @@
player.setBaseClass(player.getClassId());
// Kept for backwards compatibility.
player.setNewbie(1);
+ // Give 20 recommend
+ player.setRecomLeft(20);
+
// Add the player in the characters table of the database
boolean ok = player.createDb();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment