Пример #1
0
        public Player(GameClient Client, Character Info) : base()
        {
            Log.Success("Player", "Construction de " + Info.Name);

            _Client = Client;
            _Info   = Info;
            _Value  = Info.Value[0];

            Name = Info.Name;
            SetFaction((byte)(8 * (8 * Info.Realm) + 6));

            EvtInterface = EventInterface.GetEventInterface((uint)_Info.CharacterId);
            SocInterface = new SocialInterface(this);
            TokInterface = new TokInterface(this);
        }
Пример #2
0
        public Player(GameClient Client,Character Info)
            : base()
        {
            Log.Success("Player", "Construction de " + Info.Name);

            _Client = Client;
            _Info = Info;
            _Value = Info.Value[0];

            Name = Info.Name;
            SetFaction((byte)(8*(8*Info.Realm)+6));

            EvtInterface = EventInterface.GetEventInterface((uint)_Info.CharacterId);
            SocInterface = new SocialInterface(this);
            TokInterface = new TokInterface(this);
        }
Пример #3
0
        public Player(GameClient Client,Character Info)
            : base()
        {
            Log.Success("Player", "Construction de " + Info.Name);

            _Client = Client;
            _Info = Info;
            _Value = Info.Value[0];

            Name = Info.Name;
            Realm = (GameData.Realms)Info.Realm;
            SetPvpFlag(false);

            EvtInterface = EventInterface.GetEventInterface((uint)_Info.CharacterId);
            SocInterface = new SocialInterface(this);
            TokInterface = new TokInterface(this);
            MlInterface = new MailInterface(this);
        }
Пример #4
0
Файл: Player.cs Проект: uvbs/DoR
        public Player(GameClient Client, Character Info) : base()
        {
            _Client = Client;
            _Info   = Info;
            _Value  = Info.Value;

            Name  = Info.Name;
            Realm = (GameData.Realms)Info.Realm;
            SetPVPFlag(false);

            EvtInterface = AddInterface(EventInterface.GetEventInterface((uint)_Info.CharacterId)) as EventInterface;
            SocInterface = AddInterface <SocialInterface>();
            TokInterface = AddInterface <TokInterface>();
            MlInterface  = AddInterface <MailInterface>();

            EvtInterface.AddEventNotify(EventName.ON_MOVE, CancelQuit);
            EvtInterface.AddEventNotify(EventName.ON_RECEIVE_DAMAGE, CancelQuit);
            EvtInterface.AddEventNotify(EventName.ON_DEAL_DAMAGE, CancelQuit);
            EvtInterface.AddEventNotify(EventName.ON_START_CASTING, CancelQuit);
        }
Пример #5
0
        public void SendPlayers(List <Player> Plrs)
        {
            if (!HasPlayer())
            {
                return;
            }

            Player Plr = GetPlayer();

            PacketOut Out = new PacketOut((byte)Opcodes.F_SOCIAL_NETWORK);

            Out.WriteUInt16(0);
            Out.WriteByte(4);
            Out.WriteByte((byte)Plrs.Count);
            foreach (Player Dist in Plrs)
            {
                SocialInterface.BuildPlayerInfo(ref Out, Dist);
            }
            Out.WriteByte(1);
            Plr.SendPacket(Out);
        }
Пример #6
0
        public Player(GameClient Client,Character Info)
            : base()
        {
            _Client = Client;
            _Info = Info;
            _Value = Info.Value;

            Name = Info.Name;
            Realm = (GameData.Realms)Info.Realm;
            SetPVPFlag(false);

            EvtInterface = AddInterface(EventInterface.GetEventInterface((uint)_Info.CharacterId)) as EventInterface;
            SocInterface = AddInterface<SocialInterface>();
            TokInterface = AddInterface<TokInterface>();
            MlInterface = AddInterface<MailInterface>();

            EvtInterface.AddEventNotify(EventName.ON_MOVE, CancelQuit);
            EvtInterface.AddEventNotify(EventName.ON_RECEIVE_DAMAGE, CancelQuit);
            EvtInterface.AddEventNotify(EventName.ON_DEAL_DAMAGE, CancelQuit);
            EvtInterface.AddEventNotify(EventName.ON_START_CASTING, CancelQuit);
        }