Page 1 of 1
visibility of clan/ally crest
Posted: Tue Jul 20, 2010 8:23 pm
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)

Please, give me a hint which class(es) should I look into to complete my changes.
Thx in advance,
Tom
Re: visibility of clan/ally crest
Posted: Wed Jul 21, 2010 2:22 pm
by JIV
com.l2jserver.gameserver.network.serverpackets.CharInfo
Re: visibility of clan/ally crest
Posted: Wed Jul 21, 2010 3:52 pm
by rychoo84
lol JIV, you know this project probably better than your own pocket content

Thanks very much...
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.
Re: visibility of clan/ally crest
Posted: Sun Jun 19, 2011 10:18 pm
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); }