Jump to content
  • 0

[REQUEST] Lord Announce.


Question

Posted

Kalimera. Tha mporouse na voithisei kanenas me ti Java(code) wste otan mpainei enas Clan Lord Leader Na To leei se announce px. Announcements:Lord of Aden hus just logged in. ENdiaferomai Gia L2J Server Interlude Pack. Thanks.

 

EDIT:Lathos section nomizw, mperdeutika an mporei kapoios as to kanei move.

12 answers to this question

Recommended Posts

  • 0
Posted

Kalimera. Tha mporouse na voithisei kanenas me ti Java(code) wste otan mpainei enas  Clan Lord Leader Na To leei se announce px. Announcements:Lord of Aden hus just logged in. ENdiaferomai Gia L2J Server Interlude Pack. Thanks.

 

EDIT:Lathos section nomizw, mperdeutika an mporei kapoios as to kanei move.

 

nomizo oti exei sta properties kati tetia, an kai nomizo oti mono i gms,admins vlepoun se announce otan beni enas clan leder! tha to psakso :P

 

an xrisimopois Umrella Pack tote pigene umbrella.properties

 

# Announce it when a clan leader logs in

ShowClanLeaderLogin = True

  • 0
Posted

To exw dei se arketous server auto pou sou lew :)

kati vrika sto forum tou l2jserver an leitourgisei tha to postarw kai edw na uparxei kai gia ta max cheaters member!!! :P

 

 

EDITED: Telika auto doulevei men.. alla oxi swta. An kapoios mporei na to "diothosi" as to kanei http://www.l2jserver.com/forum/thread.php?threadid=24690&hilight=lord+announce

Thanks.

  • 0
Posted

To exw dei se arketous server auto pou sou lew  :)

kati vrika sto forum tou l2jserver an leitourgisei tha to postarw kai edw  na uparxei kai gia ta max cheaters member!!!  :P

 

 

EDITED: Telika auto doulevei men.. alla oxi swta. An kapoios mporei na to "diothosi" as to kanei http://www.l2jserver.com/forum/thread.php?threadid=24690&hilight=lord+announce

Thanks.

 

dld ti problem exei

  • 0
Posted

Otan mpaineis o opoiosdipote character xwris na einai lord to leei... kai na exeis kastro leei lord of castle with nane nocastle logged in to the game.

Alla den kserw na to ftiaksw egw :-\ EGw exw dei   Otan mpainei kapoios Lord Leei Announcements: Lord of (castle) (name char) has just logged in.

 

EDIT: Den pisteva oti einai toso duskolo  sto na ftiaxtei to code gia lord announce. :P

  • 0
Posted

1. English forum...speak english for the sake of god.

2. DutyKiller you spam...Your post is TOTALLY pointless and useless..Someone -1 pl0x

3. This is done by java, in the EnterWorld.java file.

 

Should look smth like this

 

If (activeChar.isCastleLord( x ))

{

AnnounceToAll("Castle lord " + activeChar.getname + " of castle " + castle(x).getname + " has logged in.")

}

Where x = the code of the castle...(1-9)

 

THIS IS NOT A CORRECT CODE! I have wrote the way how it should look like. If you wanna get it working and you dont know java let me know. I will make a share of this kind...

 

4. About "ShowClanLeaderLogin = True" that is for L2Emu only...

  • 0
Posted

Check this  ;D

 

 

Index: D:/Workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java
===================================================================
--- D:/Workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java	(revision 933)
+++ D:/Workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java	(working copy)
@@ -36,6 +36,7 @@
import net.sf.l2j.gameserver.communitybbs.Manager.RegionBBSManager;
import net.sf.l2j.gameserver.datatables.MapRegionTable;
import net.sf.l2j.gameserver.handler.AdminCommandHandler;
+import net.sf.l2j.gameserver.instancemanager.CastleManager;
import net.sf.l2j.gameserver.instancemanager.PetitionManager;
import net.sf.l2j.gameserver.model.L2Clan;
import net.sf.l2j.gameserver.model.L2Effect;
@@ -287,7 +288,15 @@
		}

		if (activeChar.getClan() != null)
