Jump to content

Recommended Posts

Posted

Hello , First of all i used as subject Preview and share , cause first i will show you some pic and later today will upload the java codes + client part .

 

The bad think on this , is that you couldnt use pcbang , actually you can but they will not get the V iew of points on the right side. You can make an external npc witch will show them their points and etC.

 

Lets take a look (PICTURES):

First

Second

 

And here a small video:

[MXC]FovosOTrelos Java Online On Screen

 

Its nothing special , but i didnt have what to do and was playing with serverpackets :P

 

-Client Side-

 

sysstring-e.dat

1274	Forced Petition
1275	Server Transfer
1276	- Selection -
-1277	PC Bang Points
+1277   Online Players
1278	One, Two, Three, Four, Five, Six, Seven, Eight, Nine, Ten

systemmsg-e.dat

1704	1	Please close the the setup window for your private manufacturing store or private store, and try again.	0	79	9B	B0	FF			0	0	0	0	0		none
-1705	1	PC Bang Points acquisition period. Points acquisition period left $s1 hour.	0	79	9B	B0	FF			0	0	0	0	0		none
-1706	1	PC Bang Points use period. Points use period left $s1 hour.	0	79	9B	B0	FF			0	0	0	0	0		none
-1707	1	You acquired $s1 PC Bang Point.	0	79	9B	B0	FF		
0	0	0	0	0		none
+1705	1	It Shows Online Players Count ATM.	0	79	9B	B0	FF			0	0	0	0	0		none
+1706	1	It Shows Online Players Count ATM.	0	79	9B	B0	FF			0	0	0	0	0		none
+1707	1	It Shows Online Players Count ATM.	0	79	9B	B0	FF			0	0	0	0	0		none

DOWNLOAD CLIENT FILES : LINK

 

-Server Side-

Index: config/fun/pcBang.properties
===================================================================
--- config/fun/pcBang.properties	(revision 13)
+++ config/fun/pcBang.properties	(revision 16)
@@ -5,7 +5,7 @@
# Pc Bang Point are special points, XML id= 65436
# Enable PC Bang Point Event.
# Default: False
-PcBangPointEnable = True
+PcBangPointEnable = False

# Min Player Level.
# Default: 20
Index: config/frozen/frozen.properties
===================================================================
--- config/frozen/frozen.properties	(revision 13)
+++ config/frozen/frozen.properties	(revision 16)
@@ -31,4 +31,8 @@

# New players get fireworks the first time they log in
# Default: False
-NewPlayerEffect = True
\ No newline at end of file
+NewPlayerEffect = True
+
+# It will show at right side in a box of pcbang 
+# The number of online players.
+EnableOnlineRightSide = True
\ No newline at end of file
Index: head-src/com/l2jfrozen/gameserver/network/serverpackets/ExOnlineInfo.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/network/serverpackets/ExOnlineInfo.java	(revision 0)
+++ head-src/com/l2jfrozen/gameserver/network/serverpackets/ExOnlineInfo.java	(revision 16)
@@ -0,0 +1,33 @@
+package com.l2jfrozen.gameserver.network.serverpackets;
+
+import com.l2jfrozen.gameserver.model.L2World;
+import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
+
+
+public class ExOnlineInfo extends L2GameServerPacket
+{
+	/** The Constant _S__FE_31_EXPCCAFEPOINTINFO. */
+	private static final String _S__FE_31_EXPCCAFEPOINTINFO = "[s] FE:31 ExOnlineInfo";
+
+	
+	public ExOnlineInfo()
+	{}
+	
+	@Override
+	protected void writeImpl()
+	{
+		writeC(0xFE);
+		writeH(0x31);
+		writeD(L2World.getInstance().getAllPlayers().size());
+		writeD(1);
+		writeC(1);
+		writeD(1);
+		writeC(1);
+	}
+
+	@Override
+	public String getType()
+	{
+		return _S__FE_31_EXPCCAFEPOINTINFO;
+	}
+}
Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/Logout.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/network/clientpackets/Logout.java	(revision 13)
+++ head-src/com/l2jfrozen/gameserver/network/clientpackets/Logout.java	(revision 16)
@@ -20,6 +20,7 @@
import com.l2jfrozen.gameserver.communitybbs.Manager.RegionBBSManager;
import com.l2jfrozen.gameserver.datatables.SkillTable;
import com.l2jfrozen.gameserver.model.L2Party;
+import com.l2jfrozen.gameserver.model.L2World;
import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
import com.l2jfrozen.gameserver.model.entity.olympiad.Olympiad;
import com.l2jfrozen.gameserver.model.entity.sevensigns.SevenSignsFestival;
@@ -132,6 +133,13 @@

		RegionBBSManager.getInstance().changeCommunityBoard();
		player.deleteMe();
