Jump to content
  • 0

Help Cover Name In Oly


te0x
 Share

Question

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
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

 Share



×
×
  • 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 Disbaled AdBlock