Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Public Sub PerfectKeyEvaluation(index As Integer)
  2.   Dim keepKey As Boolean
  3.  
  4.   With BNETData(index)
  5.     If canTestExpansion(.product) Then keepKey = True
  6.    
  7.     If Not keepKey Then
  8.       .CDKey = vbNullString
  9.       AddKeyToList .CDKey, .product, "Perfect"
  10.       removeThisKey .CDKey, .product
  11.       If .TestedEXP > 0 Then .TestedEXP = 0
  12.     End If
  13.  
  14.     .numTested = .numTested + 1
  15.  
  16.     If .isExpansion Then
  17.       AddChat vbGreen, "Index #" & index & ": Found a perfect expansion key!"
  18.      
  19.       .CDKeyExp = vbNullString
  20.       AddKeyToList .CDKeyExp, .product, "Perfect"
  21.       removeThisKey .CDKeyExp, .product
  22.      
  23.       If .TestedEXP = Expansion.TestEXPPerRegularKey Then
  24.         If hasExpKey(BNETData(index).product) Then
  25.           AddChat vbYellow, "Index #" & index & ": Tests per regular key reached. Rotating key..."
  26.        
  27.           .CDKey = vbNullString
  28.           AddKeyToList .CDKey, .product, "Perfect"
  29.           removeThisKey .CDKey, .product
  30.         End If
  31.      
  32.         .TestedEXP = 0
  33.       Else
  34.         .TestedEXP = .TestedEXP + 1
  35.       End If
  36.     Else
  37.       AddChat vbGreen, "Index #" & index & ": Found a perfect key!"
  38.     End If
  39.  
  40.     Select Case BNETData(index).product
  41.       Case "STAR"
  42.         frmMain.lblControl(SCBWPerfect).Caption = frmMain.lblControl(SCBWPerfect).Caption + 1
  43.         frmMain.lblControl(SCBWTotal).Caption = frmMain.lblControl(SCBWTotal).Caption + 1
  44.       Case "W2BN"
  45.         frmMain.lblControl(W2BNPerfect).Caption = frmMain.lblControl(W2BNPerfect).Caption + 1
  46.         frmMain.lblControl(W2BNTotal).Caption = frmMain.lblControl(W2BNTotal).Caption + 1
  47.       Case "D2DV"
  48.         frmMain.lblControl(D2DVPerfect).Caption = frmMain.lblControl(D2DVPerfect).Caption + 1
  49.         frmMain.lblControl(D2DVTotal).Caption = frmMain.lblControl(D2DVTotal).Caption + 1
  50.       Case "D2XP"
  51.         frmMain.lblControl(D2XPPerfect).Caption = frmMain.lblControl(D2XPPerfect).Caption + 1
  52.         frmMain.lblControl(D2XPTotal).Caption = frmMain.lblControl(D2XPTotal).Caption + 1
  53.       Case "WAR3"
  54.         frmMain.lblControl(WAR3Perfect).Caption = frmMain.lblControl(WAR3Perfect).Caption + 1
  55.         frmMain.lblControl(WAR3Total).Caption = frmMain.lblControl(WAR3Total).Caption + 1
  56.       Case "W3XP"
  57.         frmMain.lblControl(W3XPGood).Caption = frmMain.lblControl(W3XPGood).Caption + 1
  58.         frmMain.lblControl(W3XPTotal).Caption = frmMain.lblControl(W3XPTotal).Caption + 1
  59.     End Select
  60.   End With
  61. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement