Ejemplo n.º 1
0
        public EventInterface Load(Character_social Social)
        {
            if (Social == null || Social.DistCharacterId == 0)
            {
                return(null);
            }

            EventInterface Interface = EventInterface.GetEventInterface((uint)Social.DistCharacterId);

            Interface.AddEventNotify(EventName.PLAYING, OnPlayerConnect, true);
            Interface.AddEventNotify(EventName.LEAVE, OnPlayerLeave, true);
            Social.Event = Interface;
            _Socials.Add(Social);

            return(Interface);
        }
Ejemplo n.º 2
0
        public override bool Load()
        {
            Evt = _Owner.EvtInterface;
            if (_Owner.IsUnit())
            {
                Cbt = _Owner.GetUnit().CbtInterface;
                Mvt = _Owner.GetUnit().MvtInterface;
            }

            Evt.AddEvent(UpdateThink, BrainThinkTime + RandomMgr.Next(0, 2000), 0);
            Evt.AddEventNotify(EventName.ON_TARGET_DIE, OnTargetDie);

            return(base.Load());
        }
Ejemplo n.º 3
0
        public override bool Load()
        {
            Evt = _Owner.EvtInterface;
            if (_Owner.IsUnit())
            {
                Cbt = _Owner.GetUnit().CbtInterface;
                Mvt = _Owner.GetUnit().MvtInterface;
            }

            Evt.AddEvent(UpdateThink, BrainThinkTime + RandomMgr.Next(0, 2000), 0);
            Evt.AddEventNotify(EventName.ON_TARGET_DIE, OnTargetDie);

            return base.Load();
        }