16-09-2008, 12:27 PM
I still don't see what you are trying to set your HP value to?
There are only an Index and a Vital as Vitals in the function. Yours is looking to select something else as well. If you want to set your players hit points to whatever your max hit points are plus 5000 it should be like this.
Do you understand how that works? You cannot change the MaxHP value in a default MS because it is calculated from your players stats and it's classes stats.
Code:
Function GetPlayerMaxVital(ByVal Index As Long, ByVal Vital As Vitals) As Long
There are only an Index and a Vital as Vitals in the function. Yours is looking to select something else as well. If you want to set your players hit points to whatever your max hit points are plus 5000 it should be like this.
Code:
Call SetPlayerVital(Index, Vitals.HP, GetPlayerMaxVital(Index, Vitals.HP) + 5000)
Do you understand how that works? You cannot change the MaxHP value in a default MS because it is calculated from your players stats and it's classes stats.