//申请加入帮会 public void ReqJoinGuild(UInt64 guildGuid) { //帮会Guid判断 if (guildGuid == GlobeVar.INVALID_GUID) { return; } if (GameManager.gameManager.PlayerDataPool.GuildInfo.PreserveGuildGuid.Count >= GlobeVar.GUILD_PLAYERRESERVE_MAX) { return; } //玩家等级判断 if (BaseAttr.Level < GlobeVar.JOIN_GUILD_LEVEL) { Singleton <ObjManager> .GetInstance().MainPlayer.SendNoticMsg(false, "#{1780}"); //你的人物等级不足20级,无法创建帮会 return; } CG_GUILD_JOIN msg = (CG_GUILD_JOIN)PacketDistributed.CreatePacket(MessageID.PACKET_CG_GUILD_JOIN); msg.GuildGuid = guildGuid; msg.SendPacket(); }
void AKeyToJoin() { CG_GUILD_JOIN msg = (CG_GUILD_JOIN)PacketDistributed.CreatePacket(MessageID.PACKET_CG_GUILD_JOIN); msg.GuildGuid = GlobeVar.INVALID_GUID; msg.SendPacket(); }