def process(self): # Removing member DataBase.loadClub(self, self.player.club_low_id) if self.clubmembercount == 1: DataBase.AddMember(self, self.player.club_low_id, self.player.low_id, self.player.name, 0) else: DataBase.AddMember(self, self.player.club_low_id, self.player.low_id, self.player.name, 2) DataBase.Addmsg(self, self.player.club_low_id, 4, 0, self.player.low_id, self.player.name, self.player.club_role, 4) # Info AllianceLeaveOkMessage(self.client, self.player).send() MyAllianceMessage(self.client, self.player, 0).send() for player in self.plrids: if player != self.player.low_id: AllianceDataMessage( self.client, self.player, 0, self.player.club_low_id).sendWithLowID(player) AllianceChatServerMessage(self.client, self.player, 4).sendWithLowID(player) DataBase.replaceValue(self, 'clubID', 0) self.player.club_low_id = 0 DataBase.replaceValue(self, 'clubRole', 0) self.player.club_role = 0
def process(self): self.player.club_role = 1 DataBase.replaceValue(self, 'clubRole', 1) DataBase.replaceValue(self, 'clubID', self.player.club_low_id) # Member adding DataBase.AddMember(self, self.player.club_low_id, self.player.low_id, self.player.name, 1) DataBase.Addmsg(self, self.player.club_low_id, 4, 0, self.player.low_id, self.player.name, self.player.club_role, 3) # Info AllianceJoinOkMessage(self.client, self.player).send() MyAllianceMessage(self.client, self.player, self.player.club_low_id).send() AllianceStreamMessage(self.client, self.player, self.player.club_low_id, 0).send() DataBase.loadClub(self, self.player.club_low_id) for i in self.plrids: AllianceChatServerMessage(self.client, self.player, 3).sendWithLowID(i)