Jump to content

[Share]Name Color System


Emrys

Recommended Posts

  • 4 months later...
  • 3 weeks later...
  • 2 weeks later...

Index: java/config/l2jmods.properties

===================================================================

--- java/config/l2jmods.properties (revision 3427)

+++ java/config/l2jmods.properties (working copy)

@@ -248,4 +248,21 @@

# This option will enable core support for:

# Mana Drug (item ID 726), using skill ID 9007.

# Mana Potion (item ID 728), using skill ID 9008.

-EnableManaPotionSupport = False

\ No newline at end of file

+EnableManaPotionSupport = False

+

+

+#Author TheEnd

+NameColorSystem = True

+NameColor =

\ No newline at end of file

Index: java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java

===================================================================

--- java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java (revision 3427)

+++ java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java (working copy)

@@ -93,6 +95,8 @@

{

private static final String _C__03_ENTERWORLD = "[C] 03 EnterWorld";

 

+ private static final int NAME_COLOR = 0;

+

private static Logger _log = Logger.getLogger(EnterWorld.class.getName());

 

public TaskPriority getPriority()

@@ -306,6 +313,11 @@

 

Quest.playerEnter(activeChar);

loadTutorial(activeChar);

+ if (Config.NAME_COLOR_SYSTEM)

+ {

+ activeChar.getAppearance().setNameColor(Config.NAME_COLOR);

+ }

+

for (Quest quest : QuestManager.getInstance().getAllManagedScripts())

{

if (quest != null && quest.getOnEnterWorld())

 

Index: java/net/sf/l2j/Config.java

===================================================================

--- java/net/sf/l2j/Config.java (revision 3427)

+++ java/net/sf/l2j/Config.java (working copy)

@@ -594,7 +594,15 @@

public static boolean OFFLINE_SET_NAME_COLOR;

public static int OFFLINE_NAME_COLOR;

public static boolean L2JMOD_ENABLE_MANA_POTIONS_SUPPORT;

+ public static boolean NAME_COLOR_SYSTEM;

+ public static int NAME_COLOR;

+

 

//--------------------------------------------------

// NPC Settings

@@ -1953,11 +1970,12 @@

BANKING_SYSTEM_ENABLED = Boolean.parseBoolean(L2JModSettings.getProperty("BankingEnabled", "false"));

BANKING_SYSTEM_GOLDBARS = Integer.parseInt(L2JModSettings.getProperty("BankingGoldbarCount", "1"));

BANKING_SYSTEM_ADENA = Integer.parseInt(L2JModSettings.getProperty("BankingAdenaCount", "500000000"));

-

+ NAME_COLOR_SYSTEM = Boolean.parseBoolean(L2JModSettings.getProperty("NameColorSystem", "false"));

+ NAME_COLOR = Integer.decode("0x" + L2JModSettings.getProperty("NameColor", "00FF00"));

OFFLINE_TRADE_ENABLE = Boolean.parseBoolean(L2JModSettings.getProperty("OfflineTradeEnable", "false"));

OFFLINE_CRAFT_ENABLE = Boolean.parseBoolean(L2JModSettings.getProperty("OfflineCraftEnable", "false"));

OFFLINE_SET_NAME_COLOR = Boolean.parseBoolean(L2JModSettings.getProperty("OfflineSetNameColor", "false"));

 

 

 

 

All this i must copy/paste it to java.l2jmods in eclipse..

Then i take the l2jmods file and i paste it to my server folder in configs and i delte the previous.

I did it but nothing :/

I must not paste all the code in l2jmods?

When it says index etc... it shows another folder to import it..

Exlpain me what i am wrong :/

Link to comment
Share on other sites

thnx for quick answer..

i have read :)

I added the code.

But it doesnt work..i replaced l2jmods to my config nut nothing :/

 

I can hardly understand you, so I guess I won't help you.

 

You shouldn't replace whole file, just add lines with + and remove lines with -

Link to comment
Share on other sites

yes i have copied all the code into l2jmods.java

Then i go to workspace java/config i copy l2jmods and i paste it to my server's config.

In java i dont get any error..it's ok.. all..i saved all good

But i cant understand what i make wrong :/ :-\

Link to comment
Share on other sites

# ---------------------------------------------------------------------------

# L2JMODS - non-retail-like systems that have been integrated into the L2J project.

# Be warned that there may be no support for these mods beyond the original author's assistance.

# ---------------------------------------------------------------------------

# Champion mobs - Turn random mobs into Champions

# ---------------------------------------------------------------------------

# Enable/Disable Champion Mob System.

ChampionEnable = False

 

# Force Champion mobs to be passive?

# To leave champion mobs to default/Agressive, set to False.

# To set all champion mobs to Passive, set True.

ChampionPassive = False

 

# % chance for a mob to became champion (0 to disable).

ChampionFrequency = 5

 

# Title of all Champion Mobs.

ChampionTitle = Champion

 

# Min and max levels allowed for a mob to be a Champion mob.

ChampionMinLevel = 20

ChampionMaxLevel = 70

 

# Hp multiplier for Champion mobs.

ChampionHp = 8

 

# Hp Regen Multiplier for Champion mobs.

ChampionHpRegen = 1.0

 

# Standard rewards multiplier for Champion mobs.

ChampionRewards = 8

 

# Adena & Seal Stone rewards multiplier for Champion mobs.

ChampionAdenasRewards = 1.0

 

# P. Attack and M. Attack bonus for Champion mobs.

ChampionAtk = 1.0

 

# Physical/Magical Attack Speed bonus for Champion mobs.

ChampionSpdAtk = 1.0

 

# Specified reward item ID

ChampionRewardItemID = 6393

 

# The amount of the specified reward a player will receive if they are awarded the item.

ChampionRewardItemQty = 1

 

# % Chance to obtain a specified reward item from a HIGHER lvl Champion mob.

ChampionRewardLowerLvlItemChance = 0

 

# % Chance to obtain a specified reward item from a LOWER lvl Champion mob.

ChampionRewardHigherLvlItemChance = 0

 

# Do you want to enable the vitality calculation when killing champion mobs?

# Be aware that it can lead to huge unbalance on your server, your rate for that mob would

# then be "mobXP x serverRate x vitalityRate x championXpRate

# Notes:

# Works only if EnableVitality = True

# Default: False

ChampionEnableVitality = False

 

 

# ---------------------------------------------------------------------------

# Wedding System (by evill33t)

# ---------------------------------------------------------------------------

# <u><b><font color="red">WARNING: this mod require custom NPC table support turned on !</font></b></u>

# CustomNpcTable = True in General.properties

# ---------------------------------------------------------------------------

# Wedding Manager ID: 50007

#

# First part - "Engagement"

# 1) Target the player that you want to make a couple with.

# 2) Use the voice command ".engage nameofyourpartner" then press enter.

# 3) If the target player has you on listed as a friend (ie. you are in each other's friends list) a popup will appear with an engagement request along with a system message that you want to be engaged with him/her.

# 4) If the target player accepts the engagement invitation, you will be engaged.

#

# Second part - "Marriage"

# 1) Once two players are engaged, they can speak to Andromeda, the Wedding Priest in the Hot Springs Guild House (Goddard Area).

#    (You may need Formal Wear and Adena to pay wedding fees!)

# 2) Each player needs to speak to the NPC and make the request to be married.

# 3) Once done, fireworks will display and the two players will be married.

#

# Afterwards you can use the voice command ".gotolove nameofyourpartner" to teleport to your partner if you're married (there may also be a fee which can be specified below)

#

# If you want to cancel your Engagement/Marriage, use the voice command ".divorce nameofyourpartner".

#

# If you're married you have to pay a specified % of your adena to your partner.

#

# If a player attempts to become engaged to another player while married they may suffer a penalty if it's enabled below.

# ---------------------------------------------------------------------------

# Enable/Disable Wedding System

AllowWedding = False

 

# Amount of Adena required to get married

WeddingPrice = 250000000

 

# Enable/Disable punishing of players who attempt to be engaged to other players while married.

WeddingPunishInfidelity = True

 

# Enable/Disable teleport function for married couples.

WeddingTeleport = True

 

# Amount of Adena required to teleport to spouse.

WeddingTeleportPrice = 50000

 

# Time before character is teleported after using the skill.

WeddingTeleportDuration = 60

 

# Enable/Disable same sex marriages.

WeddingAllowSameSex = False

 

# Require players to wear formal wear to be married?

WeddingFormalWear = True

 

# Amount of Adena (%) a player must pay to the other to get divorced.

WeddingDivorceCosts = 20

 

 

# ---------------------------------------------------------------------------

# Team vs. Team Event Engine (by FBIagent)

# ---------------------------------------------------------------------------

# <u><b><font color="red">WARNING: this mod require custom NPC table support turned on !</font></b></u>

# CustomNpcTable = True in General.properties

# ---------------------------------------------------------------------------

# Enable/Disable TvTEvent System

TvTEventEnabled = False

 

# TvT in instance

TvTEventInInstance = False

 

# Name of the instance file for TvT

TvTEventInstanceFile = coliseum.xml

 

# Times TvT will occur (24h format).

TvTEventInterval = 9:00,15:00,21:00,3:00

 

# Registration timer from start of event (in minutes).

TvTEventParticipationTime = 60

 

# Event running time (in minutes).

TvTEventRunningTime = 20

 

# TvT Event NPC (create a custom npc of type L2TvTEventNpc).

TvTEventParticipationNpcId = 70010

 

# TvT Event Participation Fee (itemId, number). Fee is not returned.

# Example: 57,100000

# Default = none

TvTEventParticipationFee = 0,0

 

# Location for TvTEvent NPC to spawn in form x,y,z[,heading]

TvTEventParticipationNpcCoordinates = 83425,148585,-3406

 

# Min/Max amount of players allowed in each team.

TvTEventMinPlayersInTeams = 1

TvTEventMaxPlayersInTeams = 20

 

# Min/Max level of players that may join the event.

TvTEventMinPlayerLevel = 1

TvTEventMaxPlayerLevel = 85

 

# Repsawn and exit delay timers (in seconds).

TvTEventRespawnTeleportDelay = 10

TvTEventStartLeaveTeleportDelay = 10

 

# First Team - Name, Start/Death x,y,z location.

TvTEventTeam1Name = Team1

TvTEventTeam1Coordinates = 148695,46725,-3414

 

# Second Team - Name, Start/Death x,y,z location.

TvTEventTeam2Name = Team2

TvTEventTeam2Coordinates = 149999,46728,-3414

 

# Reward for winning team.

# Example: TvTEventReward = itemId,amount;itemId,amount;itemId,amount

TvTEventReward = 57,100000

 

# TvTEvent Rules

TvTEventTargetTeamMembersAllowed = True

TvTEventScrollsAllowed = False

TvTEventPotionsAllowed = False

TvTEventSummonByItemAllowed = False

 

# Door ID's to open/close on start/end.

# Not supported in instance, use xml template for defining doors.

# Example: TvTDoorsToOpen = 1;2;3;4;5;6

TvTDoorsToOpen =

TvTDoorsToClose =

 

# Should both teams get reward if there's a tie?

TvTRewardTeamTie = False

 

# Participant's effects handling on teleport/death.

# Effects lasting through death never removed.

# 0 - always remove all effects.

# 1 - remove all effects only during port to event (noblesse blessing can be used)

# 2 - never remove any effect

# Default: 0

TvTEventEffectsRemoval = 0

 

# Fighter-class participants will be buffed with those buffs each respawn

# Format: skill1Id,skill1Level;skill2Id,skill2Level...

# Example: 1504,1;1501,1;1502,1;1499,1

TvTEventFighterBuffs =

 

# Mage-class participants will be buffed with those buffs each respawn

# Format: skill1Id,skill1Level;skill2Id,skill2Level...

# Example: 1504,1;1500,1;1501,1;1085,3

TvTEventMageBuffs =

# Voiced command (.tvt) working during TVT event to get information about event status

TvTAllowVoicedInfoCommand = false

 

# ---------------------------------------------------------------------------

# L2J Banking System

# ---------------------------------------------------------------------------

# Enable/Disable Banking System

BankingEnabled = False

 

# Amount of Goldbars a player gets when they use the ".deposit" command. Also the same amount they will lose with ".withdraw".

BankingGoldbarCount = 1

 

# Amount of Adena a player gets when they use the ".withdraw" command. Also the same amount they will lose with ".deposit".

BankingAdenaCount = 500000000

 

 

# ---------------------------------------------------------------------------

# Warehouse Sorting

# Shows Withdraw Window sorted by ItemType (Armor/Weapon/Spellbook....)

# ---------------------------------------------------------------------------

EnableWarehouseSortingClan = False

EnableWarehouseSortingPrivate = False

 

 

# ---------------------------------------------------------------------------

# Offline trade/craft

# ---------------------------------------------------------------------------

# Option to enable or disable offline trade feature.

# Enable -> true, Disable -> false

OfflineTradeEnable = False

 

# Option to enable or disable offline craft feature.

# Enable -> true, Disable -> false

OfflineCraftEnable = False

 

# If set to True, name color will be changed then entering offline mode

OfflineSetNameColor = False

 

# Color of the name in offline mode (if OfflineSetNameColor = True)

OfflineNameColor = 808080

 

# Allow fame for characters in offline mode

# Enable -> true, Disable -> false

OfflineFame = True

 

# ---------------------------------------------------------------------------

# Mana Drugs/Potions

# ---------------------------------------------------------------------------

# This option will enable core support for:

# Mana Drug (item ID 726), using skill ID 10000.

# Mana Potion (item ID 728), using skill ID 10001.

EnableManaPotionSupport = False

 

 

# ---------------------------------------------------------------------------

# Display Server Time

# ---------------------------------------------------------------------------

# This option will enable displaying of the local server time for /time command.

DisplayServerTime = False

 

 

# ---------------------------------------------------------------------------

# Welcome message

# ---------------------------------------------------------------------------

# Show screen welcome message on character login

# Default: False

ScreenWelcomeMessageEnable = False

 

# Screen welcome message text to show on character login if enabled

# ('#' for a new line, but message can have max 2 lines)

ScreenWelcomeMessageText = Welcome to L2J server!

 

# Show screen welcome message for x seconds when character log in to game if enabled

ScreenWelcomeMessageTime = 10

 

 

# ---------------------------------------------------------------------------

# AntiFeed

# ---------------------------------------------------------------------------

# This option will enable antifeed for pvp/pk/clanrep points.

# Default: False

AntiFeedEnable = False

 

# If set to True, kills from dualbox will not increase pvp/pk points

# and clan reputation will not be transferred.

# Default: True

AntiFeedDualbox = True

 

# If set to True, server will count disconnected (unable to determine ip address)

# as dualbox.

# Default: True

AntiFeedDisconnectedAsDualbox = True

 

# If character died faster than timeout - pvp/pk points for killer will not increase

# and clan reputation will not be transferred.

# Setting to 0 will disable this feature.

# Default: 120 seconds.

AntiFeedInterval = 120

 

 

# ---------------------------------------------------------------------------

# Pvp/pk Announce

# ---------------------------------------------------------------------------

# Default: False

AnnouncePkPvP = True

 

# Announce this as normal system message

# Default: True

AnnouncePkPvPNormalMessage = False

 

# PK message template

# variables: $killer, $target

AnnouncePkMsg = $killer has slaughtered $target

 

# Pvp message template

# variables: $killer, $target

AnnouncePvpMsg = $killer has defeated $target

 

 

# ---------------------------------------------------------------------------

# Chat Moderation

# ---------------------------------------------------------------------------

# This option will enable using of the voice commands .banchat and .unbanchat

# for players with corresponding access level (default: 7).

# Check access_levels.sql and admin_command_access_rights for details.

# Default: False

ChatAdmin = True

 

 

# ---------------------------------------------------------------------------

# Multilingual support

# ---------------------------------------------------------------------------

# Enable or disable multilingual support.

# Default: False

MultiLangEnable = False

 

# List of allowed languages, semicolon separated.

# Default: en

MultiLangAllowed = en;ru

 

# Default language, if not defined.

# Default: en

MultiLangDefault = en

 

# Enable or disable voice command .lang for changing languages on the fly.

# Default: True

MultiLangVoiceCommand = True

 

 

# ---------------------------------------------------------------------------

# Walker/Bot protection

# ---------------------------------------------------------------------------

# Basic protection against L2Walker.

# Default: False

L2WalkerProtection = True

 

Index: java/config/l2jmods.properties

===================================================================

--- java/config/l2jmods.properties (revision 3427)

+++ java/config/l2jmods.properties (working copy)

@@ -248,4 +248,21 @@

# This option will enable core support for:

# Mana Drug (item ID 726), using skill ID 9007.

# Mana Potion (item ID 728), using skill ID 9008.

-EnableManaPotionSupport = False

\ No newline at end of file

+EnableManaPotionSupport = False

+

+

+#Author TheEnd

+NameColorSystem = True

+NameColor =

\ No newline at end of file

Index: java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java

===================================================================

--- java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java (revision 3427)

+++ java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java (working copy)

@@ -93,6 +95,8 @@

{

private static final String _C__03_ENTERWORLD = "[C] 03 EnterWorld";

 

+ private static final int NAME_COLOR = 0;

+

private static Logger _log = Logger.getLogger(EnterWorld.class.getName());

 

public TaskPriority getPriority()

@@ -306,6 +313,11 @@

 

Quest.playerEnter(activeChar);

loadTutorial(activeChar);

+ if (Config.NAME_COLOR_SYSTEM)

+ {

+ activeChar.getAppearance().setNameColor(Config.NAME_COLOR);

+ }

+

for (Quest quest : QuestManager.getInstance().getAllManagedScripts())

{

if (quest != null && quest.getOnEnterWorld())

 

Index: java/net/sf/l2j/Config.java

===================================================================

--- java/net/sf/l2j/Config.java (revision 3427)

+++ java/net/sf/l2j/Config.java (working copy)

@@ -594,7 +594,15 @@

public static boolean OFFLINE_SET_NAME_COLOR;

public static int OFFLINE_NAME_COLOR;

public static boolean L2JMOD_ENABLE_MANA_POTIONS_SUPPORT;

+ public static boolean NAME_COLOR_SYSTEM;

+ public static int NAME_COLOR;

+

 

//--------------------------------------------------

// NPC Settings

@@ -1953,11 +1970,12 @@

BANKING_SYSTEM_ENABLED = Boolean.parseBoolean(L2JModSettings.getProperty("BankingEnabled", "false"));

BANKING_SYSTEM_GOLDBARS = Integer.parseInt(L2JModSettings.getProperty("BankingGoldbarCount", "1"));

BANKING_SYSTEM_ADENA = Integer.parseInt(L2JModSettings.getProperty("BankingAdenaCount", "500000000"));

-

+ NAME_COLOR_SYSTEM = Boolean.parseBoolean(L2JModSettings.getProperty("NameColorSystem", "false"));

+ NAME_COLOR = Integer.decode("0x" + L2JModSettings.getProperty("NameColor", "00FF00"));

OFFLINE_TRADE_ENABLE = Boolean.parseBoolean(L2JModSettings.getProperty("OfflineTradeEnable", "false"));

OFFLINE_CRAFT_ENABLE = Boolean.parseBoolean(L2JModSettings.getProperty("OfflineCraftEnable", "false"));

OFFLINE_SET_NAME_COLOR = Boolean.parseBoolean(L2JModSettings.getProperty("OfflineSetNameColor", "false"));

 

This is my l2jmods...

You see? it's all ok :/

Link to comment
Share on other sites

Its a joke or what?

 

"it's all ok :/" - lol mate, you really don't get it. I told you, read sticked guides.

 

Lets take a look at this part of this diff file:

 

Index: java/config/l2jmods.properties

===================================================================

--- java/config/l2jmods.properties (revision 3427)

+++ java/config/l2jmods.properties (working copy)

@@ -248,4 +248,21 @@

# This option will enable core support for:

# Mana Drug (item ID 726), using skill ID 9007.

# Mana Potion (item ID 728), using skill ID 9008.

-EnableManaPotionSupport = False

\ No newline at end of file

+EnableManaPotionSupport = False

+

+

+#Author TheEnd

+NameColorSystem = True

+NameColor =

 

There is info about where do you have to place this part of code (lines with +)

 

java/config/l2jmods.properties

 

So open this file, and place there these lines:

 

+#Author TheEnd

+NameColorSystem = True

+NameColor =

 

Ofc without the pluses.

 

Ok lets take a look at next diff part:

 

Index: java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java

===================================================================

--- java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java (revision 3427)

+++ java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java (working copy)

@@ -93,6 +95,8 @@

{

private static final String _C__03_ENTERWORLD = "[C] 03 EnterWorld";

 

+ private static final int NAME_COLOR = 0;

+

private static Logger _log = Logger.getLogger(EnterWorld.class.getName());

 

public TaskPriority getPriority()

@@ -306,6 +313,11 @@

 

Quest.playerEnter(activeChar);

loadTutorial(activeChar);

+ if (Config.NAME_COLOR_SYSTEM)

+ {

+ activeChar.getAppearance().setNameColor(Config.NAME_COLOR);

+ }

+

for (Quest quest : QuestManager.getInstance().getAllManagedScripts())

{

if (quest != null && quest.getOnEnterWorld())

 

So you have to edit EnterWorld.java, there is also patch for this file:

 

java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java

 

etc etc, do you get it now? I told you, read sticked guides, you told me that you did it, I don't think so.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...