RyokuHasu Posted March 15, 2011 Author Share Posted March 15, 2011 Feed back please. =DDid you know, all classes you make can only have the max stats of a warrior by default? This will Show you the simple way to change that.And if you changed your first 2 classes THIS IS ALSO FOR YOU, more than new classes.SERVERIn modCombat RIGHT AT THE TOP under "Function GetPlayerMaxVital"Under "Case HP" before "Case Else" add```Case # ' the number of the class you want to create a new stat type forGetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Endurance) / 2)) * INCREASE + STARTING HP```Under "Case MP" before "Case Else" add:```Case # ' the number of the class you want to create a new stat type forGetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Endurance) / 2)) * INCREASE + STARTING MP```* * *EXAMPLE:I have a class, Tamer, Tamers control pets and the pets do most of the fighting for them, thus they have little ability to use magic of defend themselves. So they would have low HP and MP MaxTamer HP```Case 3 ' Tamer, the 3rd class in my classes file GetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Endurance) / 2)) * 5 + 80```Tamer MP```Case 3 ' Tamer, the 3rd class in my classes file GetPlayerMaxVital = ((GetPlayerLevel(index) / 2) + (GetPlayerStat(index, Endurance) / 2)) * 4 + 20```The results, ONE WEAK CLASS, however I give them 1 basic summoning scroll (multi use) to start out with, the pets will make up for thier weaknesses. Link to comment Share on other sites More sharing options...
RyokuHasu Posted May 28, 2011 Author Share Posted May 28, 2011 Has any one even tryed using this? O.o Link to comment Share on other sites More sharing options...
smashman186 Posted July 8, 2011 Share Posted July 8, 2011 It works fine for me :D Thank you very much <3 Link to comment Share on other sites More sharing options...
RyokuHasu Posted July 14, 2011 Author Share Posted July 14, 2011 your welcome =D Link to comment Share on other sites More sharing options...
Justn Posted July 27, 2011 Share Posted July 27, 2011 wow i cant believe i never saw this piece of code before thanks alot!!! also can i delete the 'Else' if i set all the classes up? Link to comment Share on other sites More sharing options...
RyokuHasu Posted July 27, 2011 Author Share Posted July 27, 2011 yes, you can, but i wouldn't just in case. Link to comment Share on other sites More sharing options...
UzGo Posted August 19, 2011 Share Posted August 19, 2011 Nice tutorial . :)But can you tell me how to change the max stats . I mean instead of 255 to be like 500 or something .I try to change the MAX_BYTE but when i start to compile it say Over Flow . How to change the max stats ??? :sad: Link to comment Share on other sites More sharing options...
RyokuHasu Posted August 20, 2011 Author Share Posted August 20, 2011 Well here's a tut i haven't seen in a while.But, you might be better off asking this in the Q&A section. This is for HP/MP, I dont know, nor do i need to know how to change the max stats like you want. =/ sorry Link to comment Share on other sites More sharing options...
Likestodraw Posted November 20, 2011 Share Posted November 20, 2011 I like the general idea, but you should say where the max HP and max MP goes in the code. Link to comment Share on other sites More sharing options...
RyokuHasu Posted November 21, 2011 Author Share Posted November 21, 2011 @Ryoku:> **SERVER> > In modCombat RIGHT AT THE TOP under "Function GetPlayerMaxVital"**Any other questions? ;P 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