VERSION 5.00
Begin VB.Form frmClanInvite 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Clan Invitation"
   ClientHeight    =   2325
   ClientLeft      =   45
   ClientTop       =   420
   ClientWidth     =   6345
   BeginProperty Font 
      Name            =   "Verdana"
      Size            =   9
      Charset         =   0
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   Icon            =   "frmClanInvite.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2325
   ScaleWidth      =   6345
   StartUpPosition =   3  'Windows Default
   Begin VB.Timer tmrCountdown 
      Interval        =   1000
      Left            =   5760
      Top             =   1800
   End
   Begin VB.CommandButton cmdAccept 
      Caption         =   "Yes"
      Height          =   495
      Left            =   2040
      TabIndex        =   2
      Top             =   1680
      Width           =   1215
   End
   Begin VB.CommandButton cmdDecline 
      Caption         =   "No"
      Height          =   495
      Left            =   3360
      TabIndex        =   1
      Top             =   1680
      Width           =   1215
   End
   Begin VB.Label lblDoYou 
      Caption         =   "Do you want to accept the invitation?"
      Height          =   255
      Left            =   120
      TabIndex        =   4
      Top             =   1200
      Width           =   3615
   End
   Begin VB.Label lblYouHave 
      Caption         =   "You have been invited to join Clan {0} by {1}"
      Height          =   615
      Left            =   120
      TabIndex        =   3
      Top             =   120
      Width           =   6135
   End
   Begin VB.Label lblThereAre 
      Caption         =   "There are only {X} seconds left before this invitation expires!"
      ForeColor       =   &H00FF0000&
      Height          =   255
      Left            =   120
      TabIndex        =   0
      Top             =   840
      Width           =   6135
   End
End
Attribute VB_Name = "frmClanInvite"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Public BotIndex As Integer
Public Counter As Integer

Private Sub cmdAccept_Click()
    frmBot.Bot(BotIndex).SendClanInvitationResponse True
    Unload Me
End Sub

Private Sub cmdDecline_Click()
    frmBot.Bot(BotIndex).SendClanInvitationResponse False
    Unload Me
End Sub

Private Sub tmrCountdown_Timer()
    Counter = Counter - 1
    If Counter <= 0 Then
        Unload Me
    Else
        lblThereAre.Caption = "There are only " & Counter & " seconds left before this invitation expires!"
    End If
End Sub
