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

[EO2.0] Stop auto-Regen


SeeingBlue
 Share

Recommended Posts

Ok I think I figured it out.

Under modServerLoop -> ServerLoop I removed this.
```
                    ' check regen timer
                    'If TempPlayer(i).stopRegen Then
                        'If TempPlayer(i).stopRegenTimer + 5000 < GetTickCount Then
                            'TempPlayer(i).stopRegen = False
                            'TempPlayer(i).stopRegenTimer = 0
                        'End If
                    'End If
```
& Under modServerLoop -> UpdatePlayerVitals I edited to look like this.

```
Private Sub UpdatePlayerVitals()

Dim i As Long
    For i = 1 To Player_HighIndex
        If IsPlaying(i) Then
                    Call SendVital(i, Vitals.HP)
                    Call SendVital(i, Vitals.MP)
                    'send vitals to party if in one
                    If TempPlayer(i).inParty > 0 Then SendPartyVitals TempPlayer(i).inParty, i
        End If
    Next
End Sub
```
Finally under modPlayer -> JoinGame I added at the top

```
    TempPlayer(index).stopRegen = True

```
This worked for me, move it to tutorial if you want.
Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
SeeingBlue's fix is working nicely so I think I'll leave it where it is as I think it will help me track down the next problem of max health setting itself to higher values thank I want. It should help me track the variables through the code.
Then, I think I'll have a go at stripping it out when everything is buzzing along.
Thanks for the advice - appreciated!
Link to comment
Share on other sites

  • 7 months later...
By stopping auto-Regen completely doesn't that make the Willpower stat useless? If so is there any way to alter what Willpower does?
Also, I don't know the exact way to write it or if it's right at all but to stop auto-Regen for just one class would you put some or all of the above tut after a getplayerclass thing with the one class having the code and everything else exiting the function?
Link to comment
Share on other sites

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