public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteInt(senderId);
     writer.WriteUTF(senderName);
     writer.WriteInt(senderAccountId);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteVarShort(challengeId);
     writer.WriteInt(targetId);
     writer.WriteVarInt(xpBonus);
     writer.WriteVarInt(dropBonus);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteByte(guildLevel);
     writer.WriteByte(nbMembers);
     writer.WriteBoolean(enabled);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteVarInt(symbioteUID);
     writer.WriteByte(symbiotePos);
     writer.WriteVarInt(hostUID);
     writer.WriteByte(hostPos);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteInt(targetId);
     writer.WriteShort(startCellId);
     writer.WriteShort(endCellId);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteVarShort(days);
     writer.WriteSByte(hours);
     writer.WriteSByte(minutes);
 }
 public virtual void Serialize(BigEndianWriter writer)
 {
     writer.WriteUTF(uid);
     writer.WriteVarShort(figure);
     writer.WriteVarShort(pedestal);
     writer.WriteBoolean(bound);
 }
 public virtual void Serialize(BigEndianWriter writer)
 {
     writer.WriteVarInt(allianceId);
     writer.WriteVarShort(nbGuilds);
     writer.WriteVarShort(nbMembers);
     writer.WriteVarShort(nbSubarea);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteShort(fightId);
     writer.WriteSByte(teamId);
     writer.WriteSByte(option);
     writer.WriteBoolean(state);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteUTF(name);
     writer.WriteShort(worldX);
     writer.WriteShort(worldY);
     writer.WriteUTF(liberator);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteShort(humanoidInfo.TypeId);
     humanoidInfo.Serialize(writer);
     writer.WriteInt(accountId);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteSByte(deathState);
     writer.WriteVarShort(deathCount);
     writer.WriteByte(deathMaxLevel);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteInt(areaId);
     writer.WriteSByte(atLeastNbMount);
     writer.WriteSByte(atLeastNbMachine);
     writer.WriteVarInt(maxPrice);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteInt(casterId);
     writer.WriteVarShort(targetCellId);
     writer.WriteVarShort(spellId);
     writer.WriteSByte(spellLevel);
 }
 public virtual void Serialize(BigEndianWriter writer)
 {
     writer.WriteInt(contextualId);
     look.Serialize(writer);
     writer.WriteShort(disposition.TypeId);
     disposition.Serialize(writer);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteSByte(playerState);
     writer.WriteVarShort(lastConnection);
     writer.WriteInt(achievementPoints);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteVarInt(entityId);
     writer.WriteVarInt(elemId);
     writer.WriteVarShort(skillId);
     writer.WriteVarShort(duration);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteVarShort(msgId);
     writer.WriteInt(timeStamp);
     writer.WriteUTF(owner);
     writer.WriteVarShort(objectGenericId);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteVarShort(subAreaId);
     writer.WriteVarShort(fightId);
     writer.WriteShort(defender.TypeId);
     defender.Serialize(writer);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteVarLong(mountUid);
     writer.WriteSByte(mountLocation);
     writer.WriteVarInt(mountFoodUid);
     writer.WriteVarInt(quantity);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteVarInt(memberId);
     writer.WriteVarShort(rank);
     writer.WriteSByte(experienceGivenPercent);
     writer.WriteVarInt(rights);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteSByte(companionGenericId);
     writer.WriteByte(level);
     writer.WriteInt(masterId);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteVarShort(firstNameId);
     writer.WriteVarShort(lastNameId);
     writer.WriteByte(level);
 }
Beispiel #24
0
        public void Init(AccountUC account)
        {
            int skillUID = 0;

            foreach (InteractiveElementSkill skill in account.Safe.enabledSkills)
            {
                if (skill.skillId == 104)
                {
                    skillUID = skill.skillInstanceUid;

                    break;
                }
            }

            InteractiveUseRequestMessage interactiveUseRequestMessage = new InteractiveUseRequestMessage(
                account.Safe.elementId,
                skillUID);

            using (BigEndianWriter writer = new BigEndianWriter())
            {
                interactiveUseRequestMessage.Serialize(writer);
                writer.Content = account.HumanCheck.hash_function(writer.Content);
                MessagePackaging messagePackaging = new MessagePackaging(writer);

                messagePackaging.Pack((int)interactiveUseRequestMessage.ProtocolID);

                account.SocketManager.Send(messagePackaging.Writer.Content);
                account.LastPacketID.Clear();
                if (account.DebugMode.Checked)
                    account.Log(new BlueSheep.Interface.Text.DebugTextInformation("[SND] 5001 (InteractiveUseRequestMessage)"), 0);
            }
        }
Beispiel #25
0
 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteByte(position);
     writer.WriteInt(spellId);
     writer.WriteSByte(spellLevel);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteByte(level);
     guildInfo.Serialize(writer);
     writer.WriteInt(experienceForGuild);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     byte flag1 = 0;
     flag1 = BooleanByteWrapper.SetFlag(flag1, 0, canChangeName);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 1, canChangeEmblem);
     writer.WriteByte(flag1);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteBoolean(hireOrFire);
     basicInfos.Serialize(writer);
     writer.WriteVarInt(playerId);
     writer.WriteUTF(playerName);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteVarInt(requestId);
     writer.WriteUTF(playerName);
     writer.WriteVarInt(playerId);
     look.Serialize(writer);
 }
 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteInt(targetId);
     writer.WriteVarShort(loss);
     writer.WriteVarShort(permanentDamages);
 }