Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple EXP Carry-Over
#1
Author: Magnus
Difficulty: 1/5

:: SERVER SIDE ::
Find:
Code:
Sub CheckPlayerLevelUp(ByVal Index As Long)
Beneath it, add:
Code:
Dim ExtraEXP As Long

Now, add this before any of the other comment stuff:
Code:
If GetPlayerExp(Index) > GetPlayerNextLevel(Index) Then
        ExtraEXP = (GetPlayerExp(Index) - GetPlayerNextLevel(Index))
    Else
        ExtraEXP = 0
    End If
Change:
Code:
Call SetPlayerExp(Index, 0)
To:
Code:
Call SetPlayerExp(Index, ExtraEXP)
At the end, add:
Code:
Call CheckPlayerLevelUp(Index)
That's all!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)