02-09-2009, 11:28 PM
|
#5 (permalink)
|
|
Membro - General
Registrado em: Jun 2009
Posts: 232
Agradecido 83 Vezes em 31 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
|
Uma coisa que fico perdido as vezes e o seguinte:
tenho esse Codigo que vc uso como exemplo:
ndex: /Trunk/L2_GameServer/java/config/secretwarez.properties
===================================================================
--- /Trunk/L2_GameServer/java/config/secretwarez.properties (revision 37)
+++ /Trunk/L2_GameServer/java/config/secretwarez.properties (revision 38)
@@ -121,2 +121,9 @@
# UseDefaultSystem need to be False!
UseCostumSystem = False
+
+#---------------------------------------------------------------
+# Character settings -
+#---------------------------------------------------------------
+# Allow costum starting lvl False by default
+# lvl 85 and 100% instantly
+CostumStartLvl = False
Index: /Trunk/L2_GameServer/java/net/sf/l2j/Config.java
===================================================================
--- /Trunk/L2_GameServer/java/net/sf/l2j/Config.java (revision 37)
+++ /Trunk/L2_GameServer/java/net/sf/l2j/Config.java (revision 38)
@@ -704,4 +704,5 @@
public static boolean DEFAULT_PK_SYSTEM;
public static boolean COSTUM_PK_SYSTEM;
+ public static boolean ALLOW_CREATE_LVL;
//--------------------------------------------------
@@ -1383,4 +1384,5 @@
DEFAULT_PK_SYSTEM = Boolean.parseBoolean(secretwarez.getProperty("UseDefaultSystem", "True"));
COSTUM_PK_SYSTEM = Boolean.parseBoolean(secretwarez.getProperty("UseCostumSystem", "False"));
+ ALLOW_CREATE_LVL = Boolean.parseBoolean(secretwarez.getProperty("CostumStartLvl", "False"));
}
catch (Exception e)
Index: /Trunk/L2_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java
===================================================================
--- /Trunk/L2_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java (revision 7)
+++ /Trunk/L2_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java (revision 38)
@@ -67,4 +67,5 @@
private byte _hairColor;
private byte _face;
+ private long _exp;
No caso como saber onde por o inicio do codigo no arquivo java?
No caso essa linha
@@ -704,4 +704,5 @@
public static boolean DEFAULT_PK_SYSTEM;
public static boolean COSTUM_PK_SYSTEM;
+ public static boolean ALLOW_CREATE_LVL;
Como saber onde entra no Arquivo java?
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
package net.sf.l2j;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.logging.Logger;
import javolution.util.FastList;
import javolution.util.FastMap;
import net.sf.l2j.gameserver.util.FloodProtectorConfig;
import net.sf.l2j.gameserver.util.StringUtil;
public final class Config
{
protected static final Logger _log = Logger.getLogger(Config.class.getName());
Muitas vezes pego alguns codigos e nao sei onde comecar add a linha,como descobrir isso?
igual esse que vc postou,seguindo pelo meus eu nao saberia onde iniciar pra add ele..?
Nota se que em uma parte no inicio esta assim:
[CODE]
ndex: /Trunk/L2_GameServer/java/config/secretwarez.properties
===================================================================
--- /Trunk/L2_GameServer/java/config/secretwarez.properties (revision 37)
+++ /Trunk/L2_GameServer/java/config/secretwarez.properties (revision 38)
onde esta secretwarez estava com outro nome de 1 forum, porem onde achar esse local correto?
|
|
|