Jump to content
  • 0

Sound Effects when....


Question

Posted

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

9 answers to this question

Recommended Posts

Posted

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.

Posted

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.

Posted (edited)

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
Posted (edited)

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
Posted

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

Posted (edited)

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

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