Jump to content

[share] Custom Starting GoldBar


Guma!

Recommended Posts

Index: /TrunK/L2JBrasil_CORE/java/config/L2JBrasil.properties
===================================================================
--- /TrunK/L2JBrasil_CORE/java/config/L2JBrasil.properties (revision 244)
+++ /TrunK/L2JBrasil_CORE/java/config/L2JBrasil.properties (revision 345)
@@ -2,4 +2,12 @@
#                L2jBrasil Custom File                       #
#=============================================================
+
+# This is the amount of goldbars that a new character starts their character with. 
+# Default: 0
+StartingGBCount = 0
+# This is the id of goldbars
+# Default : 3470
+StartingGBId = 3470
+	 
#---------------------------------------------------------------  
# Custom Start spawn.                                          -  
Index: /TrunK/L2JBrasil_CORE/java/com/it/br/Config.java
===================================================================
--- /TrunK/L2JBrasil_CORE/java/com/it/br/Config.java (revision 325)
+++ /TrunK/L2JBrasil_CORE/java/com/it/br/Config.java (revision 345)
@@ -947,4 +947,6 @@
    public static boolean   ALLOW_TRADEOFF_VOICE_COMMAND;
    public static boolean   OVER_ENCHANT_PROTECTION_ENABLED;
+   public static int       STARTING_GB_ID; 
+   public static long      STARTING_GB_COUNT; 
    public static boolean   STARTING_CUSTOM_ITEMS;
    public static List<int[]> STARTING_CUSTOM_ITEMS_F = new FastList<int[]>();
@@ -1345,4 +1347,6 @@
               ALLOW_TRADEOFF_VOICE_COMMAND = Boolean.parseBoolean(L2JBrasil.getProperty("TradeOffCommand","False"));
			  OVER_ENCHANT_PROTECTION_ENABLED = Boolean.parseBoolean(L2JBrasil.getProperty("OverEnchantProtection", "True"));
+              STARTING_GB_ID           = Integer.parseInt(L2JBrasil.getProperty("StartingGBId", "3470")); 
+              STARTING_GB_COUNT        = Long.parseLong(L2JBrasil.getProperty("StartingGBCount", "0")); 
			  STARTING_CUSTOM_ITEMS    = Boolean.parseBoolean(L2JBrasil.getProperty("AllowStartingCustomItems", "False"));
               RESTORE_EFFECTS_ON_SUBCLASS_CHANGE      = Boolean.parseBoolean(L2JBrasil.getProperty("RestoreEffectsOnSub", "False"));			  
Index: /TrunK/L2JBrasil_CORE/java/com/it/br/gameserver/clientpackets/CharacterCreate.java
===================================================================
--- /TrunK/L2JBrasil_CORE/java/com/it/br/gameserver/clientpackets/CharacterCreate.java (revision 325)
+++ /TrunK/L2JBrasil_CORE/java/com/it/br/gameserver/clientpackets/CharacterCreate.java (revision 345)
@@ -174,5 +174,5 @@

		newChar.addAdena("Init", Config.STARTING_ADENA, null, false);
-
+        newChar.addItem("Init", Config.STARTING_GB_ID, (int) Config.STARTING_GB_COUNT, null, false);
         if (Config.STARTING_CUSTOM_ITEMS)
		{

Link to comment
Share on other sites

  • 2 years later...

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