Jump to content

[Share] Multiple Message to Enter for L2J Server


Recommended Posts

well, just what I did was to accommodate the Matim to L2JOficial to L2JServer, and I leave the patch so as not to complicate them, for which recently started.

 

Config.java

Index: Config.java
===================================================================
--- Config.java	(revisión: 4130)
+++ Config.java	(copia de trabajo)

	public static boolean L2JMOD_ENABLE_MANA_POTIONS_SUPPORT;
	public static boolean L2JMOD_DISPLAY_SERVER_TIME;
+	// Mensaje de Bienvenida
	public static boolean WELCOME_MESSAGE_ENABLED;
-	public static String WELCOME_MESSAGE_TEXT;
+	public static String WELCOME_MESSAGE_TEXT_1;
+	public static String WELCOME_MESSAGE_TEXT_2;
+	public static String WELCOME_MESSAGE_TEXT_3;
+	public static String WELCOME_MESSAGE_TEXT_4;
+	public static String WELCOME_MESSAGE_TEXT_5;
+	public static String WELCOME_MESSAGE_TEXT_6;
+	public static String WELCOME_MESSAGE_TEXT_7;
+	public static String WELCOME_MESSAGE_TEXT_8;
+	public static String WELCOME_MESSAGE_TEXT_9;
+	public static String WELCOME_MESSAGE_TEXT_10;
+	public static int SLEEP_TIME;
	public static int WELCOME_MESSAGE_TIME;
	public static boolean L2JMOD_ANTIFEED_ENABLE;
	public static boolean L2JMOD_ANTIFEED_DUALBOX;

@@ -2227,7 +2304,17 @@
					L2JMOD_DISPLAY_SERVER_TIME = Boolean.parseBoolean(L2JModSettings.getProperty("DisplayServerTime", "false"));

					WELCOME_MESSAGE_ENABLED = Boolean.parseBoolean(L2JModSettings.getProperty("ScreenWelcomeMessageEnable", "false"));
-					WELCOME_MESSAGE_TEXT = L2JModSettings.getProperty("ScreenWelcomeMessageText", "Welcome to L2J server!");
+					WELCOME_MESSAGE_TEXT_1 = L2JModSettings.getProperty("ScreenWelcomeMessageText1", "Bienvenido a Neo-Net Games® Foros!");
+					WELCOME_MESSAGE_TEXT_2 = L2JModSettings.getProperty("ScreenWelcomeMessageText2", "Bienvenido a Neo-Net Games® Votanos!");
+					WELCOME_MESSAGE_TEXT_3 = L2JModSettings.getProperty("ScreenWelcomeMessageText3", "Bienvenido a Neo-Net Games® Entrega!");
+					WELCOME_MESSAGE_TEXT_4 = L2JModSettings.getProperty("ScreenWelcomeMessageText4", "Bienvenido a Neo-Net Games® a!");
+					WELCOME_MESSAGE_TEXT_5 = L2JModSettings.getProperty("ScreenWelcomeMessageText5", "Bienvenido a Neo-Net Games® tu!");
+					WELCOME_MESSAGE_TEXT_6 = L2JModSettings.getProperty("ScreenWelcomeMessageText6", "Bienvenido a Neo-Net Games® Hermana!");
+					WELCOME_MESSAGE_TEXT_7 = L2JModSettings.getProperty("ScreenWelcomeMessageText7", "Bienvenido a Neo-Net Games® que!");
+					WELCOME_MESSAGE_TEXT_8 = L2JModSettings.getProperty("ScreenWelcomeMessageText8", "Bienvenido a Neo-Net Games® se!");
+					WELCOME_MESSAGE_TEXT_9 = L2JModSettings.getProperty("ScreenWelcomeMessageText9", "Bienvenido a Neo-Net Games® la pongo!");
+					WELCOME_MESSAGE_TEXT_10 = L2JModSettings.getProperty("ScreenWelcomeMessageText10", "Bienvenido a Neo-Net Games® toda!");
+					SLEEP_TIME =Integer.parseInt(L2JModSettings.getProperty("SleepTime", "10")) * 1000;
					WELCOME_MESSAGE_TIME = Integer.parseInt(L2JModSettings.getProperty("ScreenWelcomeMessageTime", "10")) * 1000;

					L2JMOD_ANTIFEED_ENABLE = Boolean.parseBoolean(L2JModSettings.getProperty("AntiFeedEnable", "false"));

 

l2jmods.properties

Index: l2jmods.properties
===================================================================
--- l2jmods.properties	(revisión: 4130)
+++ l2jmods.properties	(copia de trabajo)

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

+# ---------------------------------------------------
+# Custom Starting Message
+# ---------------------------------------------------
+# This options will allow to show
+# new custom message at enter world
+AllowScreenWelcomeMessage = True

