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 :)

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