Jump to content
  • 0

BGM Plays Global, when Night Time


Question

Posted (edited)

Just wondering, is it possible to code a Background Music to play global to everyone when the server becomes night time? and then it changes back to normal music when it becomes day again?

Thanks!

I actually have another idea, if anyone can help me with it

i would like to have a command that plays certain music in the bgm folder like

But it will play global, so everyones bgm will switch to the one i chose.

example:

@playbgm Prontera Theme

@stopbgm

etc..

Thanks!!

Edited by KYeung

6 answers to this question

Recommended Posts

Posted

i would like to have a command that plays certain music in the bgm folder like

But it will play global, so everyones bgm will switch to the one i chose.

example:

@playbgm Prontera Theme

For this idea, @playbgmall musicname (mapname)

mapname is optionnal.

-    script    bin_playbgm    -1,{

OnInit:
   bindatcmd( "playbgmall", strnpcinfo(3) +"::OnPlayBgm");
   end;
OnPlayBgm:
   if( .@atcmd_parameters$[0] == "" ) {
       dispbottom "Usage : "+ .@atcmd_command$ +" musicname { mapname (optionnal, without brackets) }";
       end;
   }

   dispbottom .@atcmd_parameters$[0] +" is "+ ( .@atcmd_numparameters > 1 ? "broadcasted on the entire map." : "played for the entire server." );
   if( .@atcmd_numparameters > 1 )
       playBGMall .@atcmd_parameters$[0], .@atcmd_parameters$[1];
   else
       playBGMall .@atcmd_parameters$[0];

   end;
}

@stopbgm

You can't stop bgm (I think ?) but if player warp/log out, the custom music stop.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...