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

How to stop the player to …...,..


the star
 Share

Recommended Posts

What you're wanting to do is a source edit. You will need a copy of vb6 to open up the Server.vbp.

Find this code.
```
Function GetPlayerVitalRegen(ByVal index As Long, ByVal Vital As Vitals) As Long
    Dim i As Long

    ' Prevent subscript out of range
    If IsPlaying(index) = False Or index <= 0 Or index > MAX_PLAYERS Then
        GetPlayerVitalRegen = 0
        Exit Function
    End If

    Select Case Vital
        Case HP
            i = (GetPlayerStat(index, Stats.Willpower) * 0.8) + 6
        Case MP
            i = (GetPlayerStat(index, Stats.Willpower) / 4) + 12.5
    End Select

    If i < 2 Then i = 2
    GetPlayerVitalRegen = i
End Function

```
Change it to this to completely stop regeneration.
```
Function GetPlayerVitalRegen(ByVal index As Long, ByVal Vital As Vitals) As Long
    Dim i As Long

    ' Prevent subscript out of range
    If IsPlaying(index) = False Or index <= 0 Or index > MAX_PLAYERS Then
        GetPlayerVitalRegen = 0
        Exit Function
    End If

    Select Case Vital
        Case HP
            i = 0
        Case MP
            i = 0
    End Select

    GetPlayerVitalRegen = i
End Function

```
Link to comment
Share on other sites

  • 2 months later...
I am totally agree with what you said,but my English is poor, sometiomes I don't know how to express my feeling,I just want to make some friends who can help me in my English and share the happiness with each other.

__________________________________

share love,share happy,share useful information about [http://www.mmolive.com/](http://www.mmolive.com/) and [http://www.mmohome.com](http://www.mmohome.com)
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...