KrakaKrucifix Posted July 15, 2009 Author Share Posted July 15, 2009 So, I decided I don't want a set amount of HP and MP added each level based on the stats gained. Instead I am making it so that the amount of HP and MP earned each level goes up in brackets. For example, less than 50 Def gets 5 HP a level (+10 for leveling), and 50-124 Def gets 7 HP a level (+10 for leveling) and so on. My issue is occuring with my SetPlayerMaxHP and SetPlayerMaxMP subs.**Server Side**I have added the following code to both the clsCommand and the ModDatabase```Sub SetPlayerMaxHP(ByVal Index As Long, ByVal Num As Long) Player(Index).Char(Player(Index).CharNum).MAXHP = GetPlayerMaxHP(Index) + NumEnd SubSub SetPlayerMaxMP(ByVal Index As Long, ByVal Num As Long) Player(Index).Char(Player(Index).CharNum).MAXMP = GetPlayerMaxMP(Index) + NumEnd Sub```**Client Side**I added the following code to the modDatabase```Sub SetPlayerMaxHP(ByVal Index As Long, ByVal Num As Long) Player(Index).MaxHp = GetPlayerMaxHP(Index) + NumEnd SubSub SetPlayerMaxMP(ByVal Index As Long, ByVal Num As Long) Player(Index).MaxMP = GetPlayerMaxMP(Index) + NumEnd Sub```When used in my script the subs do not appear to function as designed. I am only getting the 10 HP for leveling.Any help would be greatly appreciated. Link to comment Share on other sites More sharing options...
Akselj Posted July 15, 2009 Share Posted July 15, 2009 Try updating the player's data.Normally it should give a compile error or an RTE if you did something wrong but sometimes it doesn't. 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