Jump to content
  • 0

Annonymous Olympiad (Acis)


Miracles

Question

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

5 answers to this question

Recommended Posts

  • 0

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

  • 0

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

  • 0

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

 

L2SkillSummon.java

 

 

summon.setTitle(activeChar.getName());

 

Try to change this one as well.

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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.

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