Jump to content

Recommended Posts

Posted
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)
		{

  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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