| Choose
an opponent to fight with |
|
<%if request("a")=1 then%>
You are allowed only one pet at one time.
<%end if%>
<%if request("w")=1 then%>
You are already been waiting for an opponent.
<%end if%>
<%if request("e")=1 then%>
You don't have enough strength to fight.
<%end if%>
<%if request("d")=1 then
conn.execute "DELETE opponenttable.*, * FROM UserPetTable INNER JOIN opponenttable ON UserPetTable.userPetId = opponenttable.userpetid WHERE (((UserPetTable.userid)="&session("userid")&"));"
end if
conn.execute "DELETE opponenttable.*, UserPetTable.userid FROM opponenttable INNER JOIN UserPetTable ON opponenttable.userpetid = UserPetTable.userPetId WHERE (((UserPetTable.userid)="&session("userid")&"));"
conn.execute "delete * from livefight where player1="&session("petselected")
conn.execute "delete * from livefight where player2="&session("petselected")
conn.execute "DELETE livefight.* FROM livefight INNER JOIN UserPetTable ON livefight.player1 = UserPetTable.userPetId WHERE (((livefight.player1)="&session("petselected")&") AND ((UserPetTable.userid)="&session("userid")&"));"
conn.execute "DELETE livefight.* FROM livefight INNER JOIN UserPetTable ON livefight.player2 = UserPetTable.userPetId WHERE (((livefight.player2)="&session("petselected")&") AND ((UserPetTable.userid)="&session("userid")&"));"
conn.execute "delete * from ad where aid="&session("petselected")
conn.execute "delete * from ad where did="&session("petselected")
conn.execute "Delete ad.* FROM ad INNER JOIN UserPetTable ON ad.aid = UserPetTable.userPetId WHERE (((UserPetTable.userPetId)="&session("petselected")&") AND ((UserPetTable.userid)="&session("userid")&"));"
conn.execute "Delete ad.* FROM ad INNER JOIN UserPetTable ON ad.did = UserPetTable.userPetId WHERE (((UserPetTable.userPetId)="&session("petselected")&") AND ((UserPetTable.userid)="&session("userid")&"));"
session("first")=""
%>
|
|
| |
| |
|
<%
Function RandomNumber(intHighestNumber)
Randomize
RandomNumber = Int(Rnd * intHighestNumber) + 1
End Function
Application.Lock()
Application("value") = (RandomNumber(2))
Application.UnLock()
%>
|
|
| |
INSTRUCTIONS
First select your pet from the pulldown menu in the middle. Once
selected, the current weapons that your pet has are located in the box to
the right. To browse through the weapons of a certain weapon level, simply
click on the text or the graphic for that weapon level. In order to buy
weapons from different weapon levels, your pet must first own every weapon
in the previous weapon levels. So in order to buy level 2 weapons, your pet
would need to own all level 1 weapons. Each pet can only own 1 of every
weapon.
Check back often as new weapons are added
regularly!!!
|
|
|
|
|
|
<%set rspett = Server.CreateObject("ADODB.RECORDSET")
rspett.open "SELECT UserPetTable.userPetname,UserPetTable.energylevel, PetTable.smallimg FROM PetTable INNER JOIN UserPetTable ON PetTable.petId = UserPetTable.petId WHERE (((UserPetTable.userPetId)=" & session("petselected") & "));",conn
%>
" width="34" height="34"> |
| Pet Name |
<%=rspett("userpetname")%> |
| Energy Level |
<%=rspett("energylevel")%> |
| No. of Weapons |
<%
rspett.close
rspett.open "select count(weaponpetid) as totalc,sum(cost) as total from weaponpettable where userpetid="& session("petselected") ,conn
if not rspett.eof then%> <%=rspett("totalc")%> <%end if%> |
| Weapons Worth |
$
<%if not rspett.eof then%>
<%=rspett("total")%>
<%end if%> |
|
|
|