Peter112 Posted August 25, 2011 Author Share Posted August 25, 2011 Where and how can add a new class code for health and spirit? (When I made an archer class it has the same health at same end with the fighter) Link to comment Share on other sites More sharing options...
Beanie93 Posted August 25, 2011 Share Posted August 25, 2011 Make a new case for it.You see, there are 2 cases, Warrior and Magician. There's also a Case Else, for any other class. Make a 3rd case.For example, by default, you have this:``` Case HP Select Case GetPlayerClass(Index) Case 1 ' Warrior GetPlayerMaxVital = ((GetPlayerLevel(Index) / 2) + (GetPlayerStat(Index, Endurance) / 2)) * 15 + 60 Case 2 ' Mage GetPlayerMaxVital = ((GetPlayerLevel(Index) / 2) + (GetPlayerStat(Index, Endurance) / 2)) * 5 + 50 Case Else ' Anything else - Warrior by default GetPlayerMaxVital = ((GetPlayerLevel(Index) / 2) + (GetPlayerStat(Index, Endurance) / 2)) * 15 + 150 End Select```You should now add a new case, like so:``` Select Case GetPlayerClass(Index) Case 1 ' Warrior GetPlayerMaxVital = ((GetPlayerLevel(Index) / 2) + (GetPlayerStat(Index, Endurance) / 2)) * 15 + 60 Case 2 ' Mage GetPlayerMaxVital = ((GetPlayerLevel(Index) / 2) + (GetPlayerStat(Index, Endurance) / 2)) * 5 + 50 Case 3 ' Archer GetPlayerMaxVital = ((GetPlayerLevel(Index) / 2) + (GetPlayerStat(Index, Endurance) / 2)) * 1 + 1 ' edit it, you won't want an archer with less than 10 HP ;P Case Else ' Anything else - Warrior by default GetPlayerMaxVital = ((GetPlayerLevel(Index) / 2) + (GetPlayerStat(Index, Endurance) / 2)) * 15 + 150 End Select```Do exactly the same for the MP. Link to comment Share on other sites More sharing options...
Peter112 Posted August 25, 2011 Author Share Posted August 25, 2011 Thanks! Link to comment Share on other sites More sharing options...
Catapult Posted August 25, 2011 Share Posted August 25, 2011 May I ask you where I can find those script?Thank you. Link to comment Share on other sites More sharing options...
Beanie93 Posted August 25, 2011 Share Posted August 25, 2011 Server-Side -> modCombat. It's at the very top. 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