Skip to content

{request}java code

Featured Replies

mporei kapios na me kanei share 1 code pou na lei oti otan enas char ginete nobless tote na exei kai prasino name.[an ginete,plz kante to post]

mono to code kante post oxi pou mpenei klp

mporei kapios na me kanei share 1 code pou na lei oti otan enas char ginete nobless tote na exei kai prasino name.[an ginete,plz kante to post]

mono to code kante post oxi pou mpenei klp

θα σου φτιάξω ένα ευχαριστώ για την ιδέα xD κάνε pm σε 20 msn

if(activeChar.isNoble())
{
activeChar.getAppearance().setNameColor(to kodiko tou color);
return;
}

nomizo etc ine

  • Author

if(activeChar.isNoble())
{
activeChar.getAppearance().setNameColor(to kodiko tou color);
return;
}

nomizo etc ine

ty auto akrivos me ipe kai 1 alos oraios ventic

ty auto akrivos me ipe kai 1 alos oraios ventic

s lu8hke to problhma h 8es na rotisis tpt alo?

ama 8es mporo na sto kano kai me config

  • Author

s lu8hke to problhma h 8es na rotisis tpt alo?

ama 8es mporo na sto kano kai me config

GIA KANTO ..:P

GIA KANTO ..:P

miso leptaki anoigo eclipse kai to kano patch kai to post edo.8a kano edit

  • Author

miso leptaki anoigo eclipse kai to kano patch kai to post edo.8a kano edit

soz pou mporei na se prizw .....euxaristw gia ton kopo s pantos file  m.Thanks kai se ligo 8a se kanw pm na se pw kati alo pou 8elw

Index: java/net/sf/l2j/Config.java
===================================================================
--- java/net/sf/l2j/Config.java	(revision 4088)
+++ java/net/sf/l2j/Config.java	(working copy)
@@ -881,6 +881,9 @@
    public static boolean L2JMOD_WEDDING_SAMESEX;
    public static boolean L2JMOD_WEDDING_FORMALWEAR;
    public static int L2JMOD_WEDDING_DIVORCE_COSTS;
+    
+    public static boolean ENABLE_NOBLESS_COLOR;
+    public static int NOBLESS_COLOR_NAME;

    // Packet information
    /** Count the amount of packets per minute ? */
@@ -1858,6 +1861,9 @@
                L2JMOD_WEDDING_SAMESEX                  = Boolean.parseBoolean(L2JModSettings.getProperty("WeddingAllowSameSex", "False"));
                L2JMOD_WEDDING_FORMALWEAR               = Boolean.parseBoolean(L2JModSettings.getProperty("WeddingFormalWear", "True"));
                L2JMOD_WEDDING_DIVORCE_COSTS            = Integer.parseInt(L2JModSettings.getProperty("WeddingDivorceCosts", "20"));
+                
+                ENABLE_NOBLESS_COLOR                    = Boolean.parseBoolean(L2JModSettings.getProperty("EnableNoblessColor", "False"));
+                NOBLESS_COLOR_NAME                      = Integer.decode("0x" + L2JModSettings.getProperty("NoblessColorName", "000000"));

                if (TVT_EVENT_PARTICIPATION_NPC_ID == 0)
                {
Index: java/config/l2jmods.properties
===================================================================
--- java/config/l2jmods.properties	(revision 4088)
+++ java/config/l2jmods.properties	(working copy)
@@ -132,3 +132,13 @@
# ex.: 1;2;3;4;5;6
# no ";" at the start or end
TvTEventDoorsCloseOpenOnStartEnd =
+
+#---------------------------------------------------------------
+# Nobless Color Name                                              -
+#---------------------------------------------------------------
+# Enable Nobless Color Name?
+# Deafult: False
+EnableNoblessColor = False
+
+# Set Nobless Color
+NoblessColorName = 000000
Index: java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java
===================================================================
--- java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java	(revision 4088)
+++ java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java	(working copy)
@@ -174,6 +174,14 @@
            engage(activeChar);
            notifyPartner(activeChar,activeChar.getPartnerId());
        }
+        
+        if (Config.ENABLE_NOBLESS_COLOR)
+        {
+        	if (activeChar.isNoble())
+        	{
+        	    activeChar.getAppearance().setNameColor(Config.NOBLESS_COLOR_NAME);
+        	}
+        

        if (activeChar.getAllEffects() != null)
        {
@@ -347,6 +355,7 @@
            activeChar.sendPacket(new GameGuardQuery());*/

        TvTEvent.onLogin(activeChar);
+        }
	}

    /**

 

Molis tora to kana.Test it kai pes m

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.