Exemplo n.º 1
0
            public ushort personalHouse;      // calculated value

            public override void Init(StoC_0x16_VariousUpdate pak)
            {
                playerLevel = pak.ReadByte();
                playerName  = pak.ReadPascalString();

                maxHealthHigh      = pak.ReadByte();
                className          = pak.ReadPascalString();
                maxHealthLow       = pak.ReadByte();
                health             = (ushort)(((maxHealthHigh & 0xFF) << 8) | (maxHealthLow & 0xFF));
                profession         = pak.ReadPascalString();
                unk1               = pak.ReadByte();
                title              = pak.ReadPascalString();
                realmLevel         = pak.ReadByte();
                realmTitle         = pak.ReadPascalString();
                realmSpecPoints    = pak.ReadByte();
                classBaseName      = pak.ReadPascalString();
                personalHouseHight = pak.ReadByte();
                guildName          = pak.ReadPascalString();
                personalHouseLow   = pak.ReadByte();
                personalHouse      = (ushort)(((personalHouseHight & 0xFF) << 8) | (personalHouseLow & 0xFF));
                lastName           = pak.ReadPascalString();
                mlLevel            = pak.ReadByte();
                raceName           = pak.ReadPascalString();
                unk2               = pak.ReadByte();
                guildRank          = pak.ReadPascalString();
                unk3               = pak.ReadByte();
                crafterGuild       = pak.ReadPascalString();
                unk4               = pak.ReadByte();
                crafterTitle       = pak.ReadPascalString();
                unk5               = pak.ReadByte();
                mlTitle            = pak.ReadPascalString();
            }
Exemplo n.º 2
0
            public override void Init(StoC_0x16_VariousUpdate pak)
            {
                base.Init(pak);

                // new in 1.75
                unk6     = pak.ReadByte();
                newTitle = pak.ReadPascalString();
            }
Exemplo n.º 3
0
            public override void Init(StoC_0x16_VariousUpdate pak)
            {
                base.Init(pak);

                // new in 1.79
                championLevel = pak.ReadByte();
                championTitle = pak.ReadPascalString();
            }
            public override void Init(StoC_0x16_VariousUpdate pak)
            {
                base.Init(pak);

                // new in 1.75
                unk6 = pak.ReadByte();
                newTitle = pak.ReadPascalString();
            }
            public override void Init(StoC_0x16_VariousUpdate pak)
            {
                base.Init(pak);

                // new in 1.79
                championLevel = pak.ReadByte();
                championTitle = pak.ReadPascalString();
            }
Exemplo n.º 6
0
            public override void Init(StoC_0x16_VariousUpdate pak)
            {
                skills = new CraftingSkill[pak.SubCount];

                for (int i = 0; i < pak.SubCount; ++i)
                {
                    CraftingSkill skill = new CraftingSkill();

                    skill.points = pak.ReadShort();
                    skill.icon   = pak.ReadByte();
                    skill.unk2   = pak.ReadInt();
                    skill.name   = pak.ReadPascalString();

                    skills[i] = skill;
                }
            }
Exemplo n.º 7
0
            public override void Init(StoC_0x16_VariousUpdate pak)
            {
                list = new Spell[pak.subCount];

                // level 0 spell is LineName
                for (int i = 0; i < pak.subCount; i++)
                {
                    Spell spell = new Spell();

                    spell.level = pak.ReadByte();
                    spell.icon  = pak.ReadShort();
                    spell.name  = pak.ReadPascalString();

                    list[i] = spell;
                }
            }
Exemplo n.º 8
0
            public override void Init(StoC_0x16_VariousUpdate pak)
            {
                list = new Spell[pak.SubCount];

                // level 0 spell is LineName
                for (int i = 0; i < pak.SubCount; i++)
                {
                    Spell spell = new Spell();

                    spell.level = pak.ReadShortLowEndian();                     // or (byte and unknown byte) ?
                    spell.index = pak.ReadShort();
                    spell.icon  = pak.ReadShort();
                    spell.name  = pak.ReadPascalString();

                    list[i] = spell;
                }
            }
Exemplo n.º 9
0
            public override void Init(StoC_0x16_VariousUpdate pak)
            {
                weaponDamageHigh = pak.ReadByte();
                if (pak.ReadPascalString() != " ")
                {
                    throw new Exception("expected \" \", got something else.");
                }
                weaponDamageLow = pak.ReadByte();
                if (pak.ReadPascalString() != " ")
                {
                    throw new Exception("expected \" \", got something else.");
                }
                weaponSkillHigh = pak.ReadByte();
                if (pak.ReadPascalString() != " ")
                {
                    throw new Exception("expected \" \", got something else.");
                }
                weaponSkillLow = pak.ReadByte();
                if (pak.ReadPascalString() != " ")
                {
                    throw new Exception("expected \" \", got something else.");
                }
                effectiveAFHigh = pak.ReadByte();
                if (pak.ReadPascalString() != " ")
                {
                    throw new Exception("expected \" \", got something else.");
                }
                effectiveAFLow = pak.ReadByte();
                if (pak.ReadPascalString() != " ")
                {
                    throw new Exception("expected \" \", got something else.");
                }

                properties = new PlayerStateProperty[pak.SubCount - 6];
                for (byte i = 0; i < pak.SubCount - 6; i++)
                {
                    PlayerStateProperty prop = new PlayerStateProperty();

                    prop.index = i;
                    prop.value = pak.ReadByte();
                    prop.name  = pak.ReadPascalString();

                    properties[i] = prop;
                }
            }
Exemplo n.º 10
0
            public override void Init(StoC_0x16_VariousUpdate pak)
            {
                data = new Skill[pak.subCount];

                for (int i = 0; i < pak.subCount; i++)
                {
                    Skill sk = new Skill();

                    sk.level   = pak.ReadByte();
                    sk.page    = (eSkillPage)pak.ReadByte();
                    sk.stlOpen = pak.ReadShort();
                    sk.bonus   = pak.ReadByte();
                    sk.icon    = pak.ReadShort();
                    sk.name    = pak.ReadPascalString();

                    data[i] = sk;
                }
            }
