Esempio n. 1
0
        /// <summary>
        /// Shoot a Rune against the defined Target.
        /// </summary>
        public void Shoot(Slot runeSlot, Creature target)
        {
            #region " Packet Structure Analyze "
            // SZ      ID         BP     SLOT  HMM         X      Y    Z   ??     QD
            //----------------------------------------------------------------------
            // 11  00  83  FF FF  40  00  00  7E 0C  00  15 7E  ED 7B  07  63 00  01
            //----------------------------------------------------------------------
            // 00  01  02  03 04  05  06  07  08 09  10  11 12  13 14  15  16 17  18
            #endregion

            PacketBuilder Builder = new PacketBuilder(0x83, connection);
            Builder.Append(0xFF);
            Builder.Append(0xFF);
            Builder.Append(runeSlot.Container.Position);
            Builder.Append(0x00);
            Builder.Append(runeSlot.Position);
            Builder.Append(runeSlot.Item.Id);
            Builder.Append(runeSlot.Position);
            Builder.Append(target.Location.X);
            Builder.Append(target.Location.Y);
            Builder.Append(target.Location.Z);
            Builder.Append(0x63);
            Builder.Append(0x00);
            Builder.Append(0x01); //TODO: Try increase this value. (Quantity)
            Connection.Send(Builder.GetPacket());
        }
Esempio n. 2
0
        /// <summary>
        /// Attack the Defined Creature.
        /// </summary>
        public void Creature(Creature target)
        {
            Model.Player nPlayer = new Model.Player(Connection);
            nPlayer.Target = target;

            PacketBuilder Builder = new PacketBuilder(0xA1, connection);
            Builder.Append(target.Id);
            Connection.Send(Builder.GetPacket());
        }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreatureEventArgs"/> class.
 /// </summary>
 /// <param name="creature">The creature.</param>
 public CreatureEventArgs(Creature creature)
 {
     Creature = creature;
 }
Esempio n. 4
0
 /// <summary>
 /// Use the Defined Item on a Player in Defined SQM and Drop after use if needed.
 /// e.g: Use Fluids on Creature, Use Runes on Creature, etc.
 /// </summary>
 public void UseOnCreature(Creature creature)
 {
     UseActions.OnPlayer(Slot, creature.Location, false);
 }
Esempio n. 5
0
 /// <summary>
 /// Use the Defined Item on a Player in Defined SQM and Drop after use if needed.
 /// e.g: Use Fluids on Creature, Use Runes on Creature, etc.
 /// </summary>
 public void UseOnCreature(Creature creature, bool dropAfterUse)
 {
     UseActions.OnPlayer(Slot, creature.Location, dropAfterUse);
 }