Пример #1
0
        private void PreparePlayersToFight()
        {
            foreach (Mobile mobile in m_SurvivorPlayerList)
            {
                PlayerMobile player = World.FindMobile(mobile.Serial) as PlayerMobile;

                this.CleanPlayer(player);

                player.Blessed   = true;
                player.Paralyzed = true;
                player.Hidden    = true;

                if (player.Alive == false)
                {
                    player.Resurrect();
                }

                IMount mount = player.Mount;
                if (mount != null)
                {
                    mount.Rider = null;
                    ShrinkItem shrunkenPet = new ShrinkItem((BaseCreature)mount);
                    player.Backpack.DropItem(shrunkenPet);
                    mobile.SendMessage("Este evento nao permite entrar com animais.");
                    mobile.SendMessage("Ele foi guardado e seu banco.");
                }

                // Salva posicao antes de puxar para o local do evento
                m_SurvivorPlayerHomeLocationList.Add(mobile, mobile.Location);
                m_SurvivorPlayerHomeLocationMapList.Add(mobile, mobile.Map);

                // Incognito - Remove Backpack
                player.SetIncognitoToEvent();
                player.DropAllItensToBackpack();
                player.Backpack.Visible = false;

                // Seta Time e Teleport
                this.MovePlayerToSpot(player);

                m_SurvivorPlayerLivesList.Add(player.Serial, qtInitialLives);
                player.SendMessage(string.Format("Voce recebeu {0} vidas iniciais!", qtInitialLives));
            }
        }