Jump to content
  • 0

[Help] How I can add song clip?


Question

Posted

hello guys,

I have a question...How I can add a small song clip after killing a Player on PvP.

I mean, on a won PvP you hear a small song clip, somebody can help me? Please!!

 

best reagards, CraZy

10 answers to this question

Recommended Posts

  • 0
Posted

hello guys,

I have a question...How I can add a small song clip after killing a Player on PvP.

I mean, on a won PvP you hear a small song clip, somebody can help me? Please!!

 

best reagards, CraZy

Like " Amphetamine is on killing spree or something like that ?

  • 0
Posted

Before all things, i haven't test this way!

 

After this line

setPvpKills(getPvpKills() + 1);

Put this line

 PlaySound _snd13 = new PlaySound(1, "EnemyDown", 0, 0, 0, 0, 0);
sendPacket(_snd13);

And now you must create the song and add it in music folder and the name must be the same name like the name in the (). So in this example, the file must be named 'EnemyDown.ogg'

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..