Jump to content
  • 0

Annonymous Olympiad (Acis)


Question

Posted (edited)

Hi guys, someone got Annonymous olympiad for acis?

 

The mods have something like that.

 

When players are on Olympiad:

 

Change name to Fighter1; UknowPlayer; etc.

Don't show clan/ally crest.

When someone wanna spect the match show Player1 vs Player2.

 

I got this but, don't working fine; Players see others die and name colored blue; after olympiad two participants got the same name (one of them, can't join to the server again)

Edited by Miracles

5 answers to this question

Recommended Posts

  • 0
Posted

Sounds logical if you keep twice the title, the packet structure is fucked up.

@@ -140,11 +146,28 @@
        else
            writeS(_activeChar.getTitle());
       
-       writeD(_activeChar.getClanId());
-       writeD(_activeChar.getClanCrestId());
-       writeD(_activeChar.getAllyId());
-       writeD(_activeChar.getAllyCrestId());
+       // UnknownPlayer Olympiad
+       if(_activeChar.isInOlympiadMode())
+           writeS("Olympiad");
+       else
+           writeS(_activeChar.getTitle());

Finally, never edits the name, you probably don't revert it aswell. You fucked up PMs system, and all system based on character name.

_name = player.setName("UnknownPlayer");

>

_name = "UnknownPlayer";
  • 0
Posted (edited)

Thanks trysk i can fix it :)

 

Got another question about summon title, can give a look? 

Pets always get the Owner name on title; can't find a way to change it.

	public synchronized static L2PetInstance spawnPet(NpcTemplate template, L2PcInstance owner, ItemInstance control)
	{
		if (L2World.getInstance().getPet(owner.getObjectId()) != null)
			return null; // owner has a pet listed in world
			
		L2PetInstance pet = restore(control, template, owner);
		// add the pet instance to world
		if (pet != null)
		{
			// UnknownPlayer Olympiad 
			if (owner.isInOlympiadMode())
				pet.setTitle("UnknownPlayer");
			else
				pet.setTitle(owner.getName());
			L2World.getInstance().addPet(owner.getObjectId(), pet);
		}
		
		return pet;
	}

Edited by Miracles
  • 0
Posted

I told you to dip around summon/pet.setTitle( ..

 

L2SkillSummon.java

 

 

summon.setTitle(activeChar.getName());

 

Try to change this one as well.

  • 0
Posted

Totally shitcode! Use latest L2J style, like this pattern - player.getAppearance(). Add the new constants and use everywhere first, if they not null. Universal system for any l2off and custom events.

 

aCis uses cropped.

  • 0
Posted

Sweets; i do this

		summon.setName(summonTemplate.getName());
		if (activeChar.isInOlympiadMode())
		{
			summon.setTitle("UnknownPlayer");
		}
		else
		summon.setTitle(activeChar.getName());
		summon.setExpPenalty(_expPenalty);
		

But still, nothing.

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