Some fixes and missing scripts.

This commit is contained in:
Filip Maj 2017-08-26 10:23:13 -04:00
parent 372d50d7eb
commit 546908acde
12 changed files with 90 additions and 5 deletions

View file

@ -613,10 +613,10 @@ namespace FFXIVClassic_Map_Server.Actors
{
try
{
// BasePacket packet = new BasePacket(path);
//packet.ReplaceActorID(actorId);
//QueuePacket(packet);
BasePacket packet = new BasePacket(path);
packet.ReplaceActorID(actorId);
foreach (SubPacket p in packet.GetSubpackets())
playerSession.QueuePacket(p);
}
catch (Exception e)
{

View file

@ -427,7 +427,7 @@ namespace FFXIVClassic_Map_Server.lua
public static void RunGMCommand(Player player, String cmd, string[] param, bool help = false)
{
bool playerNull = player == null;
if (playerNull && param.Length >= 2)
if (playerNull && param.Length >= 3)
player = Server.GetWorldManager().GetPCInWorld(param[1] + " " + param[2]);
// load from scripts/commands/gm/ directory