- Joined
- Aug 29, 2009
- Messages
- 92
- Reaction score
- 4

strSoDTablePersonal = strSoDTablePersonal & "</td><td><strong>[color=red]Class[/color]</strong><BR>"
For i = 1 To (iC - 1)
If i <= Results Then
strSoDTablePersonal = strSoDTablePersonal & gClass(i) & "<BR>"
End If
Next
'<img src="\images\class\1.gif">Fighter',
'<img src="\images\class\2.gif">Pikeman',
'<img src="\images\class\3.gif">Archer',
'<img src="\images\class\4.gif">Mech',
'<img src="\images\class\5.gif">Knight',
'<img src="\images\class\6.gif">Ata',
'<img src="\images\class\7.gif">Priestess',
'<img src="\images\class\8.gif">Mage'
For i = 1 To RS.RecordCount
If iC <= 250 Then
tName = RS("CharName").Value
tLevel = RS("GLevel").Value
tPoints = RS("Point").Value
tKills = RS("KillCount").Value
[color=red[tClass = GetCharType(RS("CharType").Value)[/color]
tRegistDay = RS("RegistDay").Value
If InArray(tName, gName) = False And tPoints > 0 Then
If Not ucase(left(tName,3)) = "GM-" Then
gName(iC) = tName
gLevel(iC) = tLevel
gPoints(iC) = tPoints
gKills(iC) = tKills
[color=red]gClass(iC) = tClass[/color]
gRegistDay(iC) = tRegistDay
iC = iC + 1
End If
End If
If i < RS.RecordCount Then
RS.MoveNext
End If
End If
Next
If ChType="" Then
QUERY = "SELECT * FROM SoD2RecBySandurr ORDER BY Point DESC"
Else
QUERY = "SELECT * FROM SoD2RecBySandurr WHERE CharType='" & GetCharTypeInt(ChType) & "' ORDER BY Point DESC"
End If
...
OpenConnection(dbname3)
RS.Open QUERY, objConn, 3, 1
CREATE TABLE [dbo].[[color=red]SOD2RecBySandurr[/color]](
[SNo] [int] IDENTITY(1,1) NOT NULL,
[UserID] [varchar](50) NULL,
[CharName] [varchar](50) NULL,
[color=red][CharType] [int] NULL,[/color]
[Point] [int] NULL,
[KillCount] [int] NULL,
[GLevel] [int] NULL,
[TotalPoint] [int] NULL,
[TotalUser] [int] NULL,
[SuccessUser] [int] NULL,
[ServerName] [varchar](50) NULL,
[PCRNo] [int] NULL,
[GPCode] [varchar](50) NULL,
[BusinessName] [varchar](100) NULL,
[BAddress1] [varchar](100) NULL,
[PMNo] [int] NULL,
[Contribute] [int] NULL,
[RegistDay] [datetime] NULL,
[ServerTime] [bigint] NULL,
[Flag] [int] NULL,
[ClanIDX] [int] NULL,
[ClanName] [varchar](50) NULL
) ON [PRIMARY]
GetCharType(int).value
Function GetCharType(ID)
Select Case ID
Case "1"
GetCharType = "Fighter"
Case "2"
GetCharType = "Mechanician"
Case "3"
GetCharType = "Archer"
Case "4"
GetCharType = "Pikeman"
Case "5"
GetCharType = "Atalanta"
Case "6"
GetCharType = "Knight"
Case "7"
GetCharType = "Magician"
Case "8"
GetCharType = "Priestess"
End Select
End Function
Function GetCharType(ID)
Select Case ID
Case "1"
GetCharType = "<img src="\images\class\1.gif">Fighter"
Case "2"
GetCharType = "<img src="\images\class\2.gif">Mechanician"
Case "3"
GetCharType = "<img src="\images\class\3.gif">Archer"
Case "4"
GetCharType = "<img src="\images\class\4.gif">Pikeman"
Case "5"
GetCharType = "<img src="\images\class\5.gif">Atalanta"
Case "6"
GetCharType = "<img src="\images\class\6.gif">Knight"
Case "7"
GetCharType = "<img src="\images\class\7.gif">Magician"
Case "8"
GetCharType = "<img src="\images\class\8.gif">Priestess"
End Select
End Function
For i = 1 To (iC - 1)
If i <= Results Then
strSoDTablePersonal = strSoDTablePersonal & "<img src=functions/img/" & str(i) & ".gif>" & gClass(i) & "<BR>"
End If
Next
Function GetCharType(ID)
Select Case ID
Case "1"
GetCharType = "Fighter"
Case "2"
GetCharType = "Mechanician"
Case "3"
GetCharType = "Archer"
Case "4"
GetCharType = "Pikeman"
Case "5"
GetCharType = "Atalanta"
Case "6"
GetCharType = "Knight"
Case "7"
GetCharType = "Magician"
Case "8"
GetCharType = "Priestess"
End Select
End Function