Blizzie Posted February 27, 2012 Author Share Posted February 27, 2012 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 More sharing options...
Robin Posted February 28, 2012 Share Posted February 28, 2012 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 More sharing options...
Blizzie Posted February 29, 2012 Author Share Posted February 29, 2012 Thanks Robin. I got it to work now. :DWhen I tried yesterday I didn't know how to compile, so I was all like "Why doesn't it work!? D:". :P 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