xxMartinxx Posted March 6, 2015 Author Share Posted March 6, 2015 **Hello everyone*** **I**would like to ask for help. Where can I edit amount of HP Player in the engine Eclipse Worlds 1.2.6* **I **wanted to be when player 'level up' his gets +40hp more no 8 or 10 like it's now* **I** guesses it will be somewhere in server code modCombat, modPlayer or gameHandleData but I don't see this**Thx for solution Eclipsian** Link to comment Share on other sites More sharing options...
Joyce Posted March 6, 2015 Share Posted March 6, 2015 It should be in GetMaxPlayerVitals, but there's no easily configurable option. It's all hardcoded math that you'll have to edit. Link to comment Share on other sites More sharing options...
xxMartinxx Posted March 6, 2015 Author Share Posted March 6, 2015 Exactly, I thought that this is it. I can not check it because I have a problem with the compile server, but okeyI will try later put somewhere for example "+20" and we will see efect :)```' ################################' ## Basic Calculations ##' ################################Function GetPlayerMaxVital(ByVal Index As Long, ByVal Vital As Vitals) As Long If Index > Player_HighIndex Or Index < 1 Then Exit Function Select Case Vital Case HP Select Case Class(GetPlayerClass(Index)).CombatTree Case 1 ' Melee GetPlayerMaxVital = ((GetPlayerLevel(Index) / 2) + (Account(Index).Chars(GetPlayerChar(Index)).Stat(Stats.Endurance) / 3)) * 15 + 135 Case 2 ' Range GetPlayerMaxVital = ((GetPlayerLevel(Index) / 2) + (Account(Index).Chars(GetPlayerChar(Index)).Stat(Stats.Endurance) / 3)) * 10 + 100 Case 3 ' Magic GetPlayerMaxVital = ((GetPlayerLevel(Index) / 2) + (Account(Index).Chars(GetPlayerChar(Index)).Stat(Stats.Endurance) / 3)) * 5 + 75 End Select Case MP Select Case Class(GetPlayerClass(Index)).CombatTree Case 1 ' Melee GetPlayerMaxVital = ((GetPlayerLevel(Index) / 2) + (Account(Index).Chars(GetPlayerChar(Index)).Stat(Stats.Intelligence) / 3)) * 5 + 75 Case 2 ' Range GetPlayerMaxVital = ((GetPlayerLevel(Index) / 2) + (Account(Index).Chars(GetPlayerChar(Index)).Stat(Stats.Intelligence) / 3)) * 10 + 100 Case 3 ' Magic GetPlayerMaxVital = ((GetPlayerLevel(Index) / 2) + (Account(Index).Chars(GetPlayerChar(Index)).Stat(Stats.Intelligence) / 3)) * 15 + 135 End Select End SelectEnd Function``` Link to comment Share on other sites More sharing options...
Peaverin Posted March 6, 2015 Share Posted March 6, 2015 > * **I** guesses it will be somewhere in server code modCombat, modPlayer or gameHandleData but I don't see this.Well, in fact, it actually is in modCombat, in the first function Function GetPlayerMaxVital. The script is configurated in a way that the user's hp depends on the combat tree.If you want to change the part that has to do with the the, in Case HP, replace the formulas with the ones that you want. If you want to change the lvl part, change ((GetPlayerLevel(index) / 2) to ((GetPlayerLevel(index) * 40). Link to comment Share on other sites More sharing options...
xxMartinxx Posted March 6, 2015 Author Share Posted March 6, 2015 Well it's working thank you very muchThis is what I was looking for :)BTW I replace it to ((GetPlayerLevel(Index) * 2) then every single level i get more 30hp :) Link to comment Share on other sites More sharing options...
Merkt Posted April 18, 2015 Share Posted April 18, 2015 How did you do this. I'd like my guys to get about the same amount of hp gain per level+ whatever they add from endurance after. 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