Пример #1
0
 public static void newday()
 {
     try
     {
         if (lastcyclenumber != LuaFunctions.GetCycleNumber())
         {
             ScriptingCore.OnEvent("newday");
             lastcyclenumber = LuaFunctions.GetCycleNumber();
         }
     }
     catch { }
 }
Пример #2
0
 public static void noon()
 {
     try
     {
         if (lastcyclenumber2 != LuaFunctions.GetCycleNumber())
         {
             if (LuaFunctions.GetCycleTime() < 50)
             {
                 ScriptingCore.OnEvent("noon");
                 lastcyclenumber2 = LuaFunctions.GetCycleNumber();
             }
         }
     }
     catch { }
 }