Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[EO] LevelUp Sound


hisherwin
 Share

Recommended Posts

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 entities

Public 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 1

Server Side

Find this

```

' Sound entities

Public 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 - Sherwin

Thanks~
Link to comment
Share on other sites

  • 2 years later...
@'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

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
 Share

×
×
  • Create New...