viciousdead Posted March 25, 2011 Author Share Posted March 25, 2011 The Case 1 and Case 2, do they stand for class 1 and class 2?>! ```Function GetPlayerMaxVital(ByVal index As Long, ByVal Vital As Vitals) As Long If index > MAX_PLAYERS Then Exit Function Select Case Vital Case HP Select Case GetPlayerClass(index) Case 1 ' Warrior GetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Endurance) / 2)) * 15 + 150 + (GetPlayerLevel(index) * 10) Case 2 ' Mage GetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Endurance) / 2)) * 5 + 65 + (GetPlayerLevel(index) * 5) Case Else ' Anything else - Warrior by default GetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Endurance) / 2)) * 15 + 150 + (GetPlayerLevel(index) * 7) End Select Case MP Select Case GetPlayerClass(index) Case 1 ' Warrior GetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Intelligence) / 2)) * 5 + 25 + (GetPlayerLevel(index) * 5) Case 2 ' Mage GetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Intelligence) / 2)) * 30 + 85 + (GetPlayerLevel(index) * 10) Case Else ' Anything else - Warrior by default GetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Intelligence) / 2)) * 5 + 25 + (GetPlayerLevel(index) * 7) End Select End SelectEnd Function``` Link to comment Share on other sites More sharing options...
zdearborn Posted March 25, 2011 Share Posted March 25, 2011 Yes Link to comment Share on other sites More sharing options...
doomteam1 Posted March 25, 2011 Share Posted March 25, 2011 Case 1 ' Warrior Case 2 ' Mage Link to comment Share on other sites More sharing options...
viciousdead Posted March 25, 2011 Author Share Posted March 25, 2011 @zulu:> YesOk, just checking, thanks. 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