Jump to content
  • 0

Title - Name Color Changer For Acis


Rokit

Question

11 answers to this question

Recommended Posts

  • 0

What script? The whole thing works by changing an integer value at the CharInfo packet...

 

 

And how it must work.? 

 

 

It just should work, best choice for item in shop would be very nice. Standard npc with dialogue. Can't find anything for acis.

Edited by Rokit
Link to comment
Share on other sites

  • 0

Then i will give you a help....admin commands have this..check it and do your itemhandler..and html thats it

 

 

You mean this? 

# Name color for those matching the above MasterAccess AccessLevel.
# Default: 00CCFF (golden color)
MasterNameColor = 00CCFF

Hm.. interesting way. How I can use it in npc html file ? Can you write example or smth I didn't understand... Really... 

Edited by Rokit
Link to comment
Share on other sites

  • 0

No way...

Just make your html buttons and your bypasses...

Nothing hard

 

 

Nice.. I began to understand what you mean. I found this code. You had in mind this ? 

<aCar name="admin_setcolor" accessLevel="1" />
<aCar name="admin_settcolor" accessLevel="1" />

I created button and everything working but i should everytime target myself. And now my question is. How start change color without target myself ??? Here is my html code:

 

<table width=300 cellspacing=1>
<tr>
<td align=CENTER><a action="bypass -h  admin_setcolor FFFFFF"><font color=0099FF>Choose</font></a></td>
<td align=CENTER><a action="bypass -h  admin_setcolor FF0000"><font color=BF00FF>Choose</font></a></td>
</tr>
</table>
Link to comment
Share on other sites

  • 0





#P aCis_gameserver
Index: java/net/sf/l2j/gameserver/datatables/AccessLevels.java
===================================================================
--- java/net/sf/l2j/gameserver/datatables/AccessLevels.java (revision 190)
+++ java/net/sf/l2j/gameserver/datatables/AccessLevels.java (working copy)
@@ -39,7 +39,7 @@
public static final int USER_ACCESS_LEVEL_NUMBER = 0;

public static L2AccessLevel MASTER_ACCESS_LEVEL = new L2AccessLevel(MASTER_ACCESS_LEVEL_NUMBER, "Master Access", Config.MASTERACCESS_NAME_COLOR, Config.MASTERACCESS_TITLE_COLOR, null, true, true, true, true, true, true, true, true);
- public static L2AccessLevel USER_ACCESS_LEVEL = new L2AccessLevel(USER_ACCESS_LEVEL_NUMBER, "User", 0xFFFFFF, 0xFFFF77, null, false, false, false, true, false, true, true, true);
+ public static L2AccessLevel USER_ACCESS_LEVEL = new L2AccessLevel(USER_ACCESS_LEVEL_NUMBER, "User", Config.
NAME_COLOR, Config.NEWCHAR_TITLE_COLOR, null, false, false, false, true, false, true, true, true);

private final Map<Integer, L2AccessLevel> _accessLevels = new HashMap<>();

@@ -91,15 +91,15 @@
nameColor = Integer.decode("0xFFFFFF");
}

- int titleColor;
- try
- {
- titleColor = Integer.decode("0x" + attrs.getNamedItem("titleColor").getNodeValue());
- }
- catch (NumberFormatException nfe)
- {
- titleColor = Integer.decode("0x77FFFF");
- }
+ int titleColor;
+ try
+ {
+ titleColor = Integer.decode("0x" + attrs.getNamedItem("titleColor").getNodeValue());
+ }
+ catch (NumberFormatException nfe)
+ {
+ titleColor = Integer.decode("0xFFFFFF");
+ }

String childs = attrs.getNamedItem("childAccess").getNodeValue();
boolean isGm = Boolean.valueOf(attrs.getNamedItem("isGm").getNodeValue());
Index: java/net/sf/l2j/Config.java
===================================================================
--- java/net/sf/l2j/Config.java (revision 190)
+++ java/net/sf/l2j/Config.java (working copy)
@@ -377,6 +377,12 @@

