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

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.



  • Posts

    • What webhosting are you using? You'll need to talk with administrators of the webhosting to open outgoing connections to port 1433, maybe they won't open it for you, instead, you should get a webhosting for mu online since they always have 1433 port open for outgoing connections. Also, make sure you have your 1433 TCP port open for incoming connections, for security, I suggest you exclusively add the cPanel IP Address to connect to your port 1433 in your firewall, so no one else can try to connect to your database. Let me know if you have any questions, happy to help.
    • He just doesn't answer, I've tried everything, Telegram, his own forum, everything, I don't know what's his deal, but I've tried for months
    • Send direct message to @Maxtor
    • Hello guys , does anyone know what files needed to use those cloaks for H5 client? I’m not using an interface and I don’t want to use one so there are any way to use them without interface? 
    • Closed beta testing starts in early October!        We’re looking for the most active and attentive players to help fine-tune the project before launch. This is your chance to be among the first to try out our new features and directly influence how the server develops.   What beta testers will do: — Check the client and core mechanics — Find bugs, errors, and inconsistencies — Evaluate the convenience and practicality of current solutions — Share detailed, constructive suggestions for improvement      Your feedback will be key to making the project balanced and comfortable for everyone.   Requirements: — Willingness to complete specific tasks — Experience playing on Interlude (PTS, clean client) — Experience with the HF client is a plus   Ready to help? The server launch is planned for early December, so now is the perfect time to join the test and make your contribution. To participate, you must send a direct message (DM) to one of the following: - Send a DM to our Telegram channel - Send a DM to our forum moderators: PrintF or EchØ - Send a DM to our Discord server admin @EchØ
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock