Zzbrandon Posted September 16, 2012 Author Share Posted September 16, 2012 Ok this may be a stupid question but when you level up is their anyway to change the skills max total points it can go up to also can you change how much boosted health endurance gives you if you add endurance to an item like change it if indurance 1 then add 1 health instead of like 3 which it is on. But I would want my first question answered ![:D](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/biggrin.png) Also one more thing is their a way to change Max Health,Mana,Spirit? like health go up to 3000 and I want to make only go to 100 same as Mana and Spirit? Link to comment Share on other sites More sharing options...
malphos101 Posted September 16, 2012 Share Posted September 16, 2012 You would have to edit the server source with VB6 Link to comment Share on other sites More sharing options...
Zzbrandon Posted September 16, 2012 Author Share Posted September 16, 2012 Yes i know that but where in the server source do I edit what module? Link to comment Share on other sites More sharing options...
malphos101 Posted September 16, 2012 Share Posted September 16, 2012 To change stats given at level up:```Sub CheckPlayerLevelUp```To change how much health/mp are given per skill point:```Function GetPlayerMaxVital``` Link to comment Share on other sites More sharing options...
Zzbrandon Posted September 16, 2012 Author Share Posted September 16, 2012 No I wanna change like the Final total of Health and Mp like Maxium allowed after they reach level 100 Link to comment Share on other sites More sharing options...
malphos101 Posted September 16, 2012 Share Posted September 16, 2012 hp increases as endurance does. You would have to add a cap to adding points to the endurance cap to achieve that kind of effect. Link to comment Share on other sites More sharing options...
Zzbrandon Posted September 16, 2012 Author Share Posted September 16, 2012 So if I get xp and my guy gets 1 level and I dont add any points to endurance then it will not go up? btw Hp still go up without endurance going up ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png) also How i make then max points for endurance lets say 100 and for all others skills. Link to comment Share on other sites More sharing options...
malphos101 Posted September 17, 2012 Share Posted September 17, 2012 If you would actually look at the code, in the GetPlayerMaxVital function like I said you would see where to adjust that. Link to comment Share on other sites More sharing options...
Zzbrandon Posted September 17, 2012 Author Share Posted September 17, 2012 I looking what I change lol you better scripter then me this what I see the top part with endurance I know ='s the starting char's Hp 15+150= 165–----------------------------------------------------------------------------------------------------------Function GetPlayerMaxVital(ByVal Index As Long, ByVal Vital As Vitals) As LongIf Index > MAX_PLAYERS Then Exit FunctionSelect Case VitalCase HPSelect Case GetPlayerClass(Index)Case 1 ' WarriorGetPlayerMaxVital = ((GetPlayerLevel(Index) / 2) + (GetPlayerStat(Index, Endurance) / 2)) * 15 + 150Case 2 ' MageGetPlayerMaxVital = ((GetPlayerLevel(Index) / 2) + (GetPlayerStat(Index, Endurance) / 2)) * 5 + 65Case Else ' Anything else - Warrior by defaultGetPlayerMaxVital = ((GetPlayerLevel(Index) / 2) + (GetPlayerStat(Index, Endurance) / 2)) * 15 + 150End SelectCase MPSelect Case GetPlayerClass(Index)Case 1 ' WarriorGetPlayerMaxVital = ((GetPlayerLevel(Index) / 2) + (GetPlayerStat(Index, Intelligence) / 2)) * 5 + 25Case 2 ' MageGetPlayerMaxVital = ((GetPlayerLevel(Index) / 2) + (GetPlayerStat(Index, Intelligence) / 2)) * 30 + 85Case Else ' Anything else - Warrior by defaultGetPlayerMaxVital = ((GetPlayerLevel(Index) / 2) + (GetPlayerStat(Index, Intelligence) / 2)) * 5 + 25End SelectEnd SelectEnd Function Link to comment Share on other sites More sharing options...
malphos101 Posted September 17, 2012 Share Posted September 17, 2012 GetPlayerMaxVital = (**(GetPlayerLevel(Index) / 2)** + (GetPlayerStat(Index, Endurance) / 2)) * 15 + 150 Link to comment Share on other sites More sharing options...
Zzbrandon Posted September 17, 2012 Author Share Posted September 17, 2012 I know that when a new player joins that his starting health what im trying to change once they reach max level in game and use all their points on endurance and agility and stuff to make Health 100 and make it go no further as of now it go in like 3000's range. I changed the 150 to 85 so 15+85 = 100 when they start. Link to comment Share on other sites More sharing options...
malphos101 Posted September 17, 2012 Share Posted September 17, 2012 That is for every players max hp. If you cannot take any advice I have been giving you and be able to apply some common logic then you really should not be messing around in the source code. Link to comment Share on other sites More sharing options...
Zzbrandon Posted September 17, 2012 Author Share Posted September 17, 2012 ![](http://i46.tinypic.com/30k5dti.png)Ok see it go up to 908 and I level 100 I want it to be only 100 my Hp Link to comment Share on other sites More sharing options...
Zzbrandon1 Posted September 17, 2012 Share Posted September 17, 2012 Is it even possible lol? Link to comment Share on other sites More sharing options...
malphos101 Posted September 17, 2012 Share Posted September 17, 2012 I have told you what to edit 2 times now. Link to comment Share on other sites More sharing options...
blkcrow Posted September 17, 2012 Share Posted September 17, 2012 ```vital = ((GetPlayerLevel(Index) / 2) + (GetPlayerStat(Index, Endurance) / 2)) * 15 + 150if vital < 100 then GetPlayerMaxVital = vitalelse GetPlayerMaxVital = 100end if```This code is for making health cap at 100\. You can change the cap by replacing 100 with the number you want.Also it will be better to make your own formula to better suit your needs Link to comment Share on other sites More sharing options...
Zzbrandon Posted September 18, 2012 Author Share Posted September 18, 2012 Hows does the system know how much to add to your hp does it do like 2 times 15 + 150 to find next level total health added onto? Link to comment Share on other sites More sharing options...
Ruins of Hell Posted September 18, 2012 Share Posted September 18, 2012 > Hows does the system know how much to add to your hp does it do like 2 times 15 + 150 to find next level total health added onto?It uses the following formula, as all of the posts above have shown. This is the formula for warrior (or class 1). The one below it is for Mage (or class 2) and the last one is for any other class.```vital = ((GetPlayerLevel(Index) / 2) + (GetPlayerStat(Index, Endurance) / 2)) * 15 + 150```So:![](http://latex.codecogs.com/gif.latex.gif?%5Cfrac{15%28level+endurance%29}{2}+150%25.png)Then the next 3 formulas are for the player's magicka. Link to comment Share on other sites More sharing options...
Zzbrandon Posted September 18, 2012 Author Share Posted September 18, 2012 Soul lol best help yet the only thing is how I make Max endurance lvl they can add points to I dont want them going like over 9000 ![:D](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/biggrin.png)Soul also I did this so I level 2 and have level 2 endurance so2+2 = 4then4 * 15 + 150is that the right formula or am I missing Frac15 whatever that is lol Link to comment Share on other sites More sharing options...
Ruins of Hell Posted September 22, 2012 Share Posted September 22, 2012 > Soul lol best help yet the only thing is how I make Max endurance lvl they can add points to I dont want them going like over 9000 ![:D](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/biggrin.png)> > Soul also I did this so I level 2 and have level 2 endurance so> > 2+2 = 4> > then> > 4 * 15 + 150> > is that the right formula or am I missing Frac15 whatever that is lolSorry, the forum messed up my formatting (it strips backslashes in URLs, or something). It should work now.It's (15 * (level + endurance)) / 2 + 150.So level 2 and 2 endurance:```(15 * (2 + 2)) / 2 + 150(15 * 4) / 2 + 15015 * 2 + 15030 + 150180```With Level 5 and 10 Endurance:```(15 * (5 + 10)) / 2 + 150(15 * 15) / 2 + 150225 / 2 + 150112.5 + 150162.5```Now obviously you can't have 162.5 health. Since the function returns an integer, the result is rounded using what's called _banker's rounding_. I won't go into that here, only note that the result is 162.```162``` 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