Jump to content

Recommended Posts

Posted

This is a exshowscreenmessage, like you go to towns and a window apear "Giran Town".

 

You will be able to put anything you want.

 

This tested at l2j.

 

go java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java

 

First add this import;

 

import net.sf.l2j.gameserver.network.serverpackets.ExShowScreenMessage;

 

and then add this (delete the other message from l2j and put this);

 

ExShowScreenMessage welcomemessage = new ExShowScreenMessage("Welcome to The MaxCheaters",10000); //10000 = 10 seconds 
     activeChar.sendPacket(welcomemessage); 

 

Well this is good idea you can use this method, at pvp showing the damage apear of window for example...etc ;P

 

 

NOTE: This no need any client modding ;]!

 

Regard Cobra.

 

p.s: My pc crashed ;P so i don't have eclipse //cry! I will update the post better wen my pc come back ^.^

 

Well some updates i donne it for il i test it at l2jdot :];

 

Index: C:/Documents and Settings/l2/workspace/L2Dot_IL_GameServer/java/net/sf/l2j/Config.java
===================================================================
--- C:/Documents and Settings/l2/workspace/L2Dot_IL_GameServer/java/net/sf/l2j/Config.java	(revision 512)
+++ C:/Documents and Settings/l2/workspace/L2Dot_IL_GameServer/java/net/sf/l2j/Config.java	(working copy)
@@ -1599,6 +1599,8 @@
	public static boolean ALLOW_LOW_LEVEL_TRADE;

	public static boolean SHOW_HTML_WELCOME;
+	
+	public static boolean SHOW_SCREEN_MESSAGE;

	/** Chat filter */
	public static boolean USE_CHAT_FILTER;
@@ -3403,6 +3405,7 @@
				ALLOW_LOW_LEVEL_TRADE = Boolean.parseBoolean(L2dotSettings
						.getProperty("AllowLowLevelTrade", "True"));
				SHOW_HTML_WELCOME = Boolean.parseBoolean(L2dotSettings.getProperty("ShowWelcomeHTML", "False"));
+				SHOW_SCREEN_MESSAGE = Boolean.parseBoolean(L2dotSettings.getProperty("ShowScreenMessage", "False"));
				ALLOW_POTS_IN_PVP = Boolean.parseBoolean(L2dotSettings
						.getProperty("AllowPotsInPvP", "True"));
				ALLOW_SOE_IN_PVP = Boolean.parseBoolean(L2dotSettings.getProperty("AllowSoEInPvP", "True"));
