예제 #1
0
 public SurvivorGump(Mobile from, SurvivorStone pSurvivorStone)
     : this()
 {
     caller        = from;
     SurvivorStone = pSurvivorStone;
     this.InitializeGump();
 }
예제 #2
0
        public SurvivorInviteGump(Mobile from, SurvivorStone pSurvivorStone)
            : this()
        {
            caller = from;

            SurvivorStone = pSurvivorStone;
        }
        public void AutoStartEvent()
        {
            // Sorteia alguma SurvivorStone pelo mundo
            List <SurvivorStone> survivorStoneList = new List <SurvivorStone>();

            foreach (Item item in World.Items.Values)
            {
                if (item is SurvivorStone && ((SurvivorStone)item).IsArenaConfigValid())
                {
                    survivorStoneList.Add((SurvivorStone)item);
                }
            }

            if (survivorStoneList.Count > 0)
            {
                currentSurvivorStone = survivorStoneList[new Random().Next(survivorStoneList.Count)];
                currentSurvivorStone.AnnounceAndStartSurvivor(null);
            }
            else
            {
                Logger.LogMessage("Survivor Automatico Cancelado. Nenhuma Arena Configurada.", "Survivor");
            }
        }