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

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock