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'

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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