Jump to content

Recommended Posts

Posted

So here i make a newbie code...

when the players login he get a message:Welcome to Our server

 

### Eclipse Workspace Patch 1.0
#P L2_GameServer
Index: java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java
===================================================================
--- java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java	(revision 3605)
+++ java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java	(working copy)
@@ -146,7 +146,9 @@
			getClient().closeNow();
			return;
		}
-
+      if (activeChar.isNewbie())
+          {
+   activeChar.sendMessage("message");
}
		// Restore to instanced area if enabled
		if (Config.RESTORE_PLAYER_INSTANCE)
			activeChar.setInstanceId(InstanceManager.getInstance().getPlayerInstance(activeChar.getObjectId()));
@@ -444,6 +446,15 @@
	}

	/**
+     * @param string
+     */
+    private void sendMessage(String string)
+    {
+	    // TODO Auto-generated method stub
+	    
+    }
+
+	/**
	* @param activeChar
	*/
	private void engage(L2PcInstance cha)

 

You can change the message from this: ("Welcome to Our Server");

 

P.S Move it plz

Posted

why you need this?

 

 

	/**
+     * @param string
+     */
+    private void sendMessage(String string)
+    {
+	    // TODO Auto-generated method stub
+	    
+    }
+
+	/**

 

 

 

you can use...

 

 

 

		if (activeChar.isNewbie())
	{
	activeChar.sendMessage("Welcome to Our Server");
	}

Posted

It wont work lol.

+          //else

+ activeChar.sendMessage("Welcome to Our Server");

+

else..? This isn't esle ,its just a random not working code.

Leave only this:

EnterWorld.java

if (activeChar.isNewbie())
{
activeChar.sendMessage("message");
}

no need of other things ;)

Posted

i don't know if this is what leeroy said but what has sendMessage to do while it's not completed?

 

?

 

sorry for this but MaestroLuke you know anything about java or just spamming? sorry but this code work perfect..

Posted

It wont work lol.

+          //else

+ activeChar.sendMessage("Welcome to Our Server");

+

else..? This isn't esle ,its just a random not working code.

Leave only this:

EnterWorld.java

if (activeChar.isNewbie())
{
activeChar.sendMessage("message");
}

no need of other things ;)

 

 

i think you say the same with me :D

 

 

why you need this?

 

 

	/**
+     * @param string
+     */
+    private void sendMessage(String string)
+    {
+	    // TODO Auto-generated method stub
+	    
+    }
+
+	/**

 

 

 

you can use...

 

 

 

		if (activeChar.isNewbie())
	{
	activeChar.sendMessage("Welcome to Our Server");
	}

Posted

you can use...

 

 

 

		if (activeChar.isNewbie())
	{
	activeChar.sendMessage("Welcome to Our Server");
	}

 

 

EnterWorld.java

if (activeChar.isNewbie())
{
activeChar.sendMessage("message");
}

 

 

 

Same Code  :o

Posted

?

 

sorry for this but MaestroLuke you know anything about java or just spamming? sorry but this code work perfect..

you are double posting and saying that i am spamming?

 

i think you say the same with me :D

 

 

no i am not saying the same

ompleted? is just a Message..

what does this method has to do there?think before you post

Posted

you are double posting and saying that i am spamming?no i am not saying the same what does this method has to do there?think before you post

 

 

i say :z Wizzy say the same with me no with you..

 

you have wrong the code is ok..

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..