Jump to content
  • 0

{request}java code


Question

Posted

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

8 answers to this question

Recommended Posts

  • 0
Posted

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
  • 0
Posted

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

nomizo etc ine

  • 0
Posted

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

  • 0
Posted

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
  • 0
Posted

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.


×
×
  • Create New...