Пример #1
0
        public override bool AddToWorld()
        {
            //foreman fogo doesn't leave the room.
            TetherRange = 1000;

            Position        = new Vector3(49293, 42208, 27562);
            Heading         = 2057;
            CurrentRegionID = 245;

            Flags = 0;

            Level = 56;
            Model = 2249; //undead Minotaur
            Name  = "Forge Foreman Fogo";
            Size  = 65;

            //get the relic by its ID, and lock it!
            Relic = MinotaurRelicManager.GetRelic(1);
            LockRelic();



            TempProperties.setProperty(ALREADY_GOT_HELP, false);

            return(base.AddToWorld());
        }
Пример #2
0
        private static void MapUpdate(object nullValue)
        {
            Dictionary <ushort, IList <MinotaurRelic> > relics = new Dictionary <ushort, IList <MinotaurRelic> >();

            foreach (MinotaurRelic relic in MinotaurRelicManager.GetAllRelics())
            {
                if (!relics.ContainsKey(relic.CurrentRegionID))
                {
                    relics.Add(relic.CurrentRegionID, new List <MinotaurRelic>());
                }
                relics[relic.CurrentRegionID].Add(relic);
            }
            foreach (GameClient clt in WorldMgr.GetAllPlayingClients())
            {
                if (clt == null || clt.Player == null)
                {
                    continue;
                }

                if (relics.ContainsKey(clt.Player.CurrentRegionID))
                {
                    foreach (MinotaurRelic relic in relics[clt.Player.CurrentRegionID])
                    {
                        clt.Player.Out.SendMinotaurRelicMapUpdate((byte)relic.RelicID, relic.CurrentRegionID, (int)relic.Position.X, (int)relic.Position.Y, (int)relic.Position.Z);
                    }
                }
            }
        }