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

How to change sprites at level up


FatTwinkie
 Share

Recommended Posts

Allright so open up your Main.txt, or Main.ess, in the Server folder/Scripts.
Hit ctrl + F and search for levelup. You should find this.
```
Sub PlayerLevelUp(Index)

```
So post what I allready posted right before the Loop starts. like so
```
Sub PlayerLevelUp(Index)
Dim TotalExp

Do While GetPlayerExp(Index) >= GetPlayerNextLevel(Index)
TotalExp = GetPlayerExp(Index) - GetPlayerNextLevel(Index)
Call SetPlayerLevel(Index, GetPlayerLevel(Index) + 1)

          If GetPlayerLevel(Index) = 10 Then 
Call SetPlayerSprite(Index, 5) 
End If

Loop

```
Just post the code there, then hit save, or ctrl + S.
Hit reload scripts on the server, and then go kill till you level up to 10, or level yourself by the server.
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...