Index: C:/Documents and Settings/l2/workspace/L2Dot_IL_GameServer/java/net/sf/l2j/gameserver/network/serverpackets/ExShowScreenMessage.java
===================================================================
--- C:/Documents and Settings/l2/workspace/L2Dot_IL_GameServer/java/net/sf/l2j/gameserver/network/serverpackets/ExShowScreenMessage.java	(revision 0)
+++ C:/Documents and Settings/l2/workspace/L2Dot_IL_GameServer/java/net/sf/l2j/gameserver/network/serverpackets/ExShowScreenMessage.java	(revision 0)
@@ -0,0 +1,88 @@
+/*
+ * This program is free software: you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation, either version 3 of the License, or (at your option) any later
+ * version.
+ * 
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ * details.
+ * 
+ * You should have received a copy of the GNU General Public License along with
+ * this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+package net.sf.l2j.gameserver.network.serverpackets;
+
+/**
+ * @author Cobra
+ *
+ */
+public class ExShowScreenMessage extends L2GameServerPacket
+{
+	private int _type;
+	private int _sysMessageId;
+	private int _unk1;
+	private int _unk2;
+	private int _unk3;
+	private int _unk4;
+	private int _size;
+	private int _position;
+	private boolean _effect;
+	private String _text;
+	private int _time;
+
+	public ExShowScreenMessage (String text, int time)
+	{
+		_type = 1;
+		_sysMessageId = -1;
+		_unk1 = 0;
+		_unk2 = 0;
+		_unk3 = 0;
+		_unk4 = 0;
+		_position = 0x02;
+		_text = text;
+		_time = time;
+		_size = 0;
+		_effect = false;
+	}
+
+	public ExShowScreenMessage (int type, int messageId, int position, int unk1, int size, int unk2, int unk3,boolean showEffect, int time,int unk4, String text)
+	{
+		_type = type;
+		_sysMessageId = messageId;
+		_unk1 = unk1;
+		_unk2 = unk2;
+		_unk3 = unk3;
+		_unk4 = unk4;
+		_position = position;
+		_text = text;
+		_time = time;
+		_size = size;
+		_effect = showEffect;
+	}
+	
+	@Override
+	public String getType()
+	{
+		return "[s]FE:39 ExShowScreenMessage";
+	}
+
+	@Override
+	protected void writeImpl()
+	{
+		writeC(0xfe);
+		writeH(0x39);
+		writeD(_type); // 0 - system messages, 1 - your defined text
+		writeD(_sysMessageId); // system message id (_type must be 0 otherwise no effect)
+		writeD(_position); // message position
+		writeD(_unk1); // ?
+		writeD(_size); // font size 0 - normal, 1 - small
+		writeD(_unk2); // ?
+		writeD(_unk3); // ? 
+		writeD(_effect == true ? 1 : 0); // upper effect (0 - disabled, 1 enabled) - _position must be 2 (center) otherwise no effect
+		writeD(_time); // time
+		writeD(_unk4); // ?
+		writeS(_text); // your text (_type must be 1, otherwise no effect)
+	}
+}
\ No newline at end of file
Index: C:/Documents and Settings/l2/workspace/L2Dot_IL_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java
===================================================================
--- C:/Documents and Settings/l2/workspace/L2Dot_IL_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java	(revision 512)
+++ C:/Documents and Settings/l2/workspace/L2Dot_IL_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java	(working copy)
@@ -74,6 +74,8 @@
import net.sf.l2j.gameserver.network.serverpackets.SystemMessage;
import net.sf.l2j.gameserver.network.serverpackets.UserInfo;
import net.sf.l2j.gameserver.util.FloodProtector;
+import net.sf.l2j.gameserver.network.serverpackets.ExShowScreenMessage;
+
/**
  * Enter World Packet Handler<p>
  * <p>
@@ -328,6 +331,12 @@
			}
		}

+		if(!Config.SHOW_SCREEN_MESSAGE)
+		{
+		ExShowScreenMessage welcomemessage = new ExShowScreenMessage("Welcome to The L2DOT Project",10000); //10000 = 10 seconds 
+	     activeChar.sendPacket(welcomemessage);
+		}
+		
         if (Hero.getInstance().getHeroes() != null &&
                 Hero.getInstance().getHeroes().containsKey(activeChar.getObjectId()))
             activeChar.setHero(true);
Index: C:/Documents and Settings/l2/workspace/L2Dot_IL_GameServer/config/l2dot.properties
===================================================================
--- C:/Documents and Settings/l2/workspace/L2Dot_IL_GameServer/config/l2dot.properties	(revision 512)
+++ C:/Documents and Settings/l2/workspace/L2Dot_IL_GameServer/config/l2dot.properties	(working copy)
@@ -39,6 +39,9 @@
# Show Welcome.htm When a Player Enters Lineage 2 World?
ShowWelcomeHTML = False

+#Show ScreenMessage By Cobra For Interlude!
+ShowScreenMessage = False
+
# -------------------------------------------------------------
# Custom PVP/PK settings									  -
# -------------------------------------------------------------

-------------------------------------------------------------

 

 

Posted

AWESOME!!

 

and i was searchin' about how to do that..

 

really thanks mate ;)

 

btw, update your java mods list ;p

Posted

mmmmm start to share our good stuff? :)

 

ehehe i see one other post about this... and i see client modding .... ;P

 

So why to use client modding? :P

 

Yeah i know this is good staff //joke ;P

 

Anyway i hope i helped a little :]!

 

@Stef: Thanks :]! I will update it ^.^

 

 

Posted

You can also use the party command leader chat (the leader of more allied parties...cant remember the name).

Posted

You can also use the party command leader chat (the leader of more allied parties...cant remember the name).

Yup thats the name.

Something like:

CreatureSay cs = new CreatureSay(0, SystemChatChannelId.Chat_Commander, "PvP", "I have pwnt you!");

sendPacket(cs);

Btw Cobra don't share things like this, people should find them themselves :P

Posted

Topic: [share]Screen Message!(No Client Modding)  (Read 217 time

 

pff leo kai egw tpt new... afto einai tou px eona!

 

nothing new

Guest
This topic is now closed to further replies.



  • Posts

    • We've added 5% discounts for bulk purchases of Google accounts for orders of 300 or more, and 10% for orders of 500 or more. The discount is applied automatically when you place your order! The discount is indicated in the product title and description for each category.  
    • 🎄 CHRISTMAS EVENT 🎄   ‼️ Information and details: https://forum.l2harbor.com/threads/rozhdestvenskie-xlopoty-christmas-chores.9430/post-171464
    • METATG.ORG Direct Telegram Service Provider A bonus of +7% on every order! *We add 7% more followers than your ordered amount to proactively cover potential drops and guarantee you an honest result." Telegram Followers - Price per 1000 SUBSCRIBERS Subscribers 3 days - $0.10 ~ 8 RUB Subscribers. Daily Completion: 200,000,000 Subscribers 7 days - $0.17 ~ 13.6 RUB Subscribers. Daily Completion: 200,000,000 Subscribers 14 days - $0.20 ~ 16 RUB Subscribers. Daily Completion: 200,000,000 Subscribers 30 days - $0.30 ~ 24 RUB Subscribers. Daily Completion: 200,000,000 Subscribers 60 days - $0.40 ~ 32 RUB Subscribers, 14-day guarantee. Daily Completion: 200,000,000 Subscribers 90 days (Super Fast) - $0.50 ~ 40 RUB Subscribers, 14-day guarantee. Daily Completion: 200,000,000 Subscribers 120 days (Super Fast) - $0.60 ~ 48 RUB Subscribers, 14-day guarantee. Daily Completion: 200,000,000 Subscribers Lifetime (Super Fast) - $0.70 ~ 56 RUB Lifetime Subscribers. 14-day guarantee. Daily Completion: 200,000,000 Telegram Services - Price per 1000 Post Views - $0.06 ~ 5 RUB Reactions - $0.08 ~ 6.5 RUB Bot Starts - $0.10 ~ 8 RUB Bot Starts with referrals - $0.15 ~ 12 RUB DISCOUNTS and CASHBACK for large volumes Direct Supplier. We work from our own accounts with our own software! High execution speed. Multiple payment methods. We work 24/7! Additional discounts are discussed for volumes starting from $1000 per day. SUPPORT 24/7 - TELEGRAM WEBSITE 24/7 - METATG.ORG
    • Added: a brand-new default dashboard template. You can now add multiple game/login server builds. Full support for running both PTS & L2J servers simultaneously, with switching between them. Payment systems: added OmegaPay and Pally (new PayPal-style API). Account history now stores everything: donations, items delivered to characters, referrals, transfers between game accounts, and coin transfers to another master account. Personal Promo Code System: you can create a promo code and assign it to a user or promoter. When donating, a player can enter this promo code to receive bonus coins, and the promo code owner also receives a bonus — all fully configurable in the admin panel.     Look demo site: demo
  • 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