+		{
			activeChar.sendPacket(new PledgeSkillList(activeChar.getClan()));
+			int castleId = CastleManager.getCharCastle(activeChar);
+			if (activeChar.isCastleLord(castleId) && castleId!=-1);
+			{
+				Announcements.getInstance().announceToAll("The Catle lord from "
+						+CastleManager.castleName(castleId)+", has Logged into the game.");
+			}
+		}

		RegionBBSManager.getInstance().changeCommunityBoard();

Index: D:/Workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/instancemanager/CastleManager.java
===================================================================
--- D:/Workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/instancemanager/CastleManager.java	(revision 933)
+++ D:/Workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/instancemanager/CastleManager.java	(working copy)
@@ -26,6 +26,7 @@
import net.sf.l2j.L2DatabaseFactory;
import net.sf.l2j.gameserver.model.L2Clan;
import net.sf.l2j.gameserver.model.L2Object;
+import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.model.entity.Castle;


@@ -50,7 +51,7 @@
     
     // =========================================================
     // Data Field
-    private List<Castle> _Castles;
+    private static List<Castle> _Castles;
     
     // =========================================================
     // Constructor
@@ -91,7 +92,7 @@

     public void reload()
     {
-    	this.getCastles().clear();
+    	CastleManager.getCastles().clear();
     	this.load();
     }

@@ -266,9 +267,56 @@
         return -1;
     }

-    public final List<Castle> getCastles()
+    public final static List<Castle> getCastles()
     {
         if (_Castles == null) _Castles = new FastList<Castle>();
         return _Castles;
     }
+    
+    public static int getCharCastle(L2PcInstance activeChar)
+    {
+    	L2Clan clan = activeChar.getClan();
+    	if (clan == null) return -1;
+        Castle castle;
+        for (int i = 0; i < getCastles().size(); i++)
+        {
+            castle = getCastles().get(i);
+            if (castle != null && castle.getOwnerId() == clan.getClanId()) return i;
+        }
+        return -1;
+    	
+    }
+    
+    public static String castleName(int id)
+    {
+		String _castleName;
+    	if (id<1||id>9)
+    	{
+    		_castleName = "noCastle";
+    		return _castleName;
+    	}
+    	switch(id)
+    	{
+    	case 1:
+    		return _castleName = "Gludio";
+    	case 2:
+    		return _castleName ="Dion";
+    	case 3:
+    		return _castleName ="Giran";
+    	case 4:
+    		return _castleName ="Oren";
+    	case 5:
+    		return _castleName ="Aden";
+    	case 6:
+    		return _castleName ="Innadril";
+    	case 7:
+    		return _castleName ="Goddard";
+    	case 8:
+    		return _castleName ="Rune";
+    	case 9:
+    		return _castleName ="Schuttgart";
+    	default:
+    		return _castleName ="None";
+    	}
+    }
}
\ No newline at end of file

 

 

It's from L2J Forum !!!

  • 0
Posted

Check this ;D

 

 

Index: D:/Workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java
===================================================================
--- D:/Workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java	(revision 933)
+++ D:/Workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java	(working copy)
@@ -36,6 +36,7 @@
import net.sf.l2j.gameserver.communitybbs.Manager.RegionBBSManager;
import net.sf.l2j.gameserver.datatables.MapRegionTable;
import net.sf.l2j.gameserver.handler.AdminCommandHandler;
+import net.sf.l2j.gameserver.instancemanager.CastleManager;
import net.sf.l2j.gameserver.instancemanager.PetitionManager;
import net.sf.l2j.gameserver.model.L2Clan;
import net.sf.l2j.gameserver.model.L2Effect;
@@ -287,7 +288,15 @@
		}

		if (activeChar.getClan() != null)
+		{
			activeChar.sendPacket(new PledgeSkillList(activeChar.getClan()));
+			int castleId = CastleManager.getCharCastle(activeChar);
+			if (activeChar.isCastleLord(castleId) && castleId!=-1);
+			{
+				Announcements.getInstance().announceToAll("The Catle lord from "
+						+CastleManager.castleName(castleId)+", has Logged into the game.");
+			}
+		}

		RegionBBSManager.getInstance().changeCommunityBoard();

