mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-25 11:58:17 +02:00
Kicked/Promote leader added but broke login. D/Cing now.
This commit is contained in:
parent
e89b7557b3
commit
16c9b741bf
30 changed files with 1120 additions and 211 deletions
|
@ -17,6 +17,7 @@ using FFXIVClassic_Map_Server.packets.receive.events;
|
|||
using FFXIVClassic_Map_Server.packets.send.actor.inventory;
|
||||
using FFXIVClassic_Map_Server.actors.group;
|
||||
using FFXIVClassic_Map_Server.packets.send.group;
|
||||
using FFXIVClassic_Map_Server.packets.WorldPackets.Send.Group;
|
||||
|
||||
namespace FFXIVClassic_Map_Server.Actors
|
||||
{
|
||||
|
@ -1290,8 +1291,10 @@ namespace FFXIVClassic_Map_Server.Actors
|
|||
return false;
|
||||
}
|
||||
|
||||
public void PartyOustPlayer()
|
||||
{
|
||||
public void PartyOustPlayer(string name)
|
||||
{
|
||||
SubPacket oustPacket = PartyModifyPacket.BuildPacket(playerSession, 1, name);
|
||||
QueuePacket(oustPacket);
|
||||
}
|
||||
|
||||
public void PartyLeave()
|
||||
|
@ -1302,8 +1305,10 @@ namespace FFXIVClassic_Map_Server.Actors
|
|||
{
|
||||
}
|
||||
|
||||
public void PartyPromote()
|
||||
public void PartyPromote(string name)
|
||||
{
|
||||
SubPacket promotePacket = PartyModifyPacket.BuildPacket(playerSession, 0, name);
|
||||
QueuePacket(promotePacket);
|
||||
}
|
||||
|
||||
//A party member list packet came, set the party
|
||||
|
|
|
@ -20,14 +20,14 @@ namespace FFXIVClassic_Map_Server.actors.group
|
|||
members.Add(leaderCharaId);
|
||||
}
|
||||
|
||||
public void SetLeader(uint actorId)
|
||||
public void SetLeader(uint leaderCharaId)
|
||||
{
|
||||
partyGroupWork._globalTemp.owner = (ulong)((actorId << 32) | 0xB36F92);
|
||||
partyGroupWork._globalTemp.owner = (ulong)(((ulong)leaderCharaId << 32) | 0xB36F92);
|
||||
}
|
||||
|
||||
public uint GetLeader()
|
||||
{
|
||||
return (uint)((partyGroupWork._globalTemp.owner >> 32) & 0xFFFFFFFF);
|
||||
return (uint)((ulong)(partyGroupWork._globalTemp.owner >> 32) & 0xFFFFFFFF);
|
||||
}
|
||||
|
||||
public bool IsInParty(uint charaId)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue