Jump to content
  • 0

[Question]ANNOUNCEMENTS


Question

Posted

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?;(

6 answers to this question

Recommended Posts

  • 0
Posted

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

  • 0
Posted

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!");
+			}
+		}
+	}

  • 0
Posted

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.
×
×
  • Create New...