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.



  • Posts

    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchihamkt.mysellix.io/ Join our server for more products : https://discord.gg/hood-services https://campsite.bio/utchihaamkt  
    • Server Rates: » Xp 500x. » Sp 500x. » Aden 500x. » Drop 1x. » PartyXp 2x. » PartySp 2x. » Starting character level -61. Enchant rates: » Safe enchant +4. » Blessed and simple scrolls max enchant (+16). » Crystal scrolls max enchant (+20). » Simple enchant scrolls chance – 65%. » Blessed enchant scrolls chance – 100%. » Crystal enchant scrolls chance – 50% Augmentations: » Mid life stone skill chance – 5%. » High life stone skill chance – 10%. » Top life stone skill chance – 20%. » Augments 1+1 Unique features: » Main town – Giran » Automatic-Manual Potions. » Working 2 castle sieges. (Giran-Aden) » SPS cancel lasts 10 seconds and than buffs come back. » Stackable scrolls, lifestones, book of giants. » Unique pvp zone » More then 11 active raid bosses. » Wedding system. » Unique farming areas. » Npc skill enchanter. » Full npc buffer with auto buff. » Max count of buffs – 55. » Max subclasses – 4. » Free and no quest class change. » Free and no quest sub class. » Raid boss drop nobless item. » No weight limit. » Unique protection anti-hwy armor for archers/daggers etc. » Ingame password change. » Top pvp/pk/online ranks NPC. » Unique monsters & NPC. » Interlude retail skills. » Server up-time [24/7] [99]%. » Perfect class balance (all class can kill all class depending on players skill and setup knowledge,gear,augmentations). » Announcements on double kills triple kills etc. » Announcements on Grand Boss death , with the name of the killer as well as clan name of the player. » Information Npc in game with all servers infromations. Custom server gear : 1). Titanium Armor Lv.1 2). Epic Armor Lv.2 3). Epic Weapons-Kamikaze-Black S grade (Same Stats) 4). Demonic-Angelic Wings-Baium Hair-Custom Accessories (SameStats) 5). Custom Fighter/Mage tattoo Lv1-Lv2-Lv3 6). Shirt (STR,CON,INT +1) 7). Custom Shields Server Commands: .tvtjoin .tvtleave – Join or leave tvt event. .ctfjoin .ctfleave – Join or leave ctf event. .dmjoin .dmleave – Join of leave dm event. .online – current online players count. .repair – repairs stuck character in world. .menu – opens online menu panel. .exit – PVP zone exit in case you are bullied. .changepassword - Opens online menu then u can change ur password in game. .farm - Enable/disable autofarm Event system: » TVT event » CTF event » DM event » Tournament Event » Party Zone » Unique event shop. Olympiad game: » Retail olympiad game. » Competition period [1] week. » Olympiad start time [18:00] end [00:00] GMT+2. » New Heroes every Sunday.
    • Tomorrow grand opening lests go 🙂 
    • New season of Warfire X150 has been postponed to September 28th.
  • Topics

×
×
  • Create New...