Fixed my lua fuckery some more.

This commit is contained in:
Filip Maj 2018-04-07 14:24:33 -04:00
parent bbd4fcef3b
commit 29e3f61b6b
2 changed files with 3 additions and 1 deletions

View File

@ -90,7 +90,6 @@ namespace FFXIVClassic_Map_Server.Actors
//Event Related
public uint currentEventOwner = 0;
public string currentEventName = "";
public Coroutine currentEventRunning;
//Player Info
@ -1678,6 +1677,8 @@ namespace FFXIVClassic_Map_Server.Actors
public void StartEvent(Actor owner, EventStartPacket start)
{
currentEventOwner = start.scriptOwnerActorID;
currentEventName = start.triggerName;
LuaEngine.GetInstance().EventStarted(this, owner, start);
}

View File

@ -349,6 +349,7 @@ namespace FFXIVClassic_Map_Server.lua
if (!script.Globals.Get(funcName).IsNil())
{
Coroutine coroutine = script.CreateCoroutine(script.Globals[funcName]).Coroutine;
player.currentEventRunning = coroutine;
DynValue value = coroutine.Resume(args2);
ResolveResume(player, coroutine, value);
}