tmoney Posted October 15, 2017 Author Share Posted October 15, 2017 I've ran a test to figure out what side it's happening on, it is indeed the Server side. I've ran debugging tests on it, and it seems to be working right, so I thought maybe it was a graphical error? But, no because my level isn't raising. It's not shooting off any errors, just not sending EXP when the NPC dies.Where and what should I look into, to fix an error like this? I'm out of ideas. If you have team viewer, I can show you my issue first hand rather than trying to explain it on here ( Not the best at that always ).THANK YOU!![alt text](http://i66.tinypic.com/5mn961.png) Link to comment Share on other sites More sharing options...
tmoney Posted October 15, 2017 Author Share Posted October 15, 2017 Agh... thought I was in Q&A Sorry for wrong spot :( Link to comment Share on other sites More sharing options...
Coyote Posted October 15, 2017 Share Posted October 15, 2017 In SetPlayerExp replace GetPlayerNextLevel with just exp.It is setting exp to the next level needed or something not the exp you want to add when set it. If you have any expirience with vb6 you should've seen this. Link to comment Share on other sites More sharing options...
Coyote Posted October 15, 2017 Share Posted October 15, 2017 Also in SetPlayerExp you are looking for a player that is max level and has exp higher than exp of the next level thats why it doesnt even have a chance to set exp actually. Simply fix is by adding else below if ... then Link to comment Share on other sites More sharing options...
SolidLink Posted October 15, 2017 Share Posted October 15, 2017 @Coyote is this a bug on AE? Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted October 15, 2017 Share Posted October 15, 2017 @solidlink He's using ER 1.7, but SetPlayerExp looked like this. The code shown is missing a line. Sub SetPlayerExp(ByVal Index As Long, ByVal exp As Long) Player(Index).exp = exp If GetPlayerLevel(Index) = MAX_LEVELS And Player(Index).exp > GetPlayerNextLevel(Index) Then Player(Index).exp = GetPlayerNextLevel(Index) End If End Sub Link to comment Share on other sites More sharing options...
tmoney Posted October 15, 2017 Author Share Posted October 15, 2017 Thank Mahenjo! It was a line missing, I feel pretty dumb now but excited at the same time! :D now I can move forward! 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