Jump to content
  • 0

How to make script Auto on bgm and max sound


eJay

Question


  • Group:  Members
  • Topic Count:  80
  • Topics Per Day:  0.02
  • Content Count:  325
  • Reputation:   76
  • Joined:  03/22/12
  • Last Seen:  

How to make script when players log in,, auto play bgm and max sound.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2369
  • Joined:  10/28/11
  • Last Seen:  

OnPCLoginEvent:
playBGM "<BGM filename>";
end;

but i dont think there is a way for you to set BGM volume through script command...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  80
  • Topics Per Day:  0.02
  • Content Count:  325
  • Reputation:   76
  • Joined:  03/22/12
  • Last Seen:  

hehe. but thanks emistry. :)

can i ask some question :) this is possible to make script for slash command ?

for example the "@" command is

OnPCLoginEvent:

atcommand "@where "+strcharinfo(0);

end;

then how about slash "/" cuz i want to use for "/bgm on" to all player when log in :)

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2369
  • Joined:  10/28/11
  • Last Seen:  

nope...that cant be done using script.....

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  219
  • Topics Per Day:  0.05
  • Content Count:  1181
  • Reputation:   141
  • Joined:  01/27/12
  • Last Seen:  

Why not just modify the file OptionInfo.LUA? You don't need another script to just add that much more strain on your server. Just modify that file and patch. Everybody will have those features set from then on.

Quote:

How to make script when players log in,, auto play bgm and max sound.

Peopleperson49

Edited by peopleperson49
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2369
  • Joined:  10/28/11
  • Last Seen:  

that setting can be overwrite by users after they login into ingame....

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  219
  • Topics Per Day:  0.05
  • Content Count:  1181
  • Reputation:   141
  • Joined:  01/27/12
  • Last Seen:  

Yes that true, but if they choose to overwright the setting then they probably don't want bgm and max volume anyway. It just seemed like a better solution then to make another script that runs at login, over time they add up and start to bog down login speeds.

Peopleperson49

Edited by peopleperson49
  • Upvote 1
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...