1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Play Music On Login 1.2.0

Plays a specific or random music for players on login.

  1. Felladrin
    Play Music On Login

    I've made this one to break the loop from the client start music. Forcing the server to play a town theme for the players when they join the game.

    Installation

    Just drop this script somewhere in you Scripts folder.

    Configuration
    Code (C#):
    1. bool Enabled = true;                          // Is this system enabled?
    2. bool PlayRandomMusic = true;                  // Should we play a random music from the list?
    3. MusicName SingleMusic = MusicName.Stones2;    // Music to be played if PlayRandomMusic = false.
    By default, it will play a random music from the list.
    Code (C#):
    1. public static MusicName[] MusicList = {
    2.       MusicName.Stones2,
    3.       MusicName.Magincia,
    4.       MusicName.Minoc,
    5.       MusicName.Ocllo,
    6.       MusicName.Skarabra,
    7.       MusicName.Trinsic,
    8.       MusicName.Yew,
    9.       MusicName.InTown01,
    10.       MusicName.Moonglow,
    11.       MusicName.MinocNegative,
    12.       MusicName.ValoriaShips
    13. };
    But if you set PlayRandomMusic = false it will play the classic Stones song.

    The complete list of musics available can be found on the Server/Region.cs core script.