renamed mob stuff to battlenpc

- stubbed spawn/die/despawn functions
This commit is contained in:
Tahir Akhlaq 2017-07-07 22:08:48 +01:00
parent cc1929a9fb
commit d895357182
10 changed files with 63 additions and 124 deletions

View file

@ -536,11 +536,12 @@ namespace FFXIVClassic_Map_Server.lua
LuaParam.Insert(1, i - (playerNull ? 2 : 0));
// run the script
//script.Call(script.Globals["onTrigger"], LuaParam.ToArray());
script.Call(script.Globals["onTrigger"], LuaParam.ToArray());
Coroutine coroutine = script.CreateCoroutine(script.Globals["onTrigger"]).Coroutine;
DynValue value = coroutine.Resume(LuaParam.ToArray());
GetInstance().ResolveResume(player, coroutine, value);
// gm commands dont need to be coroutines?
//Coroutine coroutine = script.CreateCoroutine(script.Globals["onTrigger"]).Coroutine;
//DynValue value = coroutine.Resume(LuaParam.ToArray());
//ResolveResume(player, coroutine, value);
return;
}
}