Hello,
Im doing the clan packets, got some features working, but i'm stuck now,,
So far what I got :
-Showing Clan name
-Players can join, donate etc,
Need help with:
-Memberlist, erhmm the donation is not displaying well..
Here I got the folowing:
-When I look at other players, which are in the same clan their 'ClanName' will be white instead of yellow? (Like the guilds have, members of the same guild will show a yellow guild name)
At the PlayerSpawnPacket i got :
at position 155 the ClanID
at position 159 the ClanRank (leader etc,)
-ClanRanking, I know rank 100 is the ClanLeader, but what is the member? Seems I can't find it,, tried everything?
Someone who can help me out?
Would be appriciated. ;)
Im doing the clan packets, got some features working, but i'm stuck now,,
So far what I got :
-Showing Clan name
-Players can join, donate etc,
Need help with:
-Memberlist, erhmm the donation is not displaying well..
Here I got the folowing:
Code:
uint membercount = (uint)client.Myclan.Members.Count;
buffer = new byte[56 + (36 * client.Myclan.Members.Count)];
Packets.WriteUInt16((ushort)(buffer.Length - 8), 0, buffer);
Packets.WriteUInt16(1312, 2, buffer);
buffer[4] = 4;
int Pos = 16;
foreach (Game.ClanMembers member in Kernel.ServerClans[client.Myclan.ClanId].Members.Values)
{
Packets.WriteUInt32(membercount, 0 + Pos, buffer);
Packets.WriteString(member.Name, 4 + Pos, buffer);
Packets.WriteUInt32(member.Level, 20 + Pos, buffer);
Packets.WriteUInt16((ushort)member.Rank, 24 + Pos, buffer);
if (Kernel.Clients.ContainsKey(member.UID))
Packets.WriteUInt16(1, 26 + Pos, buffer);
Packets.WriteUInt32(member.Class, 28 + Pos, buffer);
Packets.WriteUInt32(member.Donation, 32 + Pos, buffer);
membercount -= 1;
Pos += 36;
}
-When I look at other players, which are in the same clan their 'ClanName' will be white instead of yellow? (Like the guilds have, members of the same guild will show a yellow guild name)
At the PlayerSpawnPacket i got :
at position 155 the ClanID
at position 159 the ClanRank (leader etc,)
-ClanRanking, I know rank 100 is the ClanLeader, but what is the member? Seems I can't find it,, tried everything?
Someone who can help me out?
Would be appriciated. ;)