Jump to content
  • 0

Olympiad Teleport


Question

Posted

Hello guys ,

 

I am looking for a code to teleport the player when x seconds before olympiad match starts in the initial posision . ( to avoid the door bug )

 

I have searched the forum but nothink :|

5 answers to this question

Recommended Posts

  • 0
Posted

Hello guys ,

 

I am looking for a code to teleport the player when x seconds before olympiad match starts in the initial posision . ( to avoid the door bug )

 

I have searched the forum but nothink :|

 

 

you should search at eclipse at olympiad files... use searcher *45*  and change it :p 

 

something like that u must do as i remember u dont need code for that..

  • 0
Posted

 

you should search at eclipse at olympiad files... use searcher *45*  and change it :p 

 

something like that u must do as i remember u dont need code for that..

 

Yes but i need the code for teleport back to the initial spawn .

  • 0
Posted

@Override
protected final boolean portPlayersToArena(List<Location> spawns)
{
	boolean result = true;
	try
	{
		result &= portPlayerToArena(_playerOne, spawns.get(0), _stadiumID);
		result &= portPlayerToArena(_playerTwo, spawns.get(spawns.size() / 2), _stadiumID);
	}
	catch (Exception e)
	{
		_log.log(Level.WARNING, "", e);
		return false;
	}
	return result;
}

 

play with it

  • 0
Posted

@Override
protected final boolean portPlayersToArena(List<Location> spawns)
{
	boolean result = true;
	try
	{
		result &= portPlayerToArena(_playerOne, spawns.get(0), _stadiumID);
		result &= portPlayerToArena(_playerTwo, spawns.get(spawns.size() / 2), _stadiumID);
	}
	catch (Exception e)
	{
		_log.log(Level.WARNING, "", e);
		return false;
	}
	return result;
}

 

play with it

 

i think thats for frozen if i am not wrong .

 

i have this :

 

// Battle start countdown, second part (10-0)
			case BATTLE_COUNTDOWN_SECOND:
			{
				if (_countDown > 0)
				{
					SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.THE_GAME_WILL_START_IN_S1_SECOND_S);
					sm.addNumber(_countDown);
					_zone.broadcastPacket(sm);
				}

				delay = getDelay(BATTLE_START_TIME_SECOND);
				if (_countDown <= 0)
					_state = GameState.BATTLE_STARTED;

				break;

 

  • 0
Posted

thats definitely  not from frozen. i never worked on a fork. The code its in the OlympiadGameNormal.java and the one you show me its in the OlympiadGametask.java which changes the state of the game. Just search in OlympiadGameNormal.java

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