Exemplo n.º 11
0
            public ushort[] m_oids;             // oids list

            public override void Init(StoC_0x16_VariousUpdate pak)
            {
                groupMembers = new GroupMember[pak.SubCount];
                m_oids       = new ushort[pak.SubCount];
                for (int i = 0; i < pak.SubCount; i++)
                {
                    GroupMember member = new GroupMember();

                    member.level     = pak.ReadByte();
                    member.health    = pak.ReadByte();
                    member.mana      = pak.ReadByte();
                    member.status    = pak.ReadByte();
                    member.oid       = pak.ReadShort();
                    member.name      = pak.ReadPascalString();
                    member.classname = pak.ReadPascalString();
                    m_oids[i]        = member.oid;
                    groupMembers[i]  = member;
                }
            }
            public override void Init(StoC_0x16_VariousUpdate pak)
            {
                data = new Skill[pak.SubCount];

                for (int i = 0; i < pak.SubCount; i++)
                {
                    Skill sk = new Skill();

                    sk.level = pak.ReadByte();
                    sk.index = pak.ReadShort();
                    sk.page = (eSkillPage)pak.ReadByte();
                    sk.stlOpen = pak.ReadShort();
                    sk.bonus = pak.ReadByte();
                    sk.icon = pak.ReadShort();
                    sk.name = pak.ReadPascalString();

                    data[i] = sk;
                }
            }
            public override void Init(StoC_0x16_VariousUpdate pak)
            {
                groupMembers = new GroupMember[pak.SubCount];

                m_oids = new ushort[pak.SubCount];
                for (int i = 0; i < pak.SubCount; i++)
                {
                    GroupMember member = new GroupMember();

                    member.level = pak.ReadByte();
                    member.health = pak.ReadByte();
                    member.mana = pak.ReadByte();
                    member.endurance = pak.ReadByte(); // new in 1.69
                    member.status = pak.ReadByte();
                    member.oid = pak.ReadShort();
                    member.name = pak.ReadPascalString();
                    member.classname = pak.ReadPascalString();
                    m_oids[i] = member.oid;

                    groupMembers[i] = member;
                }
            }
            public override void Init(StoC_0x16_VariousUpdate pak)
            {
                weaponDamageHigh = pak.ReadByte();
                if (pak.ReadPascalString() != " ") throw new Exception("expected \" \", got something else.");
                weaponDamageLow = pak.ReadByte();
                if (pak.ReadPascalString() != " ") throw new Exception("expected \" \", got something else.");
                weaponSkillHigh = pak.ReadByte();
                if (pak.ReadPascalString() != " ") throw new Exception("expected \" \", got something else.");
                weaponSkillLow = pak.ReadByte();
                if (pak.ReadPascalString() != " ") throw new Exception("expected \" \", got something else.");
                effectiveAFHigh = pak.ReadByte();
                if (pak.ReadPascalString() != " ") throw new Exception("expected \" \", got something else.");
                effectiveAFLow = pak.ReadByte();
                if (pak.ReadPascalString() != " ") throw new Exception("expected \" \", got something else.");

                properties = new PlayerStateProperty[pak.SubCount - 6];
                for (byte i = 0; i < pak.SubCount - 6; i++)
                {
                    PlayerStateProperty prop = new PlayerStateProperty();

                    prop.index = i;
                    prop.value = pak.ReadByte();
                    prop.name = pak.ReadPascalString();

                    properties[i] = prop;
                }
            }
            public override void Init(StoC_0x16_VariousUpdate pak)
            {
                skills = new CraftingSkill[pak.SubCount];

                for (int i = 0; i < pak.SubCount; ++i)
                {
                    CraftingSkill skill = new CraftingSkill();

                    skill.points = pak.ReadShort();
                    skill.icon = pak.ReadByte();
                    skill.unk2 = pak.ReadInt();
                    skill.name = pak.ReadPascalString();

                    skills[i] = skill;
                }
            }
 public abstract void Init(StoC_0x16_VariousUpdate pak);
            public override void Init(StoC_0x16_VariousUpdate pak)
            {
                playerLevel = pak.ReadByte();
                playerName = pak.ReadPascalString();

                maxHealthHigh = pak.ReadByte();
                className = pak.ReadPascalString();
                maxHealthLow = pak.ReadByte();
                health = (ushort)(((maxHealthHigh & 0xFF) << 8) | (maxHealthLow & 0xFF));
                profession = pak.ReadPascalString();
                unk1 = pak.ReadByte();
                title = pak.ReadPascalString();
                realmLevel = pak.ReadByte();
                realmTitle = pak.ReadPascalString();
                realmSpecPoints = pak.ReadByte();
                classBaseName = pak.ReadPascalString();
                personalHouseHight = pak.ReadByte();
                guildName = pak.ReadPascalString();
                personalHouseLow = pak.ReadByte();
                personalHouse = (ushort)(((personalHouseHight & 0xFF) << 8) | (personalHouseLow & 0xFF));
                lastName = pak.ReadPascalString();
                mlLevel= pak.ReadByte();
                raceName = pak.ReadPascalString();
                unk2 = pak.ReadByte();
                guildRank = pak.ReadPascalString();
                unk3 = pak.ReadByte();
                crafterGuild = pak.ReadPascalString();
                unk4 = pak.ReadByte();
                crafterTitle = pak.ReadPascalString();
                unk5 = pak.ReadByte();
                mlTitle = pak.ReadPascalString();
            }
            public override void Init(StoC_0x16_VariousUpdate pak)
            {
                list = new Spell[pak.SubCount];

                // level 0 spell is LineName
                for (int i = 0; i < pak.SubCount; i++)
                {
                    Spell spell = new Spell();

                    spell.level = pak.ReadShortLowEndian(); // or (byte and unknown byte) ?
                    spell.index = pak.ReadShort();
                    spell.icon = pak.ReadShort();
                    spell.name = pak.ReadPascalString();

                    list[i] = spell;
                }
            }
            public override void Init(StoC_0x16_VariousUpdate pak)
            {
                list = new Spell[pak.subCount];

                // level 0 spell is LineName
                for (int i = 0; i < pak.subCount; i++)
                {
                    Spell spell = new Spell();

                    spell.level = pak.ReadByte();
                    spell.icon = pak.ReadShort();
                    spell.name = pak.ReadPascalString();

                    list[i] = spell;
                }
            }
Exemplo n.º 20
0
 abstract public void Init(StoC_0x16_VariousUpdate pak);