Jump to content
  • 0

[HELP] Olympiad


Question

Posted

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

5 answers to this question

Recommended Posts

  • 0
Posted


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);

 

  • 0
Posted

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...

  • 0
Posted

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?

  • 0
Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...