Add a GuildScript class with a handful of hooks.

--HG--
branch : trunk
This commit is contained in:
silinoron
2010-08-14 12:17:05 -07:00
parent d1d7c64c43
commit 8d0a058411
7 changed files with 67 additions and 7 deletions
@@ -179,7 +179,7 @@ void WorldSession::HandleGuildRemoveOpcode(WorldPacket& recvPacket)
return;
}
guild->DelMember(plGuid);
guild->DelMember(plGuid, false, true);
// Put record into guildlog
guild->LogGuildEvent(GUILD_EVENT_LOG_UNINVITE_PLAYER, GetPlayer()->GetGUIDLow(), GUID_LOPART(plGuid), 0);
@@ -389,7 +389,8 @@ void WorldSession::HandleGuildLeaveOpcode(WorldPacket& /*recvPacket*/)
return;
}
guild->DelMember(_player->GetGUID());
guild->DelMember(_player->GetGUID(), false, false);
// Put record into guildlog
guild->LogGuildEvent(GUILD_EVENT_LOG_LEAVE_GUILD, _player->GetGUIDLow(), 0, 0);