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

Player Vitals


FilipeBS
 Share

Recommended Posts

Hi!

Can anybody explain me about the Vitals? How it's stored? The server saves the HP and MP separated or it calculates by taking the vital as reference? I'm trying to change the actual database to MySQL and I don't kwon if I have to save only the vital or the HP & MP.
Link to comment
Share on other sites

Player Vital's is stored as an array, so the array is named vital, and HP and MP are stored seperately in the array. I may be wrong on this part, but I believe the HP is stored in spot 1 of the array and MP is stored in 2, and 0 is unused.

```

' Vitals used by Players, Npcs and Classes

Public Enum Vitals

HP = 1

mp

' Make sure Vital_Count is below everything else

Vital_Count

End Enum

```
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...