Index: D:/Workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/instancemanager/CastleManager.java
===================================================================
--- D:/Workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/instancemanager/CastleManager.java	(revision 933)
+++ D:/Workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/instancemanager/CastleManager.java	(working copy)
@@ -26,6 +26,7 @@
import net.sf.l2j.L2DatabaseFactory;
import net.sf.l2j.gameserver.model.L2Clan;
import net.sf.l2j.gameserver.model.L2Object;
+import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.model.entity.Castle;


@@ -50,7 +51,7 @@

    // =========================================================
    // Data Field
-    private List<Castle> _Castles;
+    private static List<Castle> _Castles;

    // =========================================================
    // Constructor
@@ -91,7 +92,7 @@

    public void reload()
    {
-    	this.getCastles().clear();
+    	CastleManager.getCastles().clear();
    	this.load();
    }

@@ -266,9 +267,56 @@
        return -1;
    }

-    public final List<Castle> getCastles()
+    public final static List<Castle> getCastles()
    {
        if (_Castles == null) _Castles = new FastList<Castle>();
        return _Castles;
    }
+    
+    public static int getCharCastle(L2PcInstance activeChar)
+    {
+    	L2Clan clan = activeChar.getClan();
+    	if (clan == null) return -1;
+        Castle castle;
+        for (int i = 0; i < getCastles().size(); i++)
+        {
+            castle = getCastles().get(i);
+            if (castle != null && castle.getOwnerId() == clan.getClanId()) return i;
+        }
+        return -1;
+    	
+    }
+    
+    public static String castleName(int id)
+    {
+		String _castleName;
+    	if (id<1||id>9)
+    	{
+    		_castleName = "noCastle";
+    		return _castleName;
+    	}
+    	switch(id)
+    	{
+    	case 1:
+    		return _castleName = "Gludio";
+    	case 2:
+    		return _castleName ="Dion";
+    	case 3:
+    		return _castleName ="Giran";
+    	case 4:
+    		return _castleName ="Oren";
+    	case 5:
+    		return _castleName ="Aden";
+    	case 6:
+    		return _castleName ="Innadril";
+    	case 7:
+    		return _castleName ="Goddard";
+    	case 8:
+    		return _castleName ="Rune";
+    	case 9:
+    		return _castleName ="Schuttgart";
+    	default:
+    		return _castleName ="None";
+    	}
+    }
}
\ No newline at end of file

 

 

It's from L2J Forum !!!

 

 

this is a problem and I can not correct it. Is it possible to create the code;

  • 0
Posted

some1 convert it to Gracia Final? Does ti work?

 

Dont bump old topics. Its really small thing, so you shouldnt have any problem to add it.

Guest
This topic is now closed to further replies.


  • Posts

    • Hello guys, gh0t from gh0tstudio here. This time we are putting to sale this beafitul landing page for your next server. Lineage 2 Server Landing Page Template u can check it here LINEAGE 2 DEMO SITE   Technology Stack - React 18 with TypeScript - Tailwind CSS for styling - Framer Motion for animations - Vite for fast development and builds - Multi-language support (i18n ready) Responsive Design The template is fully responsive and optimized for all screen sizes. Desktop, tablet, and mobile layouts have been carefully crafted to provide the best user experience on any device. The mobile version includes a unique notch-style hero design with custom clip paths. What is Included - Complete landing page source code - Hero section with parallax scroll effect - Server information section with animated cards - Character classes showcase with interactive gallery - Registration form (frontend only, styled and validated) - Donation packages display section - Download section for game client - Sticky navigation with transparency effects - Footer with social links - Multi-language system (Spanish/English ready) - All animations and transitions - Clean, documented code structure - Easy to customize colors and content   What is Not Included - Backend server or API - User registration panel/dashboard - Payment processing system for donations - Database integration - Connection to L2 game server - Online player counter module - Account management system - Hosting or domain   The template provides the complete frontend experience.  Price: $150 USD     Contact For purchase inquiries or questions about the template, please reach out directly.
    • 流量套利 + SMM 面板 — 强大的增长组合. 通过社交信号加强推广活动,提高信任度和转化率,加速扩张。 为套利专员和 SMM 提供的所有工具 — 在一个地方. 有效链接: SMM 面板: 前往 – 推广您的社交媒体账户。 其他服务和产品: 数字商品商店(网站): 前往 商店 Telegram 机器人: 前往 – 通过 Telegram 信使方便访问商店。 虚拟号码服务: 前往 用于购买 Telegram Stars 的 Telegram 机器人: 前往 – 在 Telegram 中快速且优惠地购买 Stars。 SMM 面板: 前往 – 推广您的社交媒体账户。 我们想向您展示当前促销和特别优惠列表,用于购买我们服务的产品和服务: 1. 您可以在首次购买时使用促销代码:SOCNET(15% 折扣) 2. 获取 $1 商店余额或 10–20% 折扣——只需在我们网站注册后按以下模板填写您的用户名:"SEND ME BONUS, MY USERNAME IS..." ——您需要在我们的论坛主题中发布! 3. SMM 面板首次试用可获得 $1:只需在我们的网站(Support)提交主题为 “Get Trial Bonus” 的工单。 4. 我们的 Telegram 频道和 Stars 购买机器人中每周都会赠送 Telegram Stars! 新闻: ➡ Telegram 频道: https://t.me/accsforyou_shop ➡ WhatsApp 频道: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器: https://discord.gg/y9AStFFsrh 联系方式和支持: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • 流量套利 + SMM 面板 — 强大的增长组合. 通过社交信号加强推广活动,提高信任度和转化率,加速扩张。 为套利专员和 SMM 提供的所有工具 — 在一个地方. 有效链接: SMM 面板: 前往 – 推广您的社交媒体账户。 其他服务和产品: 数字商品商店(网站): 前往 商店 Telegram 机器人: 前往 – 通过 Telegram 信使方便访问商店。 虚拟号码服务: 前往 用于购买 Telegram Stars 的 Telegram 机器人: 前往 – 在 Telegram 中快速且优惠地购买 Stars。 SMM 面板: 前往 – 推广您的社交媒体账户。 我们想向您展示当前促销和特别优惠列表,用于购买我们服务的产品和服务: 1. 您可以在首次购买时使用促销代码:SOCNET(15% 折扣) 2. 获取 $1 商店余额或 10–20% 折扣——只需在我们网站注册后按以下模板填写您的用户名:"SEND ME BONUS, MY USERNAME IS..." ——您需要在我们的论坛主题中发布! 3. SMM 面板首次试用可获得 $1:只需在我们的网站(Support)提交主题为 “Get Trial Bonus” 的工单。 4. 我们的 Telegram 频道和 Stars 购买机器人中每周都会赠送 Telegram Stars! 新闻: ➡ Telegram 频道: https://t.me/accsforyou_shop ➡ WhatsApp 频道: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器: https://discord.gg/y9AStFFsrh 联系方式和支持: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • Traffic arbitrage + SMM panel — a powerful combination for growth. Strengthen campaigns with social signals, increase trust and conversion, scale faster. All tools for arbitrage specialists and SMM — in one place. Active links: SMM Panel: Go to – promotion of your social media accounts. Other services and products: Digital goods store (Website): Go to Store Telegram bot: Go to – convenient access to the store via the Telegram messenger. Virtual numbers service: Go to Telegram bot for purchasing Telegram Stars: Go to – fast and profitable purchase of Stars in Telegram. SMM Panel: Go to – promotion of your social media accounts. We want to present to you the current list of promotions and special offers for purchasing products and services of our service: 1. You can use a promo code for your first purchase: SOCNET (15% discount) 2. Get $1 on your store balance or a 10–20% discount — just write your username after registering on our website using the following template: "SEND ME BONUS, MY USERNAME IS..." – you need to post this in our forum thread! 3. Get $1 for the first trial launch of the SMM Panel: just open a ticket with the subject “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our bot for purchasing stars! News: ➡ Telegram channel: https://t.me/accsforyou_shop ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord server: https://discord.gg/y9AStFFsrh Contacts and support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
  • 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