Skip to content

[HELP] Olympiad

Featured Replies

Hello !

I have a L2j server and i want to modify the oly

 

In this moment when 2 players or more go to oly and they battle when 1 of them die u must w8 like 1 and a half minute to announce the winner and give the points.

I want to announce the winner in the moment that one player dies. How can i do that?

 

here is my olympiad.java

http://www.4shared.com/file/196240369/2a893cf2/Olympiad.html

 

Who know how to modifi it pls do it and upload here. :D or tell me what to do


Hello !
I have a L2j server and i want to modify the oly
 
In this moment when 2 players or more go to oly and they battle when 1 of them die u must w8 like 1 and a half minute to announce the winner and give the points.
I want to announce the winner in the moment that one player dies. How can i do that?
 
here is my olympiad.java
http://www.4shared.com/file/196240369/2a893cf2/Olympiad.html
 
Who know how to modifi it pls do it and upload here. :D or tell me what to do
  • In this moment when 2 players or more go to oly and they battle when 1 of them die u must w8 like 1 and a half minute to announce the winner and give the points.
    from config

  • I want to announce the winner in the moment that one player dies. How can i do that?
     
    Fight preparation

               catch (Exception e)  
			{
               	_aborted = true;
               	clearPlayers();
               }
               _log.info("Olympiad System: Game - " + id + ": "+ _playerOne.getName() + " Vs " + _playerTwo.getName());
+				Announcements.getInstance().announceToAll("Olympiad System: Game - " + id + ": "+ _playerOne.getName() + " vs " + _playerTwo.getName());
   		}
           else 
		{
           	_aborted = true;
           	clearPlayers();
           	return;
           }
   	}

 

validateWinner

   		else
   		{
   			result=" tie";
   			_sm = new SystemMessage(SystemMessageId.THE_GAME_ENDED_IN_A_TIE);
               broadcastMessage(_sm, true);
   		}
           _log.info("Olympia Result: "+_playerOneName+" vs "+_playerTwoName+" ... "+result);
+			Announcements.getInstance().announceToAll("Olympiad System: " +result);

   		playerOneStat.set(COMP_DONE, playerOnePlayed + 1);
   		playerTwoStat.set(COMP_DONE, playerTwoPlayed + 1);

 

yes thats a valid patch from xAddytzu 1 thing missing to dont have double announcement delete the other one

  • Author

listen to me...:|

i dont want the winner to be announced to the whole server

i want to validate the winner in the moment that 1 of the players die...

listen to me...:|

i dont want the winner to be announced to the whole server

i want to validate the winner in the moment that 1 of the players die...

 

ahh so not the announce but the point reward?

  • Author

not the announce like a gm does with the //announce command

I want just validate the winner in the moment that 1 player died cuz i must w8 like 1 minute after i win to validate the winner

Create an account or sign in to comment

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.