Jump to content
  • 0

BGM Plays Global, when Night Time


KYeung

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  01/12/13
  • Last Seen:  

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
Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  01/12/13
  • Last Seen:  

bump pls!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  115
  • Reputation:   4
  • Joined:  10/25/12
  • Last Seen:  

no atcommands for that I think.

just use script command : playBGM / playBGMall

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  01/12/13
  • Last Seen:  

i was hoping someone can make one haha thats why im at the request section :S

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  01/12/13
  • Last Seen:  

Oh okay thanks!

err sorry dumb question but, can u make me a quick tutorial on how to set it up?

Edited by KYeung
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

You mean load an NPC ? Adding_a_Script

Link to comment
Share on other sites

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.

×
×
  • Create New...