Jump to content

Recommended Posts

Posted
## Eclipse Workspace Patch 1.0
#P L2jFrozen_GameServer
Index: head-src/com/l2jfrozen/Config.java
===================================================================
--- head-src/com/l2jfrozen/Config.java	(revision 939)
+++ head-src/com/l2jfrozen/Config.java	(working copy)
@@ -2121,8 +2121,11 @@
 	public static String PM_TEXT1;
 	public static String PM_TEXT2;
 	public static boolean NEW_PLAYER_EFFECT;
-	
+	public static boolean NEW_PLAYER_BUFFS;
+	public static Map<Integer, Integer> FIGHTER_BUFF_LIST;
+	public static Map<Integer, Integer> MAGE_BUFF_LIST;
 
+
 	//============================================================
 	public static void loadFrozenConfig()
 	{
@@ -2143,7 +2146,59 @@
 			PM_TEXT1  = frozenSettings.getProperty("PMText1", "Have Fun and Nice Stay on");
 			PM_TEXT2  = frozenSettings.getProperty("PMText2", "Vote for us every 24h");
 			NEW_PLAYER_EFFECT = Boolean.parseBoolean(frozenSettings.getProperty("NewPlayerEffect", "True"));
+			NEW_PLAYER_BUFFS = Boolean.parseBoolean(frozenSettings.getProperty("AltNewCharBuffs", "False"));
+			if(NEW_PLAYER_BUFFS)
+			{
+				String[] fighterBuffSplit = frozenSettings.getProperty("FighterBuffList", "").split(";");
+				FIGHTER_BUFF_LIST = new FastMap<Integer, Integer>(fighterBuffSplit.length);
+				for(String skill : fighterBuffSplit)
+				{
+					String[] skillSplit = skill.split(",");
+					if(skillSplit.length != 2)
+					{
+						System.out.println("invalid config property in " + Frozen + " -> FighterBuffList \"" + skill + "\"");
+					}
+					else
+					{
+						try
+						{
+							FIGHTER_BUFF_LIST.put(Integer.parseInt(skillSplit[0]), Integer.parseInt(skillSplit[1]));
+						}
+						catch(NumberFormatException nfe)
+						{
+							if(!skill.equals(""))
+							{
+								System.out.println("invalid config property in " + Frozen + " -> FighterBuffList \"" + skillSplit[0] + "\"" + skillSplit[1]);
+							}
+						}
+					}
+				}
 
+				String[] mageBuffSplit = frozenSettings.getProperty("MageBuffList", "").split(";");
+				MAGE_BUFF_LIST = new FastMap<Integer, Integer>(mageBuffSplit.length);
+				for(String skill : mageBuffSplit)
+				{
+					String[] skillSplit = skill.split(",");
+					if(skillSplit.length != 2)
+					{
+						System.out.println("invalid config property in " + Frozen + " -> MageBuffList \"" + skill + "\"");
+					}
+					else
+					{
+						try
+						{
+							MAGE_BUFF_LIST.put(Integer.parseInt(skillSplit[0]), Integer.parseInt(skillSplit[1]));
+						}
+						catch(NumberFormatException nfe)
+						{
+							if(!skill.equals(""))
+							{
+								System.out.println("invalid config property in" + Frozen + " -> MageBuffList \"" + skillSplit[0] + "\"" + skillSplit[1]);
+							}
+						}
+					}
+				}
+			}
 		}
 		catch(Exception e)
 		{
Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/EnterWorld.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/network/clientpackets/EnterWorld.java	(revision 939)
+++ head-src/com/l2jfrozen/gameserver/network/clientpackets/EnterWorld.java	(working copy)
@@ -285,6 +285,9 @@
 		Announcements.getInstance().showAnnouncements(activeChar);
 
 		loadTutorial(activeChar);
+
+		if(activeChar.getFirstLog())
+			onEnterNewbie(activeChar);
 		
 		// Check for crowns
 		CrownManager.getInstance().checkCrowns(activeChar);
@@ -543,20 +546,6 @@
 		if (Config.ONLINE_PLAYERS_ON_LOGIN)
 			sendPacket(new SystemMessage(SystemMessageId.S1_S2).addString("There are " + L2World.getInstance().getAllPlayers().size() + " players online."));
 
-		if (activeChar.getFirstLog() && Config.NEW_PLAYER_EFFECT)
-		{
-			L2Skill skill = SkillTable.getInstance().getInfo(2025,1);
-			if (skill != null)
-			{
-				MagicSkillUser MSU = new MagicSkillUser(activeChar, activeChar, 2025, 1, 1, 0);
-				activeChar.sendPacket(MSU);
-				activeChar.broadcastPacket(MSU);
-				activeChar.useMagic(skill, false, false);
-			}
-			activeChar.setFirstLog(false);
-			activeChar.updateFirstLog();
-		}
-
 		if (Config.WELCOME_HTM && isValidName(activeChar.getName()))
 		{
 			String Welcome_Path = "data/html/welcome.htm";
@@ -688,6 +677,50 @@
 	}
 
 	/**
+	 * @param activeChar
+	 */
+	private void onEnterNewbie(L2PcInstance activeChar)
+	{
+		if(Config.NEW_PLAYER_EFFECT)
+		{
+			L2Skill skill = SkillTable.getInstance().getInfo(2025, 1);
+			if(skill != null)
+			{
+				MagicSkillUser MSU = new MagicSkillUser(activeChar, activeChar, 2025, 1, 1, 0);
+				activeChar.sendPacket(MSU);
+				activeChar.broadcastPacket(MSU);
+				activeChar.useMagic(skill, false, false);
+			}
+		}
+
+		if(Config.NEW_PLAYER_BUFFS)
+		{
+			if(activeChar.isMageClass())
+			{
+				for(Integer skillid : Config.MAGE_BUFF_LIST.keySet())
+				{
+					int skilllvl = Config.MAGE_BUFF_LIST.get(skillid);
+					L2Skill skill = SkillTable.getInstance().getInfo(skillid, skilllvl);
+					if(skill != null)
+						skill.getEffects(activeChar, activeChar);
+				}
+			}
+			else
+			{
+				for(Integer skillid : Config.FIGHTER_BUFF_LIST.keySet())
+				{
+					int skilllvl = Config.FIGHTER_BUFF_LIST.get(skillid);
+					L2Skill skill = SkillTable.getInstance().getInfo(skillid, skilllvl);
+					if(skill != null)
+						skill.getEffects(activeChar, activeChar);
+				}
+			}
+		}
+		activeChar.setFirstLog(false);
+		activeChar.updateFirstLog();
+	}
+
+	/**
 	 * @param cha 
 	 */
 	private void engage(L2PcInstance cha)
Index: config/frozen/frozen.properties
===================================================================
--- config/frozen/frozen.properties	(revision 939)
+++ config/frozen/frozen.properties	(working copy)
@@ -21,4 +21,18 @@
 
 # New players get fireworks the first time they log in
 # Default: False
-NewPlayerEffect = False
\ No newline at end of file
+NewPlayerEffect = False
+
+# Give buffs to character on first game log in.
+# Default: False
+AltNewCharBuffs = False
+
+# The List of Fighter Buffs
+# Format : skillid,skilllvl;skillid2,skilllvl2;....skillidn,skilllvln
+FighterBuffList = 1204,2;1068,3;1040,3;1035,4;1036,2;1045,6;1086,2;1077,3;1240,3;1242,3;\
+264,1;267,1;268,1;269,1;304,1;349,1;364,1;271,1;274,1;275,1;1363,1;1391,3;4699,1;4703,1
+
+# The List of Mage Buffs
+# Format : skillid,skilllvl;skillid2,skilllvl2;....skillidn,skilllvln
+MageBuffList = 1204,2;1040,3;1035,4;1045,6;1048,6;1036,2;1303,2;1085,3;1059,3;1078,6;\
+1062,2;1397,3;264,1;267,1;268,1;304,1;349,1;364,1;273,1;276,1;365,1;1413,1;1391,3;4703,1

Credits: ????

  • 3 months later...

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

    • ## [1.4.0] - 2026-01-28   ### ✨ New Features - **Vote System**: Lineage 2 servers can now use our vote–reward system. Players vote on the website and claim rewards in-game (1 vote = 1 claim) - **Vote Page**: On each server’s page (`/servers/<server>`), a **“Vote for Server”** button opens a dedicated vote page with cooldown info and optional Turnstile verification - **By Votes View**: The **“By Votes”** tab on the main page shows **actual vote counts** per server - **API Documentation**: New **API Docs** page at `/docs` (and footer link) with HMAC auth, endpoints, and examples for game server integration - **Vote API (My Servers)**: Server owners can open **“Vote API”** in My Servers to manage credentials, cooldown, allowed IPs, and open the docs   ### 🔄 Improvements - **Server Pages**: Single-server data is cached and loads faster; server pages can be opened by ID or by name (e.g. `/servers/my-server-name`) - **API Root**: Visiting the API root redirects to the docs URL configured in admin (default: site docs page) - **Admin Panel**: New **“Vote System”** tab for global settings (Turnstile, API security, default cooldown, docs URL)   ### 🔐 Security & Reliability - Turnstile (CAPTCHA) support for vote submissions to reduce abuse - HMAC-protected game server API for secure vote check/claim and stats
    • "I recently purchased the account panel from this developer and wanted to leave a positive review.   The transaction was smooth, and the developer demonstrated exceptional professionalism throughout the process.   What truly sets them apart is their outstanding post-sale support. They are responsive, patient, and genuinely helpful when addressing questions or issues. It's clear they care about their customers' experience beyond just the initial sale.   I am thoroughly satisfied and grateful for the service. This is a trustworthy seller who provides real value through both a quality product and reliable support. 100% recommended."
    • Server owners, Top.MaxCheaters.com is now live and accepting Lineage 2 server listings. There is no voting, no rankings manipulation, and no paid advantages. Visibility is clean and equal, and early listings naturally appear at the top while the platform grows. If your server is active, it should already be listed. Submit here https://Top.MaxCheaters.com This platform is part of the MaxCheaters.com network and is being built as a long-term reference point for the Lineage 2 community. — MaxCheaters.com Team
    • ⚙️ General Changed “No Carrier” title to “Disconnected” to avoid confusion after abnormal DC. On-screen Clan War kill notifications will no longer appear during Sieges, Epics, or Events. Bladedancer or SwordSinger classes can now log in even when Max Clients (2) is reached, you cannot have both at the same time. The max is 3 clients. Duels will now be aborted if a monster aggros players during a duel (retail-like behavior). Players can no longer send party requests to blocked players (retail-like). Fixed Researcher Euclie NPC dialogue HTML error. Changed Clan leave/kick penalty from 12 hours to 3 hours. 🧙 Skills Adjusted Decrease Atk. Spd. & Decrease Speed land rates in Varka & FoG. Fixed augmented weapons not getting cooldown when entering Olympiad. 🎉 Events New Team vs Team map added. New Save the King map added (old TvT map). Mounts disabled during Events. Letter Collector Event enabled Monsters drop letters until Feb. 13th Louie the Cat in Giran until Feb. 16th Inventory slots +10 during event period 📜 Quests Fixed “Possessor of a Precious Soul Part 1” rare stuck issue when exceeding max quest items. Fixed Seven Signs applying Strife buff/debuff every Monday until restart. 🏆 Milestones New milestone: “Defeat 700 Monsters in Varka” 🎁 Rewards: 200 Varka’s Mane + Daily Coin 🌍 NEW EXP Bonus Zones Hot Springs added Varka Silenos added (hidden spots excluded) As always, thank you for your support! L2Elixir keeps evolving, improving, and growing every day 💙   Website: https://l2elixir.org/ Discord: https://discord.gg/5ydPHvhbxs
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..