SeeingBlue Posted August 7, 2011 Author Share Posted August 7, 2011 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 NextEnd 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 More sharing options...
csm Posted September 10, 2011 Share Posted September 10, 2011 > ```> TempPlayer(index).stopRegen = True> > ```Would that not be enough on it's own? Link to comment Share on other sites More sharing options...
SeeingBlue Posted September 11, 2011 Author Share Posted September 11, 2011 @csm:> Would that not be enough on it's own?There are other actions that re-enable it. Link to comment Share on other sites More sharing options...
csm Posted September 22, 2011 Share Posted September 22, 2011 Seeing Blue- just added this into my code - works really well, many thanks! Link to comment Share on other sites More sharing options...
Robin Posted September 22, 2011 Share Posted September 22, 2011 The .stopRegen flag is used to stop regeneration during combat. If you don't want any regeneration at all do as the tutorial says and just strip the entire system.I'm fairly sure you can just remove the vital update procedure completely, though. Link to comment Share on other sites More sharing options...
csm Posted September 22, 2011 Share Posted September 22, 2011 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 More sharing options...
Killa_ Posted May 13, 2012 Share Posted May 13, 2012 Sorry for bumping,but can i stop auto-regen for the one class? Link to comment Share on other sites More sharing options...
Majin Posted May 16, 2012 Share Posted May 16, 2012 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 More sharing options...
Alerd Posted October 22, 2012 Share Posted October 22, 2012 Is it possible to do to repair itself of 0.01 rather than 2.0? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now