示例#1
0
        public GuildCollector(Maps.Map map, Characters.Character owner, int id)
        {
            ID        = id;
            IsInFight = false;
            Guild     = owner.Guild;

            Map           = map;
            Map.Collector = this;

            Owner = owner.ID;
            Cell  = owner.MapCell;
            Dir   = 3;

            Name = new int[2] {
                Utilities.Basic.Rand(1, 39), Utilities.Basic.Rand(1, 71)
            };

            timer          = new Timer();
            timer.Enabled  = true;
            timer.Interval = Utilities.Basic.Rand(5000, 15000);
            timer.Elapsed += new ElapsedEventHandler(this.Move);
            timer.Start();

            Map.Send(string.Concat("GM", PatternMap()));
        }