Exemple #1
0
 public S2CMonsterEnter(uint objKey, ushort monsterId, SunVector position, uint hp, uint maxHp, ushort moveSpeedratio,
                        ushort attackSpeedRatio, ushort unk1) : base(174)
 {
     this.objKey           = BitConverter.GetBytes(objKey);
     this.monsterId        = BitConverter.GetBytes(monsterId);
     this.position         = position.GetBytes();
     this.hp               = BitConverter.GetBytes(hp);
     this.maxhp            = BitConverter.GetBytes(maxHp);
     this.moveSpeedRatio   = BitConverter.GetBytes(moveSpeedratio);
     this.attackSpeedRatio = BitConverter.GetBytes(attackSpeedRatio);
     this.unk1             = BitConverter.GetBytes(unk1);
 }
Exemple #2
0
 public S2CAnsPlayerAttack(uint attackerKey, byte attackType, ushort styleCode, uint clientSerial,
                           SunVector position, uint targetKey, ushort damage, uint targetHp, byte unk, byte effect) : base(109)
 {
     this.attackerKey  = BitConverter.GetBytes(attackerKey);
     this.attackType   = BitConverter.GetBytes(attackType);
     this.styleCode    = BitConverter.GetBytes(styleCode);
     this.clientSerial = BitConverter.GetBytes(clientSerial);
     this.position     = position.GetBytes();
     this.targetKey    = BitConverter.GetBytes(targetKey);
     this.damage       = BitConverter.GetBytes(damage);
     this.targetHp     = BitConverter.GetBytes(targetHp);
     this.unk          = new [] { unk };
     this.effect       = new[] { effect };
 }
Exemple #3
0
            public S2CItemEnter(uint fromMonster, uint objKey, uint owner, byte itemType, uint heimAmount, uint unk1, ItemInfo item,
                                SunVector pos) : base(93)
            {
                this.fromMonster = BitConverter.GetBytes(fromMonster);
                this.objKey      = BitConverter.GetBytes(objKey);
                this.owner       = BitConverter.GetBytes(owner);
                this.itemType    = new[] { itemType };
                this.heimAmount  = BitConverter.GetBytes(heimAmount);
                this.unk1        = BitConverter.GetBytes(unk1);
                this.pos         = pos.GetBytes();

                var x = new ItemInfoX(2);

                x.durAmount = 10;
                x.Serial    = 10;

                x.Devine  = 1;
                x.Rank    = 2;
                x.RankD   = 10;
                x.Enchant = 10;
                this.item = x.GetBytes();
                unk2      = new byte[5];
            }
Exemple #4
0
            public new void Send(Connection connection)
            {
                var sb = GetSendableBytes(position.GetBytes(), unk1);

                connection.SendUnmanagedBytes(sb);
            }