public static void Prefix() { lastcyclenumber = LuaFunctions.GetCycleNumber(); if (LuaFunctions.GetCycleTime() > 50) { lastcyclenumber2 = LuaFunctions.GetCycleNumber(); } ScriptingCore.OnEvent("newgame"); }
public static void noon() { try { if (lastcyclenumber2 != LuaFunctions.GetCycleNumber()) { if (LuaFunctions.GetCycleTime() > 50) { ScriptingCore.OnEvent("noon"); lastcyclenumber2 = LuaFunctions.GetCycleNumber(); } } } catch { } }