/** Misc */
+ public static int NEWCHAR_TITLE_COLOR;
+ public static int NEWCHAR_NAME_COLOR;
@@ -1081,6 +1087,22 @@
{
final ExProperties players = initProperties(PLAYERS_FILE);
STARTING_ADENA = players.getProperty("StartingAdena", 100);
+ NEWCHAR_TITLE_COLOR = Integer.decode("0x" + players.getProperty("NewCharTitleColor", "00FF00"));
+ NEWCHAR_NAME_COLOR = Integer.decode("0x" + players.getProperty("NewCharNameColor", "00FF00"));

Index: config/players.properties
===================================================================
--- config/players.properties (revision 191)
+++ config/players.properties (working copy)
@@ -5,6 +5,26 @@
#Amount of adenas that a new character is given, default is 100
StartingAdena = 100

+# =================================
+# Name / Title Color for acis
+# =================================
+# Title color for new characters.
+# Default: FFFFFF
+NewCharTitleColor = FFFFFF
+# Name color for new characters.
+# Default: FFFFFF
+NewCharNameColor = FFFFFF

By : Williamss


Edited by l2jkain
Link to comment
Share on other sites

  • 0

 

#P aCis_gameserver
Index: java/net/sf/l2j/gameserver/datatables/AccessLevels.java
===================================================================
--- java/net/sf/l2j/gameserver/datatables/AccessLevels.java (revision 190)
+++ java/net/sf/l2j/gameserver/datatables/AccessLevels.java (working copy)
@@ -39,7 +39,7 @@
    public static final int USER_ACCESS_LEVEL_NUMBER = 0;
   
    public static L2AccessLevel MASTER_ACCESS_LEVEL = new L2AccessLevel(MASTER_ACCESS_LEVEL_NUMBER, "Master Access", Config.MASTERACCESS_NAME_COLOR, Config.MASTERACCESS_TITLE_COLOR, null, true, true, true, true, true, true, true, true);
-   public static L2AccessLevel USER_ACCESS_LEVEL = new L2AccessLevel(USER_ACCESS_LEVEL_NUMBER, "User", 0xFFFFFF, 0xFFFF77, null, false, false, false, true, false, true, true, true);
+   public static L2AccessLevel USER_ACCESS_LEVEL = new L2AccessLevel(USER_ACCESS_LEVEL_NUMBER, "User", Config.
NAME_COLOR, Config.NEWCHAR_TITLE_COLOR, null, false, false, false, true, false, true, true, true);
   
    private final Map<Integer, L2AccessLevel> _accessLevels = new HashMap<>();
   
@@ -91,15 +91,15 @@
                        nameColor = Integer.decode("0xFFFFFF");
                    }
                   
-                   int titleColor;
-                   try
-                   {
-                       titleColor = Integer.decode("0x" + attrs.getNamedItem("titleColor").getNodeValue());
-                   }
-                   catch (NumberFormatException nfe)
-                   {
-                       titleColor = Integer.decode("0x77FFFF");
-                   }
+                    int titleColor;
+                    try
+                    {
+                        titleColor = Integer.decode("0x" + attrs.getNamedItem("titleColor").getNodeValue());
+                    }
+                    catch (NumberFormatException nfe)
+                    {
+                        titleColor = Integer.decode("0xFFFFFF");
+                    }
                   
                    String childs = attrs.getNamedItem("childAccess").getNodeValue();
                    boolean isGm = Boolean.valueOf(attrs.getNamedItem("isGm").getNodeValue());
Index: java/net/sf/l2j/Config.java
===================================================================
--- java/net/sf/l2j/Config.java (revision 190)
+++ java/net/sf/l2j/Config.java (working copy)
@@ -377,6 +377,12 @@
   
    /** Misc */
