[FIXED]Clan Privileges
-
- Posts: 40
- Joined: Tue Oct 14, 2014 10:22 am
[FIXED]Clan Privileges
Anyone solved the clan privileges for the new Ertheia client? I try send the privilege in userinfo as normaly but it wont effect the buttons in the client clan window. It's possible to see leader, and set the title but not any other actions, all buttons are disabled. Any new ex packet involved here?
Thank you
Thank you
- UnAfraid
- L2j Veteran
- Posts: 4199
- Joined: Mon Jul 23, 2007 4:25 pm
- Location: Bulgaria
- Contact:
-
- Posts: 40
- Joined: Tue Oct 14, 2014 10:22 am
Re: Clan Privileges
Thank you Unafraid, really great job!
-
- Posts: 40
- Joined: Tue Oct 14, 2014 10:22 am
Re: Clan Privileges
A bit confused, can someone give me the L2JServer/L2JDatapack for ertheia from L2JServer.com ? I was using the Experimental one, but seems outdated. Is this ertheia now? https://github.com/L2J/L2J_Server
-
- L2j Veteran
- Posts: 855
- Joined: Mon May 03, 2010 8:38 am
- Location: France
Re: Clan Privileges
The master L2J branch is still on H5, but we opened an ertheia branch :
https://github.com/L2J/L2J_Server/tree/ertheia
Unlike the L2J_Server_EXPERIMENTAL started by BattleCruiser, we focused on client compatibility for now, aka packets, so there is no Ertheia there for instance.
https://github.com/L2J/L2J_Server/tree/ertheia
Unlike the L2J_Server_EXPERIMENTAL started by BattleCruiser, we focused on client compatibility for now, aka packets, so there is no Ertheia there for instance.
-
- Posts: 40
- Joined: Tue Oct 14, 2014 10:22 am
Re: Clan Privileges
No problem mate, thanks for the super fast reply and sorry for the client topic i made few days ago, didn't know its not allowed.
-
- Posts: 40
- Joined: Tue Oct 14, 2014 10:22 am
Re: Clan Privileges
I just tested the Ertheia from L2J_Server and the clan privs are not working, made clan level 5, and all privs are blank, did i mistake somewhere? I used Ertheia Datapack/Server clean installed.
-
- L2j Veteran
- Posts: 855
- Joined: Mon May 03, 2010 8:38 am
- Location: France
Re: Clan Privileges
Weird it's working fine for us.
Maybe we didn't push something.
Maybe we didn't push something.
-
- Posts: 40
- Joined: Tue Oct 14, 2014 10:22 am
Re: Clan Privileges
Can you push Sdw again to make sure its up to date please. I am sure i took correctly from git the Ertheia L2J_Server / Ertheia L2J_DataPack.. i choose only those two and setup the server, and when i get in game all my privs are blank. I have clan level 5 and am GM currently, should work i guess ^^
Let me know when you push so i pull and will let you know if its fixed.
Let me know when you push so i pull and will let you know if its fixed.
-
- L2j Veteran
- Posts: 855
- Joined: Mon May 03, 2010 8:38 am
- Location: France
Re: Clan Privileges
I think UnAfraid missed PledgeReceivePowerInfo, gonna ask him when he gets back.
-
- Posts: 40
- Joined: Tue Oct 14, 2014 10:22 am
Re: Clan Privileges
Can you post the PledgeReceivePowerInfo.java code here? i'll take a look and see if that was the case, can be yeah!
-
- L2j Veteran
- Posts: 855
- Joined: Mon May 03, 2010 8:38 am
- Location: France
Re: Clan Privileges
The issue is this line :
which always return 0, even in H5. I don't remember what he fixed, sorry.
Code: Select all
writeD(_member.getClan().getRankPrivs(_member.getPowerGrade()).getBitmask()); // privileges
-
- Posts: 40
- Joined: Tue Oct 14, 2014 10:22 am
Re: Clan Privileges
I doubt the issue is from there, i am a clan leader.. and have 0 rights..
-
- L2j Veteran
- Posts: 855
- Joined: Mon May 03, 2010 8:38 am
- Location: France
Re: Clan Privileges
UserInfo sends clan leader by default, he messed up a line.
Code: Select all
if (containsMask(UserInfoType.CLAN))
{
writeH(32 + (_activeChar.getTitle().length() * 2));
writeString(_activeChar.getTitle());
writeH(_activeChar.getPledgeType());
writeD(_activeChar.getClanId());
writeD(_activeChar.getClanCrestLargeId());
writeD(_activeChar.getClanCrestId());
writeC(_activeChar.isClanLeader() ? -1 : 0x00);
writeD(_activeChar.getClanPrivileges().getBitmask());
writeD(_activeChar.getAllyId());
writeD(_activeChar.getAllyCrestId());
writeC(_activeChar.isInPartyMatchRoom() ? 0x01 : 0x00);
}
-
- Posts: 40
- Joined: Tue Oct 14, 2014 10:22 am
Re: Clan Privileges
Not working, unfortunately.
writeC(_activeChar.isClanLeader() ? -1 : 0x00); or (-1) is same because i am clan leader. But I just compiled it and tried, don't know how it works at you.. must be other file then i guess :<
writeC(_activeChar.isClanLeader() ? -1 : 0x00); or (-1) is same because i am clan leader. But I just compiled it and tried, don't know how it works at you.. must be other file then i guess :<