Exemplo n.º 1
0
        public void StartInit()
        {
            RemovePlayer(this);
            Client.State = (int)eClientState.WorldEnter;
            SendMoney();
            SendStats();
            SendSpeed();
            SendInited();
            SendRankUpdate(this);
            SendXp();
            SendRenown();
            TokInterface.SendAllToks();
            SendSkills();
            Health = TotalHealth;
            // ItmInterface.SendAllItems(this);
            AbtInterface.SendAbilities();



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

            Out.WriteByte(1);
            Out.WriteByte(1);
            Out.WriteUInt16(0x300);
            Out.WriteUInt16(8159);
            Out.WriteByte(1);
            SendPacket(Out);

            QtsInterface.SendQuests();

            SendInitComplete();
            SocInterface.SendFriends();
        }
Exemplo n.º 2
0
Arquivo: Player.cs Projeto: uvbs/DoR
        public void StartInit()
        {
            RemovePlayer(this);
            Client.State = (int)eClientState.WorldEnter;
            SendMoney();
            SendStats();
            SendSpeed(Speed);
            SendInited();
            SendRankUpdate(this);
            SendXpTable();
            WorldMgr.GeneralScripts.OnWorldPlayerEvent("SEND_PACKAGES", this, null);
            SendXp();
            SendRenown();
            TokInterface.SendAllToks();
            SendSkills();
            SendUpdateState();

            /*{
             *  PacketOut Out = new PacketOut((byte)Opcodes.F_INFLUENCE_INFO);
             *  Out.WriteHexStringBytes("00000000");
             *  SendPacket(Out);
             * }
             * {
             *  PacketOut Out = new PacketOut((byte)Opcodes.F_PLAY_TIME_STATS);
             *  Out.WriteHexStringBytes("000000000000000000000000");
             *  SendPacket(Out);
             * }
             *
             * {
             *  PacketOut Out = new PacketOut((byte)Opcodes.F_TACTICS);
             *  Out.WriteHexStringBytes("0300");
             *  SendPacket(Out);
             * }
             *
             * {
             *  PacketOut Out = new PacketOut((byte)Opcodes.F_MORALE_LIST);
             *  Out.WriteHexStringBytes("00 00 00 00 00 00 00 00 00 00 00".Replace(" ", string.Empty));
             *  SendPacket(Out);
             * }*/

            Health = TotalHealth;
            ItmInterface.SendAllItems(this);
            AbtInterface.SendAbilities();

            QtsInterface.SendQuests();
            MvtInterface.CurrentMount.SendMount(this);

            SendInitComplete();
            SocInterface.SendFriends();

            if (GetGroup() != null)
            {
                GetGroup().Update();
            }

            SendMessage(0, "MOTD: Welcome to WarEmu", "", SystemData.ChatLogFilters.CHATLOGFILTERS_CITY_ANNOUNCE);

            MlInterface.SendMailCounts();
        }