[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:
Trust
2020-12-04 19:26:16 -05:00
parent de5b7f472d
commit f854137ca0
8 changed files with 147 additions and 59 deletions
+2 -1
View File
@@ -478,8 +478,9 @@ public:
void CameraEffect(uint32 duration, uint32 intensity);
Mob* GetClosestMobByBodyType(Mob* sender, bodyType BodyType);
void ForceGroupUpdate(uint32 gid);
void SendGroupLeave(uint32 gid, const char *name);
void SendGroupLeave(uint32 gid, const char *name, bool checkleader);
void SendGroupJoin(uint32 gid, const char *name);
void SendGroupLeader(uint32 gid, const char *lname, const char *oldlname);
void SaveAllClientsTaskState();
void ReloadAllClientsTaskState(int TaskID=0);