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

[SOLVED][EO2] Updating vitals/Regen timer?


Blizzie
 Share

Recommended Posts

Alright, so me and my friend started playing around with EO 2.0 yesterday. Today I decided I should try to edit the source, and so I did. The thing is, I want to set how often players (and NPCs) regenerate HP and MP. I've set the amount to regenerate, but I didn't find any "regen timer" or "tick" or whatever.

So, is there any way to change how often a player's vitals are updated and how often they regenerate HP?

I've mostly been poking around in modCombat in Server.vbp, but I tried searching for "vitals", "tick" and "update" in some of the other files, but had no luck.
Link to comment
Share on other sites

Being able to find things in the source code is a skill itself. You need to learn how to trace function and packet routes.

For now you simply need to know that all looped processing logic is handled in modServerLoop. Go through the main loop function and find out where the regen is handled.
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...