+   public static int NEWCHAR_TITLE_COLOR;
+   public static int NEWCHAR_NAME_COLOR;
@@ -1081,6 +1087,22 @@
    {
        final ExProperties players = initProperties(PLAYERS_FILE);
        STARTING_ADENA = players.getProperty("StartingAdena", 100);
+       NEWCHAR_TITLE_COLOR = Integer.decode("0x" + players.getProperty("NewCharTitleColor", "00FF00"));
+       NEWCHAR_NAME_COLOR = Integer.decode("0x" + players.getProperty("NewCharNameColor", "00FF00"));

Index: config/players.properties
===================================================================
--- config/players.properties   (revision 191)
+++ config/players.properties   (working copy)
@@ -5,6 +5,26 @@
 #Amount of adenas that a new character is given, default is 100
 StartingAdena = 100

+# =================================
+#    Name / Title Color for acis
+# =================================
+# Title color for new characters.
+# Default: FFFFFF
+NewCharTitleColor = FFFFFF
+# Name color for new characters.
+# Default: FFFFFF
+NewCharNameColor = FFFFFF

By : Williamss 

 

 

Hi. :)  I insert this code without error. But how to use it in game now ? Not working with these bypass. Can you give some info more please ? Thank you. :)

<td align=CENTER><a action="bypass -h nameColor BF00FF"><font color=00FFFF>Choose</font></a></td>
<td align=CENTER><a action="bypass -h nameColor"><font color=FFFF00>Choose</font></a></td>

 

Esse código nao esta realizando função nenhuma, as configs não estão setadas -.-'

 

Yep.. I see. Can you give me a hint what to do next ?

Thanks.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


  • Posts

    • L2 Insignia High Five 20x MID SERVER FOCUSED ON OLYMPIAD | PVP | AUTOFARM       OPEN BETA TEST SERVER 3 MAY 2024   GRAND OPENING 10 MAY 2024    Rates: 📜 XP/SP 20x | Spoil 15x | Drop 10x | Adena 10x 📜     Server Features: 🔥 No Olf-T Shirt, No big over-enchant, No over-power Donate 🔥 🔥 VIP Gold Color Chat, Unique Olympiad Extra Points Engine, GvG Event 🔥 🔥 Auto-Farm, LoA and DV scheduled PvP Zone, Calendar Daily Reward 🔥 🔥 Castle Instance, Solo Instance, PvP Solo Rift, Dress me system, Adena Boxes 🔥        Website: https://www.l2insignia.com  Discord: https://discord.com/invite/yEgsrHn2hQ      
    • I am selling the essence project which includes versions 388 and 439 that have been running for over 2 years or (447 as custom PVP like Pride). I have a test server for you to test them out. If you are really interested in it then contact my seller at discord: kiwi7106. Price: 4000 Euro P/s: This is a project that I have spent a lot of money and time developing, so if you are not interested in it, please get out of this topic, thank you. P/s 2: If you find the price too expensive, it's best to skip this article and find another project and don't comment negatively on my topic, thank you.
    • Someone ask me for this, it should work on any client that has Kamael race, preview:     Installation - there are two ways to install depending on how you want to use it:   Method 1: If you want to completely replace the original, do:   Copy all lines from your armorgrp to Notepad++, press Ctrl+H, check the "match whole word" option and replace:   kamael.Mkamael_m000_w_ad00   by:   AvengersKamaelWings.Avengers_MKamael_m001_w_ad00   Then replace:   MKamael.Mkamael_m000_t00_w   by:   AvengersKamaelWings.MKamael_m001_t00_w   Now repeat the same process with the female, replace:   kamael.Fkamael_m000_w_ad00   by:   AvengersKamaelWings.Avengers_FKamael_m001_w_ad00   Then replace:   FKamael.Fkamael_m000_t00_w   by:   AvengersKamaelWings.FKamael_m001_t00_w   You're done, paste everything back into File Edit and save!   Method 2: If you only want to replace in specific sets, execute the above process only on the armorgrp of those sets.   Repack by: AvengersTeamBr Password: LadrãoDeFrango      
    • 用于解密、加密和编辑 .u 文件的工具。
  • Topics

×
×
  • Create New...