+# Messages Time in seconds
+EachMessageTime = 6
+
+# Text Messages
+ScreenWelcomeMessageText1 = Bienvenido a Neo-Net Games® Foros!
+ScreenWelcomeMessageText2 = Bienvenido a Neo-Net Games® Votanos!
+ScreenWelcomeMessageText3 = Bienvenido a Neo-Net Games® Entrega!
+ScreenWelcomeMessageText4 = Bienvenido a Neo-Net Games® a!
+ScreenWelcomeMessageText5 = Bienvenido a Neo-Net Games® tu!
+ScreenWelcomeMessageText6 = Bienvenido a Neo-Net Games® Hermana!
+ScreenWelcomeMessageText7 = Bienvenido a Neo-Net Games® que!
+ScreenWelcomeMessageText8 = Bienvenido a Neo-Net Games® se!
+ScreenWelcomeMessageText9 = Bienvenido a Neo-Net Games® la pongo!
+ScreenWelcomeMessageText10 = Bienvenido a Neo-Net Games® toda!
+
+# Sleep Time in seconds
+SleepTime = 7
+
+

 

EnterWorld.java

Index: EnterWorld.java
===================================================================
--- EnterWorld.java	(revisión: 4130)
+++ EnterWorld.java	(copia de trabajo)

@@ -478,10 +545,36 @@
		CommunityServerThread.getInstance().sendPacket(new WorldInfo(activeChar, null, WorldInfo.TYPE_UPDATE_PLAYER_STATUS));

		TvTEvent.onLogin(activeChar);
-
+	try
+	      {  
		if (Config.WELCOME_MESSAGE_ENABLED)
-			activeChar.sendPacket(new ExShowScreenMessage(Config.WELCOME_MESSAGE_TEXT, Config.WELCOME_MESSAGE_TIME));
+			  activeChar.sendPacket(new ExShowScreenMessage(Config.WELCOME_MESSAGE_TEXT_1, Config.WELCOME_MESSAGE_TIME));
+        	  Thread.sleep(Config.SLEEP_TIME);
+        	  activeChar.sendPacket(new ExShowScreenMessage(Config.WELCOME_MESSAGE_TEXT_2, Config.WELCOME_MESSAGE_TIME));
+        	  Thread.sleep(Config.SLEEP_TIME);
+        	  activeChar.sendPacket(new ExShowScreenMessage(Config.WELCOME_MESSAGE_TEXT_3, Config.WELCOME_MESSAGE_TIME));
+        	  Thread.sleep(Config.SLEEP_TIME);
+        	  activeChar.sendPacket(new ExShowScreenMessage(Config.WELCOME_MESSAGE_TEXT_4, Config.WELCOME_MESSAGE_TIME));
+        	  Thread.sleep(Config.SLEEP_TIME);
+        	  activeChar.sendPacket(new ExShowScreenMessage(Config.WELCOME_MESSAGE_TEXT_5, Config.WELCOME_MESSAGE_TIME));
+        	  Thread.sleep(Config.SLEEP_TIME);
+        	  activeChar.sendPacket(new ExShowScreenMessage(Config.WELCOME_MESSAGE_TEXT_6, Config.WELCOME_MESSAGE_TIME));
+        	  Thread.sleep(Config.SLEEP_TIME);
+        	  activeChar.sendPacket(new ExShowScreenMessage(Config.WELCOME_MESSAGE_TEXT_7, Config.WELCOME_MESSAGE_TIME));
+        	  Thread.sleep(Config.SLEEP_TIME);
+        	  activeChar.sendPacket(new ExShowScreenMessage(Config.WELCOME_MESSAGE_TEXT_8, Config.WELCOME_MESSAGE_TIME));
+        	  Thread.sleep(Config.SLEEP_TIME);
+        	  activeChar.sendPacket(new ExShowScreenMessage(Config.WELCOME_MESSAGE_TEXT_9, Config.WELCOME_MESSAGE_TIME));
+        	  Thread.sleep(Config.SLEEP_TIME);
+        	  activeChar.sendPacket(new ExShowScreenMessage(Config.WELCOME_MESSAGE_TEXT_10, Config.WELCOME_MESSAGE_TIME));
+    
+	      }

+	      catch(Exception e)
+	      {
+	      System.out.println(e);
+	      }
+	      
		L2ClassMasterInstance.showQuestionMark(activeChar);

		int birthday = activeChar.checkBirthDay();

 

eh also added some more places for messages, if they want them out or leave it so it works correctly in the latest rev of L2J-Server EP

 

 

Download

Link to comment
Share on other sites

i bet the player will just shit brix or shit brix on the servers admin face xD

Waiting that amount of time is nasy + that the screen message text is interactive and u can click on it so if u try targeting smth or pressing a button or smth will just make the player scream out laud: "-beep- YOU COCK SUCKER AND UR SHITTY SCREEN MESSAGE ADVERTISEMENT!" xD

Anyway cool shit >.> and i see u have thread sleep and stuff, did u know that screen messages have hide boolean and position type? You should check that out xD (even images)

Link to comment
Share on other sites

  • 3 months later...
  • 10 months later...

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

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