<%@ Page Language="vb" Debug="true" %> <% @Import NameSpace="System.Data" %> <% @Import NameSpace="System.Data.SQLClient" %> <% @Import NameSpace="System.Diagnostics.Debug" %> <% @Import NameSpace="System.Data.OleDb" %> <% @Import NameSpace="System.Drawing" %> <%@ Import Namespace="System.Drawing.Imaging" %> <%@ Import Namespace="System.Drawing.Text" %> <%@ Import namespace="System.IO" %> <%@ Import namespace="System.Net" %> <%@ Import namespace="System.Collections" %> <%@ Import Namespace="System.Drawing.Drawing2D" %> <% Dim Id_Utente = 1 Dim Pagina Pagina = Request.ServerVariables("PATH_TRANSLATED") Pagina = Mid(Pagina,1,Len(Pagina)-Len(Split(StrReverse(Pagina),"\")(0))-1) 'Pagina = Mid(Pagina,1,Len(Pagina)-Len(Split(StrReverse(Pagina),"\")(0))) Pagina = Pagina + "\public\Avatar_Imperi_" & Id_Utente & ".jpg" Dim objBMP As System.Drawing.Bitmap Dim objGraphics As System.Drawing.Graphics Dim objFont As System.Drawing.Font Dim Dim_1_Human = 0 Dim Dim_2_Human = 0 Dim Dim_3_Human = 0 Dim Dim_4_Human = 0 Dim Dim_5_Human = 0 Dim Dim_6_Human = 0 Dim Dim_7_Human = 0 Dim Dim_8_Human = 0 Dim Dim_9_Human = 0 Dim Dim_10_Human = 0 Dim Dim_11_Human = 0 Dim Dim_12_Human = 0 Dim Dim_13_Human = 0 Dim Dim_14_Human = 0 Dim Dim_15_Human = 0 Dim Dim_16_Human = 0 Dim Dim_17_Human = 0 Dim Dim_18_Human = 0 Dim Dim_19_Human = 0 Dim Dim_20_Human = 0 Dim Dim_1_Elf = 0 Dim Dim_2_Elf = 0 Dim Dim_3_Elf = 0 Dim Dim_4_Elf = 0 Dim Dim_5_Elf = 0 Dim Dim_6_Elf = 0 Dim Dim_7_Elf = 0 Dim Dim_8_Elf = 0 Dim Dim_9_Elf = 0 Dim Dim_10_Elf = 0 Dim Dim_11_Elf = 0 Dim Dim_12_Elf = 0 Dim Dim_13_Elf = 0 Dim Dim_14_Elf = 0 Dim Dim_15_Elf = 0 Dim Dim_16_Elf = 0 Dim Dim_17_Elf = 0 Dim Dim_18_Elf = 0 Dim Dim_19_Elf = 0 Dim Dim_20_Elf = 0 Dim Dim_1_Orc = 0 Dim Dim_2_Orc = 0 Dim Dim_3_Orc = 0 Dim Dim_4_Orc = 0 Dim Dim_5_Orc = 0 Dim Dim_6_Orc = 0 Dim Dim_7_Orc = 0 Dim Dim_8_Orc = 0 Dim Dim_9_Orc = 0 Dim Dim_10_Orc = 0 Dim Dim_11_Orc = 0 Dim Dim_12_Orc = 0 Dim Dim_13_Orc = 0 Dim Dim_14_Orc = 0 Dim Dim_15_Orc = 0 Dim Dim_16_Orc = 0 Dim Dim_17_Orc = 0 Dim Dim_18_Orc = 0 Dim Dim_19_Orc = 0 Dim Dim_20_Orc = 0 Dim Dim_1_Undead = 0 Dim Dim_2_Undead = 0 Dim Dim_3_Undead = 0 Dim Dim_4_Undead = 0 Dim Dim_5_Undead = 0 Dim Dim_6_Undead = 0 Dim Dim_7_Undead = 0 Dim Dim_8_Undead = 0 Dim Dim_9_Undead = 0 Dim Dim_10_Undead = 0 Dim Dim_11_Undead = 0 Dim Dim_12_Undead = 0 Dim Dim_13_Undead = 0 Dim Dim_14_Undead = 0 Dim Dim_15_Undead = 0 Dim Dim_16_Undead = 0 Dim Dim_17_Undead = 0 Dim Dim_18_Undead = 0 Dim Dim_19_Undead = 0 Dim Dim_20_Undead = 0 sqlConn.Open() sqlComm = New SqlCommand("SELECT Dimensione, Race FROM Pianeti JOIN Utenti ON Utenti.Username = Pianeti.Proprietary ", sqlConn) r = sqlComm.ExecuteReader() While r.Read() If r("Dimensione") = 1 AND Trim(r("Race")) = "Human" Then Dim_1_Human = Dim_1_Human + 1 Else If r("Dimensione") = 2 AND Trim(r("Race")) = "Human" Then Dim_2_Human = Dim_2_Human + 1 Else If r("Dimensione") = 3 AND Trim(r("Race")) = "Human" Then Dim_3_Human = Dim_3_Human + 1 Else If r("Dimensione") = 4 AND Trim(r("Race")) = "Human" Then Dim_4_Human = Dim_4_Human + 1 Else If r("Dimensione") = 5 AND Trim(r("Race")) = "Human" Then Dim_5_Human = Dim_5_Human + 1 Else If r("Dimensione") = 6 AND Trim(r("Race")) = "Human" Then Dim_6_Human = Dim_6_Human + 1 Else If r("Dimensione") = 7 AND Trim(r("Race")) = "Human" Then Dim_7_Human = Dim_7_Human + 1 Else If r("Dimensione") = 8 AND Trim(r("Race")) = "Human" Then Dim_8_Human = Dim_8_Human + 1 Else If r("Dimensione") = 9 AND Trim(r("Race")) = "Human" Then Dim_9_Human = Dim_9_Human + 1 Else If r("Dimensione") = 10 AND Trim(r("Race")) = "Human" Then Dim_10_Human = Dim_10_Human + 1 Else If r("Dimensione") = 11 AND Trim(r("Race")) = "Human" Then Dim_11_Human = Dim_11_Human + 1 Else If r("Dimensione") = 12 AND Trim(r("Race")) = "Human" Then Dim_12_Human = Dim_12_Human + 1 Else If r("Dimensione") = 13 AND Trim(r("Race")) = "Human" Then Dim_13_Human = Dim_13_Human + 1 Else If r("Dimensione") = 14 AND Trim(r("Race")) = "Human" Then Dim_14_Human = Dim_14_Human + 1 Else If r("Dimensione") = 15 AND Trim(r("Race")) = "Human" Then Dim_15_Human = Dim_15_Human + 1 Else If r("Dimensione") = 16 AND Trim(r("Race")) = "Human" Then Dim_16_Human = Dim_16_Human + 1 Else If r("Dimensione") = 17 AND Trim(r("Race")) = "Human" Then Dim_17_Human = Dim_17_Human + 1 Else If r("Dimensione") = 18 AND Trim(r("Race")) = "Human" Then Dim_18_Human = Dim_18_Human + 1 Else If r("Dimensione") = 19 AND Trim(r("Race")) = "Human" Then Dim_19_Human = Dim_19_Human + 1 Else If r("Dimensione") = 20 AND Trim(r("Race")) = "Human" Then Dim_20_Human = Dim_20_Human + 1 Else If r("Dimensione") = 1 AND Trim(r("Race")) = "Elf" Then Dim_1_Elf = Dim_1_Elf + 1 Else If r("Dimensione") = 2 AND Trim(r("Race")) = "Elf" Then Dim_2_Elf = Dim_2_Elf + 1 Else If r("Dimensione") = 3 AND Trim(r("Race")) = "Elf" Then Dim_3_Elf = Dim_3_Elf + 1 Else If r("Dimensione") = 4 AND Trim(r("Race")) = "Elf" Then Dim_4_Elf = Dim_4_Elf + 1 Else If r("Dimensione") = 5 AND Trim(r("Race")) = "Elf" Then Dim_5_Elf = Dim_5_Elf + 1 Else If r("Dimensione") = 6 AND Trim(r("Race")) = "Elf" Then Dim_6_Elf = Dim_6_Elf + 1 Else If r("Dimensione") = 7 AND Trim(r("Race")) = "Elf" Then Dim_7_Elf = Dim_7_Elf + 1 Else If r("Dimensione") = 8 AND Trim(r("Race")) = "Elf" Then Dim_8_Elf = Dim_8_Elf + 1 Else If r("Dimensione") = 9 AND Trim(r("Race")) = "Elf" Then Dim_9_Elf = Dim_9_Elf + 1 Else If r("Dimensione") = 10 AND Trim(r("Race")) = "Elf" Then Dim_10_Elf = Dim_10_Elf + 1 Else If r("Dimensione") = 11 AND Trim(r("Race")) = "Elf" Then Dim_11_Elf = Dim_11_Elf + 1 Else If r("Dimensione") = 12 AND Trim(r("Race")) = "Elf" Then Dim_12_Elf = Dim_12_Elf + 1 Else If r("Dimensione") = 13 AND Trim(r("Race")) = "Elf" Then Dim_13_Elf = Dim_13_Elf + 1 Else If r("Dimensione") = 14 AND Trim(r("Race")) = "Elf" Then Dim_14_Elf = Dim_14_Elf + 1 Else If r("Dimensione") = 15 AND Trim(r("Race")) = "Elf" Then Dim_15_Elf = Dim_15_Elf + 1 Else If r("Dimensione") = 16 AND Trim(r("Race")) = "Elf" Then Dim_16_Elf = Dim_16_Elf + 1 Else If r("Dimensione") = 17 AND Trim(r("Race")) = "Elf" Then Dim_17_Elf = Dim_17_Elf + 1 Else If r("Dimensione") = 18 AND Trim(r("Race")) = "Elf" Then Dim_18_Elf = Dim_18_Elf + 1 Else If r("Dimensione") = 19 AND Trim(r("Race")) = "Elf" Then Dim_19_Elf = Dim_19_Elf + 1 Else If r("Dimensione") = 20 AND Trim(r("Race")) = "Elf" Then Dim_20_Elf = Dim_20_Elf + 1 Else If r("Dimensione") = 1 AND Trim(r("Race")) = "Orc" Then Dim_1_Orc = Dim_1_Orc + 1 Else If r("Dimensione") = 2 AND Trim(r("Race")) = "Orc" Then Dim_2_Orc = Dim_2_Orc + 1 Else If r("Dimensione") = 3 AND Trim(r("Race")) = "Orc" Then Dim_3_Orc = Dim_3_Orc + 1 Else If r("Dimensione") = 4 AND Trim(r("Race")) = "Orc" Then Dim_4_Orc = Dim_4_Orc + 1 Else If r("Dimensione") = 5 AND Trim(r("Race")) = "Orc" Then Dim_5_Orc = Dim_5_Orc + 1 Else If r("Dimensione") = 6 AND Trim(r("Race")) = "Orc" Then Dim_6_Orc = Dim_6_Orc + 1 Else If r("Dimensione") = 7 AND Trim(r("Race")) = "Orc" Then Dim_7_Orc = Dim_7_Orc + 1 Else If r("Dimensione") = 8 AND Trim(r("Race")) = "Orc" Then Dim_8_Orc = Dim_8_Orc + 1 Else If r("Dimensione") = 9 AND Trim(r("Race")) = "Orc" Then Dim_9_Orc = Dim_9_Orc + 1 Else If r("Dimensione") = 10 AND Trim(r("Race")) = "Orc" Then Dim_10_Orc = Dim_10_Orc + 1 Else If r("Dimensione") = 11 AND Trim(r("Race")) = "Orc" Then Dim_11_Orc = Dim_11_Orc + 1 Else If r("Dimensione") = 12 AND Trim(r("Race")) = "Orc" Then Dim_12_Orc = Dim_12_Orc + 1 Else If r("Dimensione") = 13 AND Trim(r("Race")) = "Orc" Then Dim_13_Orc = Dim_13_Orc + 1 Else If r("Dimensione") = 14 AND Trim(r("Race")) = "Orc" Then Dim_14_Orc = Dim_14_Orc + 1 Else If r("Dimensione") = 15 AND Trim(r("Race")) = "Orc" Then Dim_15_Orc = Dim_15_Orc + 1 Else If r("Dimensione") = 16 AND Trim(r("Race")) = "Orc" Then Dim_16_Orc = Dim_16_Orc + 1 Else If r("Dimensione") = 17 AND Trim(r("Race")) = "Orc" Then Dim_17_Orc = Dim_17_Orc + 1 Else If r("Dimensione") = 18 AND Trim(r("Race")) = "Orc" Then Dim_18_Orc = Dim_18_Orc + 1 Else If r("Dimensione") = 19 AND Trim(r("Race")) = "Orc" Then Dim_19_Orc = Dim_19_Orc + 1 Else If r("Dimensione") = 20 AND Trim(r("Race")) = "Orc" Then Dim_20_Orc = Dim_20_Orc + 1 Else If r("Dimensione") = 1 AND Trim(r("Race")) = "Undead" Then Dim_1_Undead = Dim_1_Undead + 1 Else If r("Dimensione") = 2 AND Trim(r("Race")) = "Undead" Then Dim_2_Undead = Dim_2_Undead + 1 Else If r("Dimensione") = 3 AND Trim(r("Race")) = "Undead" Then Dim_3_Undead = Dim_3_Undead + 1 Else If r("Dimensione") = 4 AND Trim(r("Race")) = "Undead" Then Dim_4_Undead = Dim_4_Undead + 1 Else If r("Dimensione") = 5 AND Trim(r("Race")) = "Undead" Then Dim_5_Undead = Dim_5_Undead + 1 Else If r("Dimensione") = 6 AND Trim(r("Race")) = "Undead" Then Dim_6_Undead = Dim_6_Undead + 1 Else If r("Dimensione") = 7 AND Trim(r("Race")) = "Undead" Then Dim_7_Undead = Dim_7_Undead + 1 Else If r("Dimensione") = 8 AND Trim(r("Race")) = "Undead" Then Dim_8_Undead = Dim_8_Undead + 1 Else If r("Dimensione") = 9 AND Trim(r("Race")) = "Undead" Then Dim_9_Undead = Dim_9_Undead + 1 Else If r("Dimensione") = 10 AND Trim(r("Race")) = "Undead" Then Dim_10_Undead = Dim_10_Undead + 1 Else If r("Dimensione") = 11 AND Trim(r("Race")) = "Undead" Then Dim_11_Undead = Dim_11_Undead + 1 Else If r("Dimensione") = 12 AND Trim(r("Race")) = "Undead" Then Dim_12_Undead = Dim_12_Undead + 1 Else If r("Dimensione") = 13 AND Trim(r("Race")) = "Undead" Then Dim_13_Undead = Dim_13_Undead + 1 Else If r("Dimensione") = 14 AND Trim(r("Race")) = "Undead" Then Dim_14_Undead = Dim_14_Undead + 1 Else If r("Dimensione") = 15 AND Trim(r("Race")) = "Undead" Then Dim_15_Undead = Dim_15_Undead + 1 Else If r("Dimensione") = 16 AND Trim(r("Race")) = "Undead" Then Dim_16_Undead = Dim_16_Undead + 1 Else If r("Dimensione") = 17 AND Trim(r("Race")) = "Undead" Then Dim_17_Undead = Dim_17_Undead + 1 Else If r("Dimensione") = 18 AND Trim(r("Race")) = "Undead" Then Dim_18_Undead = Dim_18_Undead + 1 Else If r("Dimensione") = 19 AND Trim(r("Race")) = "Undead" Then Dim_19_Undead = Dim_19_Undead + 1 Else If r("Dimensione") = 20 AND Trim(r("Race")) = "Undead" Then Dim_20_Undead = Dim_20_Undead + 1 End If End While r.Close() sqlConn.Close() Dim Dim_1 = "" Dim Dim_2 = "" Dim Dim_3 = "" Dim Dim_4 = "" Dim Dim_5 = "" Dim Dim_6 = "" Dim Dim_7 = "" Dim Dim_8 = "" Dim Dim_9 = "" Dim Dim_10 = "" Dim Dim_11 = "" Dim Dim_12 = "" Dim Dim_13 = "" Dim Dim_14 = "" Dim Dim_15 = "" Dim Dim_16 = "" Dim Dim_17 = "" Dim Dim_18 = "" Dim Dim_19 = "" Dim Dim_20 = "" If Dim_1_Human >= Dim_1_Elf AND Dim_1_Human >= Dim_1_Orc AND Dim_1_Human >= Dim_1_Undead Then DIm_1 = "Gray" Else If Dim_1_Elf >= Dim_1_Human AND Dim_1_Elf >= Dim_1_Orc AND Dim_1_Elf >= Dim_1_Undead Then DIm_1 = "Green" Else If Dim_1_Orc >= Dim_1_Elf AND Dim_1_Orc >= Dim_1_Human AND Dim_1_Orc >= Dim_1_Undead Then DIm_1 = "Orange" Else If Dim_1_Undead >= Dim_1_Elf AND Dim_1_Undead >= Dim_1_Orc AND Dim_1_Undead >= Dim_1_Human Then DIm_1 = "Blue" End If If Dim_2_Human >= Dim_2_Elf AND Dim_2_Human >= Dim_2_Orc AND Dim_2_Human >= Dim_2_Undead Then DIm_2 = "Gray" Else If Dim_2_Elf >= Dim_2_Human AND Dim_2_Elf >= Dim_2_Orc AND Dim_2_Elf >= Dim_2_Undead Then DIm_2 = "Green" Else If Dim_2_Orc >= Dim_2_Elf AND Dim_2_Orc >= Dim_2_Human AND Dim_2_Orc >= Dim_2_Undead Then DIm_2 = "Orange" Else If Dim_2_Undead >= Dim_2_Elf AND Dim_2_Undead >= Dim_2_Orc AND Dim_2_Undead >= Dim_2_Human Then DIm_2 = "Blue" End If If Dim_3_Human >= Dim_3_Elf AND Dim_3_Human >= Dim_3_Orc AND Dim_3_Human >= Dim_3_Undead Then DIm_3 = "Gray" Else If Dim_3_Elf >= Dim_3_Human AND Dim_3_Elf >= Dim_3_Orc AND Dim_3_Elf >= Dim_3_Undead Then DIm_3 = "Green" Else If Dim_3_Orc >= Dim_3_Elf AND Dim_3_Orc >= Dim_3_Human AND Dim_3_Orc >= Dim_3_Undead Then DIm_3 = "Orange" Else If Dim_3_Undead >= Dim_3_Elf AND Dim_3_Undead >= Dim_3_Orc AND Dim_3_Undead >= Dim_3_Human Then DIm_3 = "Blue" End If If Dim_4_Human >= Dim_4_Elf AND Dim_4_Human >= Dim_4_Orc AND Dim_4_Human >= Dim_4_Undead Then DIm_4 = "Gray" Else If Dim_4_Elf >= Dim_4_Human AND Dim_4_Elf >= Dim_4_Orc AND Dim_4_Elf >= Dim_4_Undead Then DIm_4 = "Green" Else If Dim_4_Orc >= Dim_4_Elf AND Dim_4_Orc >= Dim_4_Human AND Dim_4_Orc >= Dim_4_Undead Then DIm_4 = "Orange" Else If Dim_4_Undead >= Dim_4_Elf AND Dim_4_Undead >= Dim_4_Orc AND Dim_4_Undead >= Dim_4_Human Then DIm_4 = "Blue" End If If Dim_5_Human >= Dim_5_Elf AND Dim_5_Human >= Dim_5_Orc AND Dim_5_Human >= Dim_5_Undead Then DIm_5 = "Gray" Else If Dim_5_Elf >= Dim_5_Human AND Dim_5_Elf >= Dim_5_Orc AND Dim_5_Elf >= Dim_5_Undead Then DIm_5 = "Green" Else If Dim_5_Orc >= Dim_5_Elf AND Dim_5_Orc >= Dim_5_Human AND Dim_5_Orc >= Dim_5_Undead Then DIm_5 = "Orange" Else If Dim_5_Undead >= Dim_5_Elf AND Dim_5_Undead >= Dim_5_Orc AND Dim_5_Undead >= Dim_5_Human Then DIm_5 = "Blue" End If If Dim_6_Human >= Dim_6_Elf AND Dim_6_Human >= Dim_6_Orc AND Dim_6_Human >= Dim_6_Undead Then DIm_6 = "Gray" Else If Dim_6_Elf >= Dim_6_Human AND Dim_6_Elf >= Dim_6_Orc AND Dim_6_Elf >= Dim_6_Undead Then DIm_6 = "Green" Else If Dim_6_Orc >= Dim_6_Elf AND Dim_6_Orc >= Dim_6_Human AND Dim_6_Orc >= Dim_6_Undead Then DIm_6 = "Orange" Else If Dim_6_Undead >= Dim_6_Elf AND Dim_6_Undead >= Dim_6_Orc AND Dim_6_Undead >= Dim_6_Human Then DIm_6 = "Blue" End If If Dim_7_Human >= Dim_7_Elf AND Dim_7_Human >= Dim_7_Orc AND Dim_7_Human >= Dim_7_Undead Then DIm_7 = "Gray" Else If Dim_7_Elf >= Dim_7_Human AND Dim_7_Elf >= Dim_7_Orc AND Dim_7_Elf >= Dim_7_Undead Then DIm_7 = "Green" Else If Dim_7_Orc >= Dim_7_Elf AND Dim_7_Orc >= Dim_7_Human AND Dim_7_Orc >= Dim_7_Undead Then DIm_7 = "Orange" Else If Dim_7_Undead >= Dim_7_Elf AND Dim_7_Undead >= Dim_7_Orc AND Dim_7_Undead >= Dim_7_Human Then DIm_7 = "Blue" End If If Dim_8_Human >= Dim_8_Elf AND Dim_8_Human >= Dim_8_Orc AND Dim_8_Human >= Dim_8_Undead Then DIm_8 = "Gray" Else If Dim_8_Elf >= Dim_8_Human AND Dim_8_Elf >= Dim_8_Orc AND Dim_8_Elf >= Dim_8_Undead Then DIm_8 = "Green" Else If Dim_8_Orc >= Dim_8_Elf AND Dim_8_Orc >= Dim_8_Human AND Dim_8_Orc >= Dim_8_Undead Then DIm_8 = "Orange" Else If Dim_8_Undead >= Dim_8_Elf AND Dim_8_Undead >= Dim_8_Orc AND Dim_8_Undead >= Dim_8_Human Then DIm_8 = "Blue" End If If Dim_9_Human >= Dim_9_Elf AND Dim_9_Human >= Dim_9_Orc AND Dim_9_Human >= Dim_9_Undead Then DIm_9 = "Gray" Else If Dim_9_Elf >= Dim_9_Human AND Dim_9_Elf >= Dim_9_Orc AND Dim_9_Elf >= Dim_9_Undead Then DIm_9 = "Green" Else If Dim_9_Orc >= Dim_9_Elf AND Dim_9_Orc >= Dim_9_Human AND Dim_9_Orc >= Dim_9_Undead Then DIm_9 = "Orange" Else If Dim_9_Undead >= Dim_9_Elf AND Dim_9_Undead >= Dim_9_Orc AND Dim_9_Undead >= Dim_9_Human Then DIm_9 = "Blue" End If If Dim_10_Human >= Dim_10_Elf AND Dim_10_Human >= Dim_10_Orc AND Dim_10_Human >= Dim_10_Undead Then DIm_10 = "Gray" Else If Dim_10_Elf >= Dim_10_Human AND Dim_10_Elf >= Dim_10_Orc AND Dim_10_Elf >= Dim_10_Undead Then DIm_10 = "Green" Else If Dim_10_Orc >= Dim_10_Elf AND Dim_10_Orc >= Dim_10_Human AND Dim_10_Orc >= Dim_10_Undead Then DIm_10 = "Orange" Else If Dim_10_Undead >= Dim_10_Elf AND Dim_10_Undead >= Dim_10_Orc AND Dim_10_Undead >= Dim_10_Human Then DIm_10 = "Blue" End If If Dim_11_Human >= Dim_11_Elf AND Dim_11_Human >= Dim_11_Orc AND Dim_11_Human >= Dim_11_Undead Then DIm_11 = "Gray" Else If Dim_11_Elf >= Dim_11_Human AND Dim_11_Elf >= Dim_11_Orc AND Dim_11_Elf >= Dim_11_Undead Then DIm_11 = "Green" Else If Dim_11_Orc >= Dim_11_Elf AND Dim_11_Orc >= Dim_11_Human AND Dim_11_Orc >= Dim_11_Undead Then DIm_11 = "Orange" Else If Dim_11_Undead >= Dim_11_Elf AND Dim_11_Undead >= Dim_11_Orc AND Dim_11_Undead >= Dim_11_Human Then DIm_11 = "Blue" End If If Dim_12_Human >= Dim_12_Elf AND Dim_12_Human >= Dim_12_Orc AND Dim_12_Human >= Dim_12_Undead Then DIm_12 = "Gray" Else If Dim_12_Elf >= Dim_12_Human AND Dim_12_Elf >= Dim_12_Orc AND Dim_12_Elf >= Dim_12_Undead Then DIm_12 = "Green" Else If Dim_12_Orc >= Dim_12_Elf AND Dim_12_Orc >= Dim_12_Human AND Dim_12_Orc >= Dim_12_Undead Then DIm_12 = "Orange" Else If Dim_12_Undead >= Dim_12_Elf AND Dim_12_Undead >= Dim_12_Orc AND Dim_12_Undead >= Dim_12_Human Then DIm_12 = "Blue" End If If Dim_13_Human >= Dim_13_Elf AND Dim_13_Human >= Dim_13_Orc AND Dim_13_Human >= Dim_13_Undead Then DIm_13 = "Gray" Else If Dim_13_Elf >= Dim_13_Human AND Dim_13_Elf >= Dim_13_Orc AND Dim_13_Elf >= Dim_13_Undead Then DIm_13 = "Green" Else If Dim_13_Orc >= Dim_13_Elf AND Dim_13_Orc >= Dim_13_Human AND Dim_13_Orc >= Dim_13_Undead Then DIm_13 = "Orange" Else If Dim_13_Undead >= Dim_13_Elf AND Dim_13_Undead >= Dim_13_Orc AND Dim_13_Undead >= Dim_13_Human Then DIm_13 = "Blue" End If If Dim_14_Human >= Dim_14_Elf AND Dim_14_Human >= Dim_14_Orc AND Dim_14_Human >= Dim_14_Undead Then DIm_14 = "Gray" Else If Dim_14_Elf >= Dim_14_Human AND Dim_14_Elf >= Dim_14_Orc AND Dim_14_Elf >= Dim_14_Undead Then DIm_14 = "Green" Else If Dim_14_Orc >= Dim_14_Elf AND Dim_14_Orc >= Dim_14_Human AND Dim_14_Orc >= Dim_14_Undead Then DIm_14 = "Orange" Else If Dim_14_Undead >= Dim_14_Elf AND Dim_14_Undead >= Dim_14_Orc AND Dim_14_Undead >= Dim_14_Human Then DIm_14 = "Blue" End If If Dim_15_Human >= Dim_15_Elf AND Dim_15_Human >= Dim_15_Orc AND Dim_15_Human >= Dim_15_Undead Then DIm_15 = "Gray" Else If Dim_15_Elf >= Dim_15_Human AND Dim_15_Elf >= Dim_15_Orc AND Dim_15_Elf >= Dim_15_Undead Then DIm_15 = "Green" Else If Dim_15_Orc >= Dim_15_Elf AND Dim_15_Orc >= Dim_15_Human AND Dim_15_Orc >= Dim_15_Undead Then DIm_15 = "Orange" Else If Dim_15_Undead >= Dim_15_Elf AND Dim_15_Undead >= Dim_15_Orc AND Dim_15_Undead >= Dim_15_Human Then DIm_15 = "Blue" End If If Dim_16_Human >= Dim_16_Elf AND Dim_16_Human >= Dim_16_Orc AND Dim_16_Human >= Dim_16_Undead Then DIm_16 = "Gray" Else If Dim_16_Elf >= Dim_16_Human AND Dim_16_Elf >= Dim_16_Orc AND Dim_16_Elf >= Dim_16_Undead Then DIm_16 = "Green" Else If Dim_16_Orc >= Dim_16_Elf AND Dim_16_Orc >= Dim_16_Human AND Dim_16_Orc >= Dim_16_Undead Then DIm_16 = "Orange" Else If Dim_16_Undead >= Dim_16_Elf AND Dim_16_Undead >= Dim_16_Orc AND Dim_16_Undead >= Dim_16_Human Then DIm_16 = "Blue" End If If Dim_17_Human >= Dim_17_Elf AND Dim_17_Human >= Dim_17_Orc AND Dim_17_Human >= Dim_17_Undead Then DIm_17 = "Gray" Else If Dim_17_Elf >= Dim_17_Human AND Dim_17_Elf >= Dim_17_Orc AND Dim_17_Elf >= Dim_17_Undead Then DIm_17 = "Green" Else If Dim_17_Orc >= Dim_17_Elf AND Dim_17_Orc >= Dim_17_Human AND Dim_17_Orc >= Dim_17_Undead Then DIm_17 = "Orange" Else If Dim_17_Undead >= Dim_17_Elf AND Dim_17_Undead >= Dim_17_Orc AND Dim_17_Undead >= Dim_17_Human Then DIm_17 = "Blue" End If If Dim_18_Human >= Dim_18_Elf AND Dim_18_Human >= Dim_18_Orc AND Dim_18_Human >= Dim_18_Undead Then DIm_18 = "Gray" Else If Dim_18_Elf >= Dim_18_Human AND Dim_18_Elf >= Dim_18_Orc AND Dim_18_Elf >= Dim_18_Undead Then DIm_18 = "Green" Else If Dim_18_Orc >= Dim_18_Elf AND Dim_18_Orc >= Dim_18_Human AND Dim_18_Orc >= Dim_18_Undead Then DIm_18 = "Orange" Else If Dim_18_Undead >= Dim_18_Elf AND Dim_18_Undead >= Dim_18_Orc AND Dim_18_Undead >= Dim_18_Human Then DIm_18 = "Blue" End If If Dim_19_Human >= Dim_19_Elf AND Dim_19_Human >= Dim_19_Orc AND Dim_19_Human >= Dim_19_Undead Then DIm_19 = "Gray" Else If Dim_19_Elf >= Dim_19_Human AND Dim_19_Elf >= Dim_19_Orc AND Dim_19_Elf >= Dim_19_Undead Then DIm_19 = "Green" Else If Dim_19_Orc >= Dim_19_Elf AND Dim_19_Orc >= Dim_19_Human AND Dim_19_Orc >= Dim_19_Undead Then DIm_19 = "Orange" Else If Dim_19_Undead >= Dim_19_Elf AND Dim_19_Undead >= Dim_19_Orc AND Dim_19_Undead >= Dim_19_Human Then DIm_19 = "Blue" End If If Dim_20_Human >= Dim_20_Elf AND Dim_20_Human >= Dim_20_Orc AND Dim_20_Human >= Dim_20_Undead Then DIm_20 = "Gray" Else If Dim_20_Elf >= Dim_20_Human AND Dim_20_Elf >= Dim_20_Orc AND Dim_20_Elf >= Dim_20_Undead Then DIm_20 = "Green" Else If Dim_20_Orc >= Dim_20_Elf AND Dim_20_Orc >= Dim_20_Human AND Dim_20_Orc >= Dim_20_Undead Then DIm_20 = "Orange" Else If Dim_20_Undead >= Dim_20_Elf AND Dim_20_Undead >= Dim_20_Orc AND Dim_20_Undead >= Dim_20_Human Then DIm_20 = "Blue" End If objBMP = New Bitmap(800, 580, System.Drawing.Imaging.PixelFormat.Format32bppArgb) objGraphics = System.Drawing.Graphics.FromImage(objBMP) objGraphics.Clear(Color.white) Dim originalBitmap objGraphics.SmoothingMode = SmoothingMode.AntiAlias originalBitmap=new Bitmap(Server.MapPath("mappa_shajnnara.jpg")) objGraphics.DrawImage(originalBitmap, 1, 1) objGraphics.TextRenderingHint = TextRenderingHint.AntiAlias objFont = New Font("Comic Sans MS", 10, FontStyle.Bold) objGraphics.DrawString("17 Cebor", objFont, new SolidBrush(ColorTranslator.FromHtml(Convert.ToString(Dim_17))), 75, 15) objFont = New Font("Comic Sans MS", 10, FontStyle.Bold) objGraphics.DrawString("16 Sugoth", objFont, new SolidBrush(ColorTranslator.FromHtml(Convert.ToString(Dim_16))), 95, 115) objFont = New Font("Comic Sans MS", 10, FontStyle.Bold) objGraphics.DrawString("11 Cregor", objFont, new SolidBrush(ColorTranslator.FromHtml(Convert.ToString(Dim_11))), 105, 160) objFont = New Font("Comic Sans MS", 10, FontStyle.Bold) objGraphics.DrawString("12 Lrededash", objFont, new SolidBrush(ColorTranslator.FromHtml(Convert.ToString(Dim_12))), 102, 254) objFont = New Font("Comic Sans MS", 10, FontStyle.Bold) objGraphics.DrawString("13 Lonak", objFont, new SolidBrush(ColorTranslator.FromHtml(Convert.ToString(Dim_13))), 118, 315) objFont = New Font("Comic Sans MS", 10, FontStyle.Bold) objGraphics.DrawString("15 Krodish", objFont, new SolidBrush(ColorTranslator.FromHtml(Convert.ToString(Dim_15))), 195, 422) objFont = New Font("Comic Sans MS", 10, FontStyle.Bold) objGraphics.DrawString("14 Crogdish", objFont, new SolidBrush(ColorTranslator.FromHtml(Convert.ToString(Dim_14))), 95, 458) objFont = New Font("Comic Sans MS", 10, FontStyle.Bold) objGraphics.DrawString("19 Crudar", objFont, new SolidBrush(ColorTranslator.FromHtml(Convert.ToString(Dim_19))), 312, 67) objFont = New Font("Comic Sans MS", 10, FontStyle.Bold) objGraphics.DrawString("3 Wilath", objFont, new SolidBrush(ColorTranslator.FromHtml(Convert.ToString(Dim_3))), 315, 138) objFont = New Font("Comic Sans MS", 10, FontStyle.Bold) objGraphics.DrawString("9 Senia", objFont, new SolidBrush(ColorTranslator.FromHtml(Convert.ToString(Dim_9))), 460, 135) objFont = New Font("Comic Sans MS", 10, FontStyle.Bold) objGraphics.DrawString("4 Lothirann", objFont, new SolidBrush(ColorTranslator.FromHtml(Convert.ToString(Dim_4))), 420, 195) objFont = New Font("Comic Sans MS", 10, FontStyle.Bold) objGraphics.DrawString("8 Gil-Gaviel", objFont, new SolidBrush(ColorTranslator.FromHtml(Convert.ToString(Dim_8))), 480, 275) objFont = New Font("Comic Sans MS", 10, FontStyle.Bold) objGraphics.DrawString("7 Gil-Garith", objFont, new SolidBrush(ColorTranslator.FromHtml(Convert.ToString(Dim_7))), 375, 405) objFont = New Font("Comic Sans MS", 10, FontStyle.Bold) objGraphics.DrawString("20 Vrugor", objFont, new SolidBrush(ColorTranslator.FromHtml(Convert.ToString(Dim_20))), 570, 15) objFont = New Font("Comic Sans MS", 10, FontStyle.Bold) objGraphics.DrawString("18 Trath-dar", objFont, new SolidBrush(ColorTranslator.FromHtml(Convert.ToString(Dim_18))), 620, 100) objFont = New Font("Comic Sans MS", 10, FontStyle.Bold) objGraphics.DrawString("1 Telaraid", objFont, new SolidBrush(ColorTranslator.FromHtml(Convert.ToString(Dim_1))), 635, 190) objFont = New Font("Comic Sans MS", 10, FontStyle.Bold) objGraphics.DrawString("5 Ethautlan", objFont, new SolidBrush(ColorTranslator.FromHtml(Convert.ToString(Dim_5))), 623, 320) objFont = New Font("Comic Sans MS", 10, FontStyle.Bold) objGraphics.DrawString("2 Aligolin", objFont, new SolidBrush(ColorTranslator.FromHtml(Convert.ToString(Dim_2))), 625, 380) objFont = New Font("Comic Sans MS", 10, FontStyle.Bold) objGraphics.DrawString("6 Radriethiel", objFont, new SolidBrush(ColorTranslator.FromHtml(Convert.ToString(Dim_6))), 520, 425) objFont = New Font("Comic Sans MS", 10, FontStyle.Bold) objGraphics.DrawString("10 Cadriendra", objFont, new SolidBrush(ColorTranslator.FromHtml(Convert.ToString(Dim_10))), 570, 510) Response.ContentType = "image/jpeg" objBMP.Save(Response.OutputStream, ImageFormat.jpeg) objFont.Dispose() objBMP.Dispose() objGraphics.Dispose() %>