Jump to content

[Share] l2jserver Announce Noble Login H5


d0ds™

Recommended Posts

Hi, I had been practicing java for L2, and I made some simple mod, I have no idea if this mod is existed, but here it is

 

start here

 

add this to l2mods.properties

# Announce Noble Char
AnnounceNobleChar = True

 

@Config.java

find this

public static int L2JMOD_WEDDING_DIVORCE_COSTS;

and add this after

public static boolean ANNOUNCE_NOBLE_LOGIN;

and find this

L2JMOD_ENABLE_WAREHOUSESORTING_PRIVATE = Boolean.valueOf(L2JModSettings.getProperty("EnableWarehouseSortingPrivate", "False"));

and add this after

ANNOUNCE_NOBLE_LOGIN   = Boolean.parseBoolean(L2JModSettings.getProperty("AnnounceNobleChar", "False"));

 

@EnterWorld.java

find this

		
if (Config.L2JMOD_ALLOW_WEDDING)
	{
		engage(activeChar);
		notifyPartner(activeChar,activeChar.getPartnerId());
	}

And add this after

if(Config.ANNOUNCE_NOBLE_LOGIN)
        {
        	if(activeChar.isNoble())
        		Announcements.getInstance().announceToAll("Noble: " + activeChar.getName() + " has been logged in.");
        }

 

I made it my self so, the credit is for me :)

 

Link to comment
Share on other sites

Read section rules:

- Do not post simple java strings or stupid Configuring Codes. Such topics will be immediately locked.

 

and also the code isn't full the config will not work

and its already shared

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...