<% if Request("t") = "a" then type1 = 2 else type1 = 1 end if set rs = Server.CreateObject("ADODB.RECORDSET") rs.open "select * from livefight where fightid = " & session("fightid"),conn if trim(request("attacker")) = trim(rs("player1")) then conn.execute "update livefight set p1attack = " & Request("attackweapon") & " where fightid = " & session("fightid") else conn.execute "update livefight set p2attack = " & Request("attackweapon") & " where fightid = " & session("fightid") end if conn.execute "update ad set aw = " & request("weapon") & ", counter1 = 0, al = " & request("level") & ",ab = " & request("bodyy") & ",att = " & type1 & ",aid = " & request("atta") & ", av = 1 , ff = 0 where fightid = " & session("fightid") Response.Redirect("attackerwaiting.asp?waittime=0") %>