Safera
Page
If I have a uo-based lua script, is it possible to incorporate it into my runuo shard somehow?
I tried writing a C# script calling the lua script, but i don't really know what I'm doing.
Here's what I wrote:
I tried writing a C# script calling the lua script, but i don't really know what I'm doing.
Here's what I wrote:
Code:
using Window;
using System.Windows.Threading;
Lua lua = new Lua();
XmlDocument xmlDocument = new XmlDocument();
xmlDocument.Load(@"Window.xml");
lua.DoFile(@"Window.lua");
LuaFunction luaFunction = lua.GetFunction("transformXML");
Object o = luaFunction.Call(xmlDocument.OuterXml);