mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-13 10:58:20 +00:00
[BUG] Fix for Group Leader Disband Issue
Added public/private class for oldleadername so we can save the previous leader name when the entity is destroyed then allow us to transfer leadership. Adjusted DelmemberOOZ and in zone functions to include removal of the old leader when disbanding.
This commit is contained in:
+12
-1
@@ -877,7 +877,7 @@ void WorldServer::HandleMessage(uint16 opcode, const EQ::Net::Packet &p)
|
||||
if (gl->zoneid == zone->GetZoneID() && gl->instance_id == zone->GetInstanceID())
|
||||
break;
|
||||
|
||||
entity_list.SendGroupLeave(gl->gid, gl->member_name);
|
||||
entity_list.SendGroupLeave(gl->gid, gl->member_name, gl->checkleader);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -1114,6 +1114,17 @@ void WorldServer::HandleMessage(uint16 opcode, const EQ::Net::Packet &p)
|
||||
break;
|
||||
}
|
||||
|
||||
case ServerOP_ChangeGroupLeader: {
|
||||
ServerGroupLeader_Struct *fgu = (ServerGroupLeader_Struct *) pack->pBuffer;
|
||||
if (zone) {
|
||||
if (fgu->zoneid == zone->GetZoneID()) {
|
||||
break;
|
||||
}
|
||||
entity_list.SendGroupLeader(fgu->gid, fgu->leader_name, fgu->oldleader_name);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case ServerOP_OOZGroupMessage: {
|
||||
ServerGroupChannelMessage_Struct* gcm = (ServerGroupChannelMessage_Struct*)pack->pBuffer;
|
||||
if (zone) {
|
||||
|
||||
Reference in New Issue
Block a user