Jump to content
  • 0

Sound Effects when....


Mr BrycE

Question


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

Sound Effects when....Logging in and Logging Out?

i thinks its possible...

hmm...

if yes, how? xD

like..hmm im guessing..

when OnPClogin event? or..

when Pressing , "Exit to Windows " when logging out the sound effects(wav) will trigger..

Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

Indeed. To do what you want, you will need to use these:

OnPCLoginEvent:
OnPCLogoutEvent:

Though, what's the point on the logout? I believe there's already a sound people hear when surrounding the player whose leaving. When a player logs out, theres some sort of teleport sound that goes off.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

for logout, ...

hmm, if your familiar with RGC "rank gaming client"

when they logout...it says

"Initiating Logout blah blah.."..

hmm..maybe a good script will do this to only play the sound only to that player.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  566
  • Reputation:   34
  • Joined:  11/17/11
  • Last Seen:  

Check this if this will work.

Get the wav or mp3 file of that "Initiating Logout blah blah" on RankGamingClient (RGC) and put it on your BGM folder. Then named it "logout.mp3" or "logout.wav".

then this is the script:

- script BGMSounds -1,{
OnPCLoginEvent:
playBGM "login";

OnPCLogoutEvent:
playBGM "logout";
}

if the above script is not working, then try to put the file type... just add logout.mp3 / login.mp3 (if the file is mp3 then .mp3... if wav, then .wav)

Edited by Jezu
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

sorry for the late reply...ill try it and see if it works

Hi, it doesnt work,

btw, im using eathena...

i already read about the playBGM in the doc file and it really needs .mp3 and it must be on BGM folder ( i think ) i already tried both...

and i already tried putting the extenstion file and w/o the extention file..

PS; i only do unload/loadnpc command...

does it needs a @reloadscript or a Restart Server to take effect?

Edited by Mr BrycE
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

bump

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

*playBGM "<BGM filename>";

*playBGMall "<BGM filename>"{,"<map name>"{,<x0>,<y0>,<x1>,<y1>}};

These two commands will play a Background Music to either the invoking character

only ('playBGM') or multiple characters ('playBGMall').

BGM filename is the filename in /BGM/ folder. It has to be in .mp3 extension.

It's not required to specify the extension inside the script.

If coordinates are omitted, BGM will be broadcasted on the entire map. If the map name

is omitted as well the BGM will be played for the entire server.

You can add your own BGMs this way, naturally.

No. All you have to do is add your BGM name. You do not need to add the extension .mp3. Either or would make the script run.. but I suggest just to restart your server for it. Maybe you can't hear the sound when you login beause it plays right when you login.. EVEN if you can't see the map yet. So, if you have a slow connection to load the map, right when your actual character connects to the map, the event will run. Suggest you add a sleep timer for 5 seconds then play the sound.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

awee tried...but it wont play..

here...tell me what's wrong.

- script BGMSounds -1,{
OnPCLoginEvent:
sleep 5000;
playBGM "login";
OnPCLogoutEvent:
playBGM "logout";
}

Edited by Mr BrycE
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

Maybe its your MP3 file. Try changing it to 154 or something (like a map's BGM). If it works then, it's your MP3 file.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

im only hearing it when i dual login :P

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...