/// <summary>
        /// Change guild of guard (emblem on equipment) when keep is claimed
        /// </summary>
        public void ChangeGuild()
        {
            ClothingMgr.EquipGuard(this);

            Guild  guild     = Component.AbstractKeep.Guild;
            string guildname = string.Empty;

            if (guild != null)
            {
                guildname = guild.Name;
            }

            GuildName = guildname;

            if (Inventory == null)
            {
                return;
            }

            int emblem = 0;

            if (guild != null)
            {
                emblem = guild.Emblem;
            }

            InventoryItem lefthand = Inventory.GetItem(eInventorySlot.LeftHandWeapon);

            if (lefthand != null)
            {
                lefthand.Emblem = emblem;
            }

            InventoryItem cloak = Inventory.GetItem(eInventorySlot.Cloak);

            if (cloak != null)
            {
                cloak.Emblem = emblem;

                if (cloak.Emblem != 0)
                {
                    cloak.Model = 558; // change to a model that looks ok with an emblem
                }
            }

            if (IsAlive)
            {
                BroadcastLivingEquipmentUpdate();
            }
        }
 public static void RefreshTemplate(GameKeepGuard guard)
 {
     SetGuardRealm(guard);
     SetGuardGuild(guard);
     SetGuardRespawn(guard);
     SetGuardGender(guard);
     SetGuardModel(guard);
     SetGuardName(guard);
     SetBlockEvadeParryChance(guard);
     SetGuardBrain(guard);
     SetGuardSpeed(guard);
     SetGuardLevel(guard);
     SetGuardResists(guard);
     SetGuardStats(guard);
     SetGuardAggression(guard);
     ClothingMgr.EquipGuard(guard);
     ClothingMgr.SetEmblem(guard);
 }
 public void RefreshTemplate()
 {
     SetRealm();
     SetGuild();
     SetRespawnTime();
     SetGender();
     SetModel();
     SetName();
     SetBlockEvadeParryChance();
     SetBrain();
     SetSpeed();
     SetLevel();
     SetResists();
     SetStats();
     SetAggression();
     ClothingMgr.EquipGuard(this);
     ClothingMgr.SetEmblem(this);
 }