+		
+		if(Config.ONLINE_RIGHT){
+			for(L2PcInstance playr : L2World.getInstance().getAllPlayers())
+			{
+				playr.showOnlinesWindow();
+			}
+		}
	}

	@Override
Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/EnterWorld.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/network/clientpackets/EnterWorld.java	(revision 13)
+++ head-src/com/l2jfrozen/gameserver/network/clientpackets/EnterWorld.java	(revision 16)
@@ -330,6 +330,14 @@

		if (Config.PCB_ENABLE)
			activeChar.showPcBangWindow();
+		
+		if(Config.ONLINE_RIGHT){
+			for(L2PcInstance player : L2World.getInstance().getAllPlayers())
+			{
+				player.showOnlinesWindow();
+			}
+		}
+	

		if (Config.ANNOUNCE_CASTLE_LORDS)
				notifyCastleOwner(activeChar);
Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestRestart.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestRestart.java	(revision 13)
+++ head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestRestart.java	(revision 16)
@@ -26,6 +26,7 @@
import com.l2jfrozen.gameserver.datatables.SkillTable;
import com.l2jfrozen.gameserver.model.Inventory;
import com.l2jfrozen.gameserver.model.L2Party;
+import com.l2jfrozen.gameserver.model.L2World;
import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
import com.l2jfrozen.gameserver.model.entity.olympiad.Olympiad;
import com.l2jfrozen.gameserver.model.entity.sevensigns.SevenSignsFestival;
@@ -160,6 +161,7 @@
			player.onTradeCancel(player.getActiveRequester());
		}

+		
		// Check if player are flying
		if(player.isFlying())
		{
@@ -205,6 +207,13 @@
		CharSelectInfo cl = new CharSelectInfo(client.getAccountName(), client.getSessionId().playOkID1);
		sendPacket(cl);
		client.setCharSelection(cl.getCharInfo());
+		
+		if(Config.ONLINE_RIGHT){
+			for(L2PcInstance playr : L2World.getInstance().getAllPlayers())
+			{
+				playr.showOnlinesWindow();
+			}
+		}
	}

	@Override
Index: head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java	(revision 13)
+++ head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java	(revision 16)
@@ -166,6 +166,7 @@
import com.l2jfrozen.gameserver.network.serverpackets.ExFishingStart;
import com.l2jfrozen.gameserver.network.serverpackets.ExOlympiadMode;
import com.l2jfrozen.gameserver.network.serverpackets.ExOlympiadUserInfo;
+import com.l2jfrozen.gameserver.network.serverpackets.ExOnlineInfo;
import com.l2jfrozen.gameserver.network.serverpackets.ExPCCafePointInfo;
import com.l2jfrozen.gameserver.network.serverpackets.ExSetCompassZoneCode;
import com.l2jfrozen.gameserver.network.serverpackets.FriendList;
@@ -18267,6 +18268,13 @@
		ExPCCafePointInfo wnd = new ExPCCafePointInfo(this, 0, false, 24, false);
		sendPacket(wnd);
	}
