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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock