Aura.Channel.Network.Sending.Send.SkillUsePlayingInstrument C# (CSharp) Method

SkillUsePlayingInstrument() public static method

Broadcasts Effect in range of creature.
public static SkillUsePlayingInstrument ( Creature creature, SkillId skillId, InstrumentType instrument, string compressedMML, int rndScore ) : void
creature Creature
skillId SkillId
instrument InstrumentType
compressedMML string
rndScore int
return void
		public static void SkillUsePlayingInstrument(Creature creature, SkillId skillId, InstrumentType instrument, string compressedMML, int rndScore)
		{
			var packet = new Packet(Op.SkillUse, creature.EntityId);
			packet.PutUShort((ushort)skillId);
			packet.PutLong(0);
			packet.PutByte(compressedMML != null); // has scroll
			if (compressedMML != null)
				packet.PutString(compressedMML);
			else
				packet.PutInt(rndScore);
			packet.PutInt(22124); // [200200, NA242 (2016-12-15)]
			packet.PutByte((byte)instrument);
			packet.PutByte(1);
			packet.PutByte(0);
			packet.PutInt(0); // [200200, NA242 (2016-12-15)]

			creature.Client.Send(packet);
		}
Send