VERSION 5.00
Begin VB.Form frmCreateCharacter 
   BorderStyle     =   4  'Fixed ToolWindow
   Caption         =   "Create Character"
   ClientHeight    =   3855
   ClientLeft      =   45
   ClientTop       =   315
   ClientWidth     =   4215
   BeginProperty Font 
      Name            =   "Verdana"
      Size            =   8.25
      Charset         =   0
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   Icon            =   "frmCreateCharacter.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3855
   ScaleWidth      =   4215
   StartUpPosition =   2  'CenterScreen
   Begin VB.CommandButton cmdCancel 
      Caption         =   "Cancel"
      Height          =   375
      Left            =   1920
      TabIndex        =   14
      Top             =   3360
      Width           =   975
   End
   Begin VB.CommandButton cmdCreate 
      Caption         =   "Create"
      BeginProperty Font 
         Name            =   "Verdana"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   3000
      TabIndex        =   13
      Top             =   3360
      Width           =   1095
   End
   Begin VB.TextBox txtName 
      BeginProperty Font 
         Name            =   "Courier New"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   330
      Left            =   120
      TabIndex        =   12
      Top             =   2760
      Width           =   3975
   End
   Begin VB.CheckBox chkFlags 
      Caption         =   "Ladder"
      Height          =   255
      Index           =   2
      Left            =   2160
      TabIndex        =   10
      Top             =   720
      Width           =   1935
   End
   Begin VB.CheckBox chkFlags 
      Caption         =   "Hardcore"
      Height          =   255
      Index           =   1
      Left            =   2160
      TabIndex        =   9
      Top             =   480
      Width           =   1935
   End
   Begin VB.OptionButton optClass 
      Caption         =   "Assassin"
      Height          =   255
      Index           =   6
      Left            =   120
      TabIndex        =   6
      Top             =   1920
      Width           =   1695
   End
   Begin VB.OptionButton optClass 
      Caption         =   "Druid"
      Height          =   255
      Index           =   5
      Left            =   120
      TabIndex        =   5
      Top             =   1680
      Width           =   1695
   End
   Begin VB.OptionButton optClass 
      Caption         =   "Barbarian"
      Height          =   255
      Index           =   4
      Left            =   120
      TabIndex        =   4
      Top             =   1440
      Width           =   1695
   End
   Begin VB.OptionButton optClass 
      Caption         =   "Paladin"
      Height          =   255
      Index           =   3
      Left            =   120
      TabIndex        =   3
      Top             =   1200
      Width           =   1695
   End
   Begin VB.OptionButton optClass 
      Caption         =   "Necromancer"
      Height          =   255
      Index           =   2
      Left            =   120
      TabIndex        =   2
      Top             =   960
      Width           =   1695
   End
   Begin VB.OptionButton optClass 
      Caption         =   "Sorceress"
      Height          =   255
      Index           =   1
      Left            =   120
      TabIndex        =   1
      Top             =   720
      Width           =   1695
   End
   Begin VB.OptionButton optClass 
      Caption         =   "Amazon"
      Height          =   255
      Index           =   0
      Left            =   120
      TabIndex        =   0
      Top             =   480
      Value           =   -1  'True
      Width           =   1695
   End
   Begin VB.Label Label1 
      Caption         =   "Name:"
      BeginProperty Font 
         Name            =   "Verdana"
         Size            =   9
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000C000&
      Height          =   255
      Index           =   2
      Left            =   120
      TabIndex        =   11
      Top             =   2400
      Width           =   1695
   End
   Begin VB.Line Line1 
      X1              =   0
      X2              =   4200
      Y1              =   3240
      Y2              =   3240
   End
   Begin VB.Label Label1 
      Caption         =   "Flags:"
      BeginProperty Font 
         Name            =   "Verdana"
         Size            =   9
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000C000&
      Height          =   255
      Index           =   1
      Left            =   2160
      TabIndex        =   8
      Top             =   120
      Width           =   1935
   End
   Begin VB.Label Label1 
      Caption         =   "Class:"
      BeginProperty Font 
         Name            =   "Verdana"
         Size            =   9
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000C000&
      Height          =   255
      Index           =   0
      Left            =   120
      TabIndex        =   7
      Top             =   120
      Width           =   1695
   End
End
Attribute VB_Name = "frmCreateCharacter"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Public BotIndex As Integer

Public Sub ShowClasses(ProductID As String)
    optClass(5).Enabled = (ProductID = "D2XP")
    optClass(6).Enabled = (ProductID = "D2XP")
End Sub

Private Sub cmdCreate_Click()
    Dim Flags As Integer
    If (frmBot.Bot(BotIndex).Config.ProductID = "D2XP") Then Flags = Flags + &H20    'Expansion
    If chkFlags(1).value = vbChecked Then Flags = Flags + &H4    'Hardcore
    If chkFlags(2).value = vbChecked Then Flags = Flags + &H40    'Ladder
    frmBot.Bot(BotIndex).SendRealmCharCreate GetSelectedOption, Flags, txtName.text
    Unload Me
End Sub

Public Function GetSelectedOption() As Long
    GetSelectedOption = optClass(0).value * 0 Or _
        optClass(1).value * -1 Or _
        optClass(2).value * -2 Or _
        optClass(3).value * -3 Or _
        optClass(4).value * -4 Or _
        optClass(5).value * -5 Or _
        optClass(6).value * -6
End Function

