hisherwin Posted December 27, 2012 Author Share Posted December 27, 2012 I want to share this tut for everyone , this is a basic thing i don't know how to make an advance one so don't call me a noob / useless or anything that can insult ..This will allow you to play a sound when you level up, i tested this with 2 players , and the sound really does play only to you..First , get a .wav music file that will be a sound for this tut and name it "Level"Client Side , On "Public Sub PlayMapSound"after this```' spells Case SoundEntity.seSpell If entityNum > MAX_SPELLS Then Exit Sub soundName = Trim$(Spell(entityNum).Sound)```add this```' LevelUp Case SoundEntity.seLevelUp soundName = Trim$(LEVEL_SOUND)```add this at modConstant```Public Const LEVEL_SOUND As String = "LevelUp.wav"```Find this```' Sound entitiesPublic Enum SoundEntity seAnimation = 1 seItem seNpc seResource seSpell```Add this below it```seLevelUp```I know SoundEntity is a multiple play sound but i set a sound for only 1Server SideFind this```' Sound entitiesPublic Enum SoundEntity seAnimation = 1 seItem seNpc seResource seSpell```Add this below it```seLevelUp```now find this at CheckPlayerLevelUp```SendPlayerData index```Add this below it```SendPlayerSound index, GetPlayerX(index), GetPlayerY(index), SoundEntity.seLevelUp, 1```Credits - SherwinThanks~ Link to comment Share on other sites More sharing options...
Zzbrandon Posted December 27, 2012 Share Posted December 27, 2012 Beautiful. Link to comment Share on other sites More sharing options...
clark Posted December 27, 2012 Share Posted December 27, 2012 Perfectly working ![;)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/wink.png)! Nice job Link to comment Share on other sites More sharing options...
hisherwin Posted December 27, 2012 Author Share Posted December 27, 2012 Thanks for your feedback! Link to comment Share on other sites More sharing options...
WiseRock Posted December 28, 2012 Share Posted December 28, 2012 This works for EA? Link to comment Share on other sites More sharing options...
hisherwin Posted December 28, 2012 Author Share Posted December 28, 2012 > This works for EA?If their sound function are the same , Then it does Link to comment Share on other sites More sharing options...
Gahduvdeth Posted October 29, 2015 Share Posted October 29, 2015 Excellent! Link to comment Share on other sites More sharing options...
sherwin Posted October 29, 2015 Share Posted October 29, 2015 @'Gahduvdeth':> Excellent!Uhm, i suggest you not to use this one.. (even if i'm the one who made it)It's old and crap, there's a better and shorter way to do this.. just call the play sound sub on the sub where it increase your level (checkplayerlevelup) like that Link to comment Share on other sites More sharing options...
Growlith1223 Posted October 29, 2015 Share Posted October 29, 2015 @'Gahduvdeth':> Excellent!![](http://i.imgur.com/Zw2HgtA.png) Link to comment Share on other sites More sharing options...
Gahduvdeth Posted October 29, 2015 Share Posted October 29, 2015 What can I say? I'm a necromancer. It's what I do.Kidding. I actually forgot about that. xD Link to comment Share on other sites More sharing options...
Aurelijus1 Posted October 29, 2015 Share Posted October 29, 2015 Crap…When i add this code antivirus start saying that virus detected on launcher.exe... Link to comment Share on other sites More sharing options...
Genusis Posted October 29, 2015 Share Posted October 29, 2015 that is just a false positive… Unless of course your PC isn't infected with an actual virus which added itself to your exe. ;] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now