+	public void showOnlinesWindow()
+	{
+		/*user, int modify, boolean add, int hour, boolean _double) **/
+	
+		ExOnlineInfo wnd = new ExOnlineInfo();
+		sendPacket(wnd);
+	}

	/**
	 * String to hex.
Index: head-src/com/l2jfrozen/Config.java
===================================================================
--- head-src/com/l2jfrozen/Config.java	(revision 13)
+++ head-src/com/l2jfrozen/Config.java	(revision 16)
@@ -2124,6 +2124,7 @@
	public static String PM_TEXT1;
	public static String PM_TEXT2;
	public static boolean NEW_PLAYER_EFFECT;
+	public static boolean ONLINE_RIGHT;


	//============================================================
@@ -2138,6 +2139,7 @@
			frozenSettings.load(is);
			is.close();

+			ONLINE_RIGHT = Boolean.parseBoolean(frozenSettings.getProperty("EnableOnlineRightSide", "True"));
	       	TRANSFORM_PK      = Boolean.parseBoolean(frozenSettings.getProperty("EnableTransformPK", "False"));
	        TRANSFORM_NPC_ID             = frozenSettings.getProperty("TransformNPCID", "14040");
	       	TRANSFORM_NPC_NAME           = frozenSettings.getProperty("TransformNPCName", "Zombie");		

 

DIFF FILE

 

Credits : Goes to me :)

Posted

its looks cool, my question is, what files did u change in client to change pc bang points to online players and what is wrote in "?"? :)

Posted

its looks cool, my question is, what files did u change in client to change pc bang points to online players and what is wrote in "?"? :)

Thanks for good feedback , I fixed the bipping part..

You can change whatever is related with l2 client by modify sysstring-e.dat with file edit.

Its kinda cool , I changed even the front start of l2 . Example " named log in to connect , ID and PWD to username , password .

Posted

Looks prety nice, most of servers(as i know) don't use PCBang so... it already is useless and can be replaced with online players.

 

Waiting for codes :P

Thanks , Yes i had the same thoughts about the pcbang thats why i used for greater purpuse :) .

 

Uploaded , I did some tests and working perfectly .

If you have any ussues pm me.

Posted

I see many thing which are extra

 

public class ExOnlineInfo extends L2GameServerPacket

+{

+ /** The Constant _S__FE_31_EXPCCAFEPOINTINFO. */

+ private static final String _S__FE_31_EXPCCAFEPOINTINFO = " FE:31 ExPCCafePointInfo";

+

+ /** The _character. */

+ private L2PcInstance _character;

+ /** The m_ add point. */

+ private int m_AddPoint;

+

+ /** The m_ period type. */

+ private int m_PeriodType;

+

+ /** The Remain time. */

+ private int RemainTime;

+

+ /** The Point type. */

+ private int PointType;

+

+ /**

+ * Instantiates a new ex pc cafe point info.

+ *

+ * @param user the user

+ * @param modify the modify

+ * @param add the add

+ * @param hour the hour

+ * @param _double the _double

+ */

+ public ExOnlineInfo(L2PcInstance user, int modify, boolean add, boolean _double)

+ {

+ _character = user;

+ m_AddPoint = modify;

+ m_PeriodType = 1;

+ PointType = 1;

+

+ RemainTime = 24;

+ }

+

+ @Override

+ protected void writeImpl()

+ {

+ writeC(0xFE);

+ writeH(0x31);

+ writeD(L2World.getInstance().getAllPlayers().size());

+ writeD(m_AddPoint);

+ writeC(m_PeriodType);

+ writeD(RemainTime);

+ writeC(PointType);

+ }

+

+ /**

+ * Gets the type.

+ *

+ * @return the type

+ */

+ @Override

+ public String getType()

+ {

+ return _S__FE_31_EXPCCAFEPOINTINFO;

+ }

+}

 

It can't be done without them?

Posted

I see many thing which are extra

 

It can't be done without them?

I didnt tested without some writeC/D . I will make a clean up later and test if it works .

But as writeD/C/H is based on server / client communication i hope ncsoft didnt set a rule witch requires all of those , you know what i mean . Like phx when you send an packet if it doesnt contain all the data witch client need to process it will fail.

 

Anyway , an update will be done until tommorow.

Posted

Soo... If we just replace PcBang Points with Online players will not it be better not to create ExOnlineInfo and just do this:

 

Index: net/sf/l2j/gameserver/network/serverpackets/ExPCCafePointInfo.java
package com.l2jfrozen.gameserver.network.serverpackets;

import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jfrozen.gameserver.model.L2World;

@
	writeC(0xFE);
	writeH(0x31);
-		writeD(_character.getPcBangScore());
+              writeD(L2World.getInstance().getAllPlayers().size());
	writeD(m_AddPoint);
	writeC(m_PeriodType);
	writeD(RemainTime);
	writeC(PointType);

Posted

Soo... If we just replace PcBang Points with Online players will not it be better not to create ExOnlineInfo and just do this:

 

Index: net/sf/l2j/gameserver/network/serverpackets/ExPCCafePointInfo.java
	writeC(0xFE);
	writeH(0x31);
-		writeD(_character.getPcBangScore());
+              writeD(L2World.getInstance().getAllPlayers().size());
	writeD(m_AddPoint);
	writeC(m_PeriodType);
	writeD(RemainTime);
	writeC(PointType);

Nope , I dont want to change anything that exists , At my topic i said that pcbang can exist with online players together.

So we need both serverpackets to do that.

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



  • Posts

    • Hi everyone, A while ago, I needed to extract some L2 textures and found that acmi's L2Tool was a good way to do it. There might be other methods out there but I'm not aware of them, so I decided to fork this project and improve it to suit my needs. I built this using BellSoft Liberica JDK 17. Since modern Java versions no longer include JavaFX by default, I've made the app handle it automatically. You don't need any manual setup—just use the  run.bat  and it will automatically extract the required JavaFX modules on the first run. Key features of this fork: UI Overhaul: I've tweaked the interface to give it a cleaner look with Dark Mode and more detailed metadata for each texture. Export Formats: You can now extract textures in WEBP, PNG, and DDS. Individual or Batch Export: Flexible options to export a single selected texture or the entire package at once.     I'm leaving the link here in case it's useful to anyone!   Installation and Execution:     Clone the repository:   https://github.com/Ak4n1/l2tool cd l2tool          2.Build the project:   ./gradlew build              3. Run the application:         ./run.bat      Or simply double-click on run.bat.    
    • Wtb full account or items on l2 warland 
    • https://discord.gg/k53SZ4DM5z   Interlude Client L2Old Pride is a L2 Pride Interlude Based All functional skills (Not archer/mage server)   L2Old Pride Helper (Works like Woundrous Cubic) https://imgur.com/iYqmHQY Farm Zones: Cave of Trials and Elven Ruins (Chaotic) Olympiads: Every 15 days Various Cosmetic Items https://imgur.com/uoeU6Jw https://imgur.com/oCS2Zed PvP Zone: Gludin Village (No-Parties, Disguised) More than 100 new Skills https://imgur.com/6RaPsQV Max Level: 90 https://imgur.com/z4QVJKZ Gaining Xp by PVP https://imgur.com/LRqI31T Purchasable S-grade items +10 or +20 with random chance to enchant +5 Purchasable Custom Items Depends on Tier Mysterious Merchants https://imgur.com/2ZwWyPH Auto Enchant Via PvPing (with low chance) Custom Raid Bosses Siege Every Weekend (Aden, Rune, Giran) Autofarm / Drop Tracker https://imgur.com/Vz3rha6   RATES: • Start Level 80 • Max level 90  • EXP: 5000x • SP: 5000x • ADENA 6000x   ENCHANT: • Maximum enchant S Grade Items: +35. • Maximum enchant Unique/Epic Items: +25. • Maximum enchant Legendary Items: +18. • Maximum enchant Relic Items: +14. •Descriptions for rate at scrolls!   EVENTS: • TEAMS vs TEAMS • CAPTURE THE FLAG • DOMINATION • DEATH MATCH • DICE OF DEATH • CHAOTIC ZONE   OTHERS: Assistance system in pvps. Where support classes are enabled to receive pvp with a low chance, for supporting a party member during pvp. •  /sit to regen HP/MP/CP • Custom Shots Glows https://imgur.com/FLK0DmR • Achievements System • Daily Tasks System • Monthly Tasks System   CUSTOM ARMORS SETS Dread Armor/Titanium Armor Pride Armor Rykros Armor https://imgur.com/SPxoQp1   CUSTOM WEAPONS SETS Unique Weapons Pride Weapons Legendary Weapons Relic Weapons https://imgur.com/kOHNXhS   CUSTOM ACCESSORIES Standard Superior Legendary https://imgur.com/zPqNiiX   CUSTOM JEWELS/TATTOO Legendary Nightmarish https://imgur.com/gcqS28P There are many more features that you will only understand by playing and following. Beta testing server is currently open. Follow us on our discord and join our server to test it.
    • You shouldn't use rev 382, not sure why everyone keep using that.   I don't make changesets for fun, I don't make new revisions for nothing.   Follow the revisions.
  • 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