lliuke Posted October 13, 2012 Posted October 13, 2012 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 :| Quote
0 GsL Posted October 13, 2012 Posted October 13, 2012 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.. Quote
0 lliuke Posted October 13, 2012 Author Posted October 13, 2012 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 . Quote
0 NetU Posted October 13, 2012 Posted October 13, 2012 @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 Quote
0 lliuke Posted October 14, 2012 Author Posted October 14, 2012 @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; Quote
0 NetU Posted October 14, 2012 Posted October 14, 2012 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 Quote
Question
lliuke
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
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.