Skip to content

[Question]ANNOUNCEMENTS

Featured Replies

Tha ithela na rotisw an ginete na alaksw xroma ta announcements. gia paradigma na min fenete etsi galazia telos panton ti ine na exei gia paradigma prasino xroma.ginete? an ne pws?(enoite me java,min me pite oti prepei na xw compile pack klp)

 

 

Edit:ena deutero problem kai ipa na to kanw post edw na min anigw sinexia topics.

exw ton eskis code:

if (activeChar.isClanLeader())
        	{
        		Announcements.getInstance().announceToAll("Clan Leader: "+activeChar.getName()+" has been logged in.");	
        	}
        	else if (activeChar.isGM())	
        		return;

        }

 

omos kai tous gm tous kanei announce..(o code perastike me epitixia). auto ine sto enterworld.java to vala. pou xw kanei lathos kai kanei kai tous gm announce?;(

den tha sou poune na exeis compile pack alla ton kwdiko prepei na ton kaneis compile.

Dld prepei na ton peraseis kai meta na ton kaneis compile

  • Author

den tha sou poune na exeis compile pack alla ton kwdiko prepei na ton kaneis compile.

Dld prepei na ton peraseis kai meta na ton kaneis compile

W MPW LES NA MIN TO KSERW?PFF...

 

ps:deste kai to 2to problem

  • Author

else if (activeChar.isGM())

 

Για τσέκαρε αυτό!

ti na to tsekarw?etc to grafw afou pas kala

bale ayto sto enterworld

+		if (L2Config.ANNOUNCE_CASTLE_LORDS)
+		{
+			notifyCastleOwner(activeChar);
+		}	
+

kai prakatw ayto

+	private void notifyCastleOwner(L2PcInstance activeChar)
+	{
+		L2Clan clan = activeChar.getClan();
+		
+		if (clan != null)
+		{
+			if (clan.getHasCastle() > 0)
+			{
+				Castle castle = CastleManager.getInstance().getCastleById(clan.getHasCastle());
+				if ((castle != null) && (activeChar.getObjectId() == clan.getLeaderId()))
+					Announcements.getInstance().announceToAll("Lord " + activeChar.getName() + " Ruler Of " + castle.getName() + " Castle is Now Online!");
+			}
+		}
+	}

  • Author

bale ayto sto enterworld

+		if (L2Config.ANNOUNCE_CASTLE_LORDS)
+		{
+			notifyCastleOwner(activeChar);
+		}	
+

kai prakatw ayto

+	private void notifyCastleOwner(L2PcInstance activeChar)
+	{
+		L2Clan clan = activeChar.getClan();
+		
+		if (clan != null)
+		{
+			if (clan.getHasCastle() > 0)
+			{
+				Castle castle = CastleManager.getInstance().getCastleById(clan.getHasCastle());
+				if ((castle != null) && (activeChar.getObjectId() == clan.getLeaderId()))
+					Announcements.getInstance().announceToAll("Lord " + activeChar.getName() + " Ruler Of " + castle.getName() + " Castle is Now Online!");
+			}
+		}
+	}

pios se ipe oti thelo announce tous castle lords? tous clan leaders thelw den vlepeis?(OMG)..

problems solved..

locked

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.