Jump to content

Recommended Posts

Posted

This is simple simple simple simple simple simple simple simple simple simple simple simple simple simplest thing ever,by the way since one friend request me to do, i did it(I know its share but with other way,btw)

Hope you will find it usefull :]

 

### Eclipse Workspace Patch 1.0
#P L2_GameServer_It
Index: java/net/sf/l2j/Config.java
===================================================================
--- java/net/sf/l2j/Config.java	(revision 20)
+++ java/net/sf/l2j/Config.java	(working copy)
@@ -886,6 +886,8 @@
     public static boolean L2JMOD_WEDDING_FORMALWEAR;
     public static int L2JMOD_WEDDING_DIVORCE_COSTS;
     
+    /** Noblesse At New Chars */
+    public static boolean ADD_NOBLESSE;
     /** Custom Tittle When new char Login */
     public static boolean CHAR_TITLE;
     public static String ADD_CHAR_TITLE;
@@ -1883,6 +1885,8 @@
                 L2JMOD_WEDDING_FORMALWEAR               = Boolean.parseBoolean(L2JModSettings.getProperty("WeddingFormalWear", "True"));
                 L2JMOD_WEDDING_DIVORCE_COSTS            = Integer.parseInt(L2JModSettings.getProperty("WeddingDivorceCosts", "20"));
                 
+                /** Noblesse At New Chars */
+                ADD_NOBLESSE                            = Boolean.parseBoolean(L2JModSettings.getProperty("NoblesseAtNewChars", "True"));
                 /** Custom Tittle When new Char Log In */
                  CHAR_TITLE              = Boolean.parseBoolean(L2JModSettings.getProperty("CharTitle", "true"));
                  ADD_CHAR_TITLE          = L2JModSettings.getProperty("CharAddTitle", "L2JValor Project");
Index: java/config/l2jmods.properties
===================================================================
--- java/config/l2jmods.properties	(revision 20)
+++ java/config/l2jmods.properties	(working copy)
@@ -145,4 +145,8 @@
+
+#This feature if true,give to all new chars Noblesse Status
+#Default:True
+NoblesseAtNewChars = True
\ No newline at end of file
Index: java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java
===================================================================
--- java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java	(revision 19)
+++ java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java	(working copy)
@@ -184,7 +184,14 @@
         	}
         }
         
-
+        if (Config.ADD_NOBLESSE)
+        {
+        	if (activeChar.getLevel() <= 2)
+        
+            activeChar.setNoble(true);
+            activeChar.sendMessage("[sRV]: Noblesse Status ADDED");
+        }
+        
         if (activeChar.getAllEffects() != null)
         {
             for (L2Effect e : activeChar.getAllEffects())

Posted

Whats the point of sharring things that takes few secs to build them in your mind :P.

Try to make something more complicated instead of such things with configs > code.

Posted

Whats the point of sharring things that takes few secs to build them in your mind :P.

Try to make something more complicated instead of such things with configs > code.

Cuze i rly lack of imagine if you any idea pleaze pm me and tell it,i cant think something rly new ...

if you can send me a pm(with any idea)

Posted

It wasn't really smart.

 

Whats the point to add noble ALL THE TIME at enter world?

 

At least there should be check if character is already noble.. anyway EnterWorld is not right place for it.

 

You said "For NEW chars"

 

Now think a bit where exactly u should put it  ;)

Posted

Code is wrong.

 

1) It's misplaced, you should add it at CreateCharacter.java

2) The message will be broad casted even if the character is higher level than 2. You should add brackets after your level check.

 

 

Please, before sharing, ensure that your code is efficient and working properly. Yet again, maxcheaters community appreciates your try and thanks you.

Guest
This topic is now closed to further replies.


×
×
  • Create New...