visibility of clan/ally crest

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
rychoo84
Posts: 58
Joined: Fri Jan 01, 2010 11:26 am
Location: Breslau

visibility of clan/ally crest

Post by rychoo84 »

L2J Revision n/a
L2JDP Revision n/a
Hi,
I'm working under couple of variations of L2J built-in TvT Event (as already mentioned in one of the previous posts regarding LMS Event). ATM I'm facing a problem with visibility of ally/clan crest and ally/clan name. I mean I'd like to make the clan/ally crest invisible + clan/ally name set to e.g. "xxxx" during the event (look at pic below)
Image
Please, give me a hint which class(es) should I look into to complete my changes.
Thx in advance,
Tom
User avatar
JIV
L2j Veteran
L2j Veteran
Posts: 1882
Joined: Sun Jan 06, 2008 8:17 pm
Location: Slovakia
Contact:

Re: visibility of clan/ally crest

Post by JIV »

com.l2jserver.gameserver.network.serverpackets.CharInfo
User avatar
rychoo84
Posts: 58
Joined: Fri Jan 01, 2010 11:26 am
Location: Breslau

Re: visibility of clan/ally crest

Post by rychoo84 »

lol JIV, you know this project probably better than your own pocket content :)
Thanks very much...
Image

I've simply added check for the DM participant and voila - everything working perfect now.

Code: Select all

 if (!_activeChar.isCursedWeaponEquipped() && !DmEvent.isPlayerParticipant(_activeChar.getObjectId())){	writeD(_activeChar.getClanId());	writeD(_activeChar.getClanCrestId());	writeD(_activeChar.getAllyId());	writeD(_activeChar.getAllyCrestId());}else{	writeD(0);	writeD(0);	writeD(0);	writeD(0);} 
P.S. I've never tried out punisher's DM version (check in Custom Mods board) but you should put inside something similar if you don't have it yet. Helps avoiding so called "teaming" among the clans/alliances.
pelotazos
Posts: 58
Joined: Tue Jun 03, 2008 4:52 pm

Re: visibility of clan/ally crest

Post by pelotazos »

Thank you very much, I will bring this to the event is completely anonymous and title name change.

Code: Select all

            if (deathmatch.getInstance().deathmatchregistrados(_activeChar) == 0)            {                writeS(_activeChar.getAppearance().getVisibleName());            }            else            {                writeS("EternalDarkness");            }

Code: Select all

            if (gmSeeInvis)            {                writeS("Invisible");            }            else            {                if (deathmatch.getInstance().deathmatchregistrados(_activeChar) == 0)                {                    writeS(_activeChar.getAppearance().getVisibleTitle());                }                else                {                    writeS("Participante");                }            }
Now I try to change the look of the items in their hands, but I can not change it. If I put this the players can not see each other.

Code: Select all

             if (deathmatch.getInstance().deathmatchregistrados(_activeChar) == 0)            {                writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_RHAND));                writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_LHAND));            }            else            {                writeD(13789);                writeD(0);            }
Post Reply