Stats cap above 255

1 Question just cant figure out how a characters stats can be put above 255 instead of not having to have the cap at 255? I have vb6 so yeah

If you check in the server, within ModHandleData you will find this chunk of code

    ' Make sure they have points
    If GetPlayerPOINTS(index) > 0 Then
        ' make sure they're not maxed#
        If GetPlayerRawStat(index, PointType) >= 255 Then
            PlayerMsg index, "You cannot spend any more points on that stat.", BrightRed
            Exit Sub
        End If

Notice

If GetPlayerRawStat(index, PointType) >= 255 Then

I think there is your answer 🙂

Delete

If GetPlayerRawStat(index, PointType) >= 255 Then
            PlayerMsg index, "You cannot spend any more points on that stat.", BrightRed
            Exit Sub
        End If

```in modHandleData server side in sub

Sub HandleUseStatPoint(ByVal Index As Long, ByRef Data() As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long)

What do you mean in mode handle

server side in sub, so on

@azaew:

What do you mean in mode handle

server side in sub, so on

Server side search for

If GetPlayerRawStat(index, PointType) >= 255 Then

Either increase that number or entirely delete -

If GetPlayerRawStat(index, PointType) >= 255 Then
            PlayerMsg index, "You cannot spend any more points on that stat.", BrightRed
            Exit Sub
        End If

Its very simple!

Server side means in server.vbp
modHandleData is a mod that is found in server.vbp press control+f and find it.

Log in to reply