Jump to content
  • 0

Question

Posted (edited)

hey 

i was trying to set a "cover" name in olympiad to avoid a bit the feed

so i start searching how to do this.

anyway i did that

 

_playerOne._originalTitleTvT = _playerOne.getName();
_playerOne.setName("Guest");
_playerOne.broadcastUserInfo();
_playerOne.setIsInOlympiadMode(true);
_playerOne.setIsOlympiadStart(false);
_playerOne.setOlympiadSide(1);
 
_playerTwo._originalTitleCTF = _playerTwo.getName();
_playerTwo.setName("Challenger");
_playerTwo.broadcastUserInfo();
_playerTwo.setIsInOlympiadMode(true);
_playerTwo.setIsOlympiadStart(false);
_playerTwo.setOlympiadSide(2);
 
 
 
player.getStatus().startHpMpRegeneration();
player.setCurrentCp(player.getMaxCp());
player.setCurrentHp(player.getMaxHp());
player.setCurrentMp(player.getMaxMp());
player.setName(_playerOne._originalTitleTvT);
player.setName(_playerTwo._originalTitleCTF);
player.broadcastUserInfo();
player.setIsInOlympiadMode(false);
player.setIsOlympiadStart(false);
player.setOlympiadSide(-1);
player.setOlympiadGameId(-1);
player.sendPacket(new ExOlympiadMode(0));
 
so when they join in oly their name changed to Challenger and Guest and when they tp back its going to their real name.
but if some1 get a dc and he relog his name is Challenger or Guest not his real name.. what should i do ? 
Edited by te0x

3 answers to this question

Recommended Posts

  • 0
Posted

You should just mod the CharInfo packet, so if it's at oly to display "Guest" and "Challenger" and not rly change their names :)

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