Play Music On Login

Play Music On Login 1.2.0

Author
Felladrin
Downloads
55
Views
1,578
First release
Last update
Rating
5.00 star(s) 1 ratings
No permission to download Join the discussion More information

More resources from 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:
bool Enabled = true;                          // Is this system enabled?
bool PlayRandomMusic = true;                  // Should we play a random music from the list?
MusicName SingleMusic = MusicName.Stones2;    // Music to be played if PlayRandomMusic = false.

By default, it will play a random music from the list.
Code:
public static MusicName[] MusicList = {
      MusicName.Stones2,
      MusicName.Magincia,
      MusicName.Minoc,
      MusicName.Ocllo,
      MusicName.Skarabra,
      MusicName.Trinsic,
      MusicName.Yew,
      MusicName.InTown01,
      MusicName.Moonglow,
      MusicName.MinocNegative,
      MusicName.ValoriaShips
};

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.

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back