mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	Started mass overhaul of quests and related components like small talk. Fixed some scripts. More fixes required.
This commit is contained in:
		| @@ -283,17 +283,19 @@ namespace Meteor.Map.actors.director | ||||
|  | ||||
|         private void LoadLuaScript() | ||||
|         { | ||||
|             string errorMsg = ""; | ||||
|             string luaPath = String.Format(LuaEngine.FILEPATH_DIRECTORS, GetScriptPath()); | ||||
|             directorScript = LuaEngine.LoadScript(luaPath); | ||||
|             directorScript = LuaEngine.LoadScript(luaPath, ref errorMsg); | ||||
|             if (directorScript == null) | ||||
|                 Program.Log.Error("Could not find script for director {0}.", GetName()); | ||||
|                 Program.Log.Error("Could not find script for director {0}.", GetName());           | ||||
|         } | ||||
|  | ||||
|         private List<LuaParam> CallLuaScript(string funcName, params object[] args) | ||||
|         { | ||||
|             if (directorScript != null) | ||||
|             { | ||||
|                 directorScript = LuaEngine.LoadScript(String.Format(LuaEngine.FILEPATH_DIRECTORS, directorScriptPath)); | ||||
|                 string errorMsg = ""; | ||||
|                 directorScript = LuaEngine.LoadScript(String.Format(LuaEngine.FILEPATH_DIRECTORS, directorScriptPath), ref errorMsg); | ||||
|                 if (!directorScript.Globals.Get(funcName).IsNil()) | ||||
|                 { | ||||
|                     DynValue result = directorScript.Call(directorScript.Globals[funcName], args); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user