[Release] CoEmu (v2) NPCSpawn Direction fix.

11/25/2009 15:04 Basser#1
Note: As usual, I have not tested this on CoEmu, but It works on my server, however it's a little bit different, but this should do the same thing. And also, this is a very small edit, this might not be the correct way to fix it, but it works, so I'm not going to think about it any longer.

Okay this is all you have to do, in the GameServer, open the Folder "Packets" than open the file named "SpawnNPC.cs".

Edit the complete (static) byte with this
Code:
		public static byte[] SpawnNPC(int Type, int X, int Y, int SubType, int Dir, int Flag)
		{
			PacketBuilder Packet = new PacketBuilder(2030, 20);
			Packet.Long(Type);
			Packet.Short(X);
			Packet.Short(Y);
			Packet.Short(SubType + Dir);
			Packet.Short(Dir);
			Packet.Long(Flag);
			return Packet.getFinal();
		}
That's it, if this doesn't work, let me know!

~Bas