Author Topic: Loading bricks silently  (Read 927 times)

How can I load bricks without the announcement to all the players that bricks are being loaded? Also it would help if I could hide the "Ghosting" message to all players too, but if not then that's okay.

If you're loading the bricks by script, use 1 for last argument when loading bricks.

serverDirectSaveFileLoad(%filename, %colorMethod, %dirName, %ownership, %silent)

If you're loading them throuh the load bricks menu, you could do it like this:

package NoLoadMessages
{
   function MessageAll(%msgType, %msgString, %a1, %a2, %a3, %a4, %a5, %a6, %a7, %a8, %a9, %a10, %a11, %a12, %a13)
   {
      if(%msgType == 'MsgUploadStart' && (%msgString $= "Loading bricks. Please wait." || %msgString == '\c3%1\c0 Re-Loading bricks. Please wait.'))
         return;

      if(%msgType == 'MsgProcessComplete' && strPos(%msgString, ($Load_brickCount - $Load_failureCount @ " / " @ $Load_brickCount @ " bricks created in ")) == 0)
         return;

      return parent::MessageAll(%msgType, %msgString, %a1, %a2, %a3, %a4, %a5, %a6, %a7, %a8, %a9, %a10, %a11, %a12, %a13);
   }
};
activatePackage(NoLoadMessages);

If you're loading the bricks by script, use 1 for last argument when loading bricks.

serverDirectSaveFileLoad(%filename, %colorMethod, %dirName, %ownership, %silent)

If you're loading them throuh the load bricks menu, you could do it like this:

package NoLoadMessages
{
   function MessageAll(%msgType, %msgString, %a1, %a2, %a3, %a4, %a5, %a6, %a7, %a8, %a9, %a10, %a11, %a12, %a13)
   {
      if(%msgType == 'MsgUploadStart' && (%msgString $= "Loading bricks. Please wait." || %msgString == '\c3%1\c0 Re-Loading bricks. Please wait.'))
         return;

      if(%msgType == 'MsgProcessComplete' && strPos(%msgString, ($Load_brickCount - $Load_failureCount @ " / " @ $Load_brickCount @ " bricks created in ")) == 0)
         return;

      return parent::MessageAll(%msgType, %msgString, %a1, %a2, %a3, %a4, %a5, %a6, %a7, %a8, %a9, %a10, %a11, %a12, %a13);
   }
};
activatePackage(NoLoadMessages);


thank you very much, sir