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

Max stats


Quess
 Share

Recommended Posts

Change:
```
Stat(1 To Stats.Stat_Count - 1) As Byte
```To:
```
Stat(1 To Stats.Stat_Count - 1) As Long
```On both the client and server, ModTypes. Type PlayerRec

Then find:
```
If GetPlayerRawStat(index, PointType) >= 255 Then
```In ModHandledata, Sub HandleUseStatpoint and change it to whatever you want the max amount to be. (Taking in mind the limits of the Long variable, I however doubt you can come up with a sane number that goes over that, however)
Link to comment
Share on other sites

dont forget

```
Sub SetPlayerStat(ByVal Index As Long, Stat As Stats, ByVal Value As Long)
    ' If debug mode, handle error then exit out
    If Options.Debug = 1 Then On Error GoTo errorhandler

    If Index > MAX_PLAYERS Then Exit Sub
    If Value <= 0 Then Value = 1
    If Value > MAX_BYTE Then Value = MAX_BYTE
    Player(Index).Stat(Stat) = Value

    ' Error handler
    Exit Sub
errorhandler:
    HandleError "SetPlayerStat", "modDatabase", Err.Number, Err.Description, Err.Source, Err.HelpContext
    Err.Clear
    Exit Sub
End Sub
```
change this line
```
If Value > MAX_BYTE Then Value = MAX_BYTE
```

give thanks to lightning
Link to comment
Share on other sites

Hmm… Changed it to MAX_LONG, but I got out of range error again ;<
Then tried to change NpcRec, ItemRec and ClassRec like this.
```
Stat(1 To Stats.Stat_Count - 1) As Byte
```To this:
```
Stat(1 To Stats.Stat_Count - 1) As Long
```And:
```
Add_Stat(1 To Stats.Stat_Count - 1) As Byte
Stat_Req(1 To Stats.Stat_Count - 1) As Byte
```To:
```
Add_Stat(1 To Stats.Stat_Count - 1) As Long
Stat_Req(1 To Stats.Stat_Count - 1) As Long
```
And "out of range" error AGAIN! ;<
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...

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