balliztik1 Posted June 24, 2009 Author Share Posted June 24, 2009 The lock feature on classes allows a user to keep players from picking certain classes. However, there is a bug to this. In the new character menu, the class number isn't used to determine what stats appear; the ListIndex property of the combo box is. If a class is locked, it won't appear in the combo box. This means that all classes AFTER that class are thrown off. The fix is to simply swap out the Private Sub cmbClass_Click() with this one:```Private Sub cmbClass_Click() Dim i As Byte For i = 0 To Max_Classes If Trim(Class(i).Name) = cmbClass.List(cmbClass.ListIndex) Then Exit For End If Next lblHP.Caption = STR(Class(i).HP) lblMP.Caption = STR(Class(i).MP) lblSP.Caption = STR(Class(i).SP) lblSTR.Caption = STR(Class(i).STR) lblDEF.Caption = STR(Class(i).DEF) lblSPEED.Caption = STR(Class(i).speed) lblMAGI.Caption = STR(Class(i).MAGI) lblClassDesc.Caption = Class(i).descEnd Sub``` Link to comment Share on other sites More sharing options...
Admiral Refuge Posted June 24, 2009 Share Posted June 24, 2009 You need access to the svn, ballie.Scratch that, we need a 2.8 svn, and give you access to it, ballie. Link to comment Share on other sites More sharing options...
dao Posted June 24, 2009 Share Posted June 24, 2009 nice fix! Link to comment Share on other sites More sharing options...
damian666 Posted June 24, 2009 Share Posted June 24, 2009 Agreed with admiral, your frikking fixing all i can think off :)Damian666 Link to comment Share on other sites More sharing options...
Neth Posted July 23, 2009 Share Posted July 23, 2009 I tried this update on my client and it didn't work.Did it on a fresh client too. The code that you tell us to replace with the one up there is the same exact one with no changes to it. Link to comment Share on other sites More sharing options...
balliztik1 Posted December 2, 2009 Author Share Posted December 2, 2009 @Neth:> I tried this update on my client and it didn't work.> Did it on a fresh client too. The code that you tell us to replace with the one up there is the same exact one with no changes to it.Psst. That's probably because Eclipse now uses the one I wrote. This was written for older versions. Obviously, as it works its way into the source code, it will become obsolete. Locking this up since it's in Eclipse now. It's also been in the SVN version for a while, too. Link to comment Share on other sites More sharing options...
Mellowz Posted December 2, 2009 Share Posted December 2, 2009 And just a note, Ballie does have access to the SVN. 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