Helladen Posted November 29, 2010 Author Share Posted November 29, 2010 I am having problems with regenerating to update npc vitals, I have tried sending packets to request them in the client game loop and such. (Messing around, trying to figure it out, and it wasn't really working too well). I did manage to get it working by sending the map npc vitals every 5 seconds like players do but that wasn't very efficient in my books. Does anyone know of a way to get this working correctly? Link to comment Share on other sites More sharing options...
Rawrwus Posted December 19, 2010 Share Posted December 19, 2010 I find it a bit difficult to answer this question because I am not sure that I fully understand what your asking.What I think your saying is you want NPCs to slowly regenerate their Vitals and your trying to find an efficient way of having the server update the clients with the data. Though if that were the case then I imagine all you need to do is insert the regeneration script in the Server side game loop and the updated HP should actually filter down to the clients as normal. I believe I am miss interpretting what your asking for though so if you are able to clarify a bit more that would help. Link to comment Share on other sites More sharing options...
Helladen Posted December 20, 2010 Author Share Posted December 20, 2010 Yeah I did this awhile ago, thanks for the reply though. 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