Implemented item packets, did some fixes with one of the conns going null.

This commit is contained in:
Filip Maj 2015-10-04 22:43:22 -04:00
parent 3cacedf6ab
commit 8f7e7d4c0d
8 changed files with 353 additions and 28 deletions

View file

@ -7,6 +7,7 @@ using System.Runtime.InteropServices;
using MySql.Data.MySqlClient;
using System.Reflection;
using FFXIVClassic_Lobby_Server.dataobjects;
using System.IO;
namespace FFXIVClassic_Lobby_Server
{
@ -69,7 +70,26 @@ namespace FFXIVClassic_Lobby_Server
Server server = new Server();
server.startServer();
while (true) Thread.Sleep(10000);
while (true)
{
String input = Console.ReadLine();
String[] split = input.Split(' ');
if (split.Length >= 3)
{
if (split[0].Equals("sendpacket"))
{
try{
server.sendPacket("./packets/" + split[1], Int32.Parse(split[2]));
}
catch (Exception e)
{
Log.error("Could not load packet");
}
}
}
Thread.Sleep(1000);
}
}
Console.WriteLine("Press any key to continue...");