syntax cleanup
Before Width: | Height: | Size: 392 B After Width: | Height: | Size: 392 B |
Before Width: | Height: | Size: 382 B After Width: | Height: | Size: 382 B |
Before Width: | Height: | Size: 414 B After Width: | Height: | Size: 414 B |
Before Width: | Height: | Size: 648 B After Width: | Height: | Size: 648 B |
Before Width: | Height: | Size: 369 B After Width: | Height: | Size: 369 B |
Before Width: | Height: | Size: 411 B After Width: | Height: | Size: 411 B |
Before Width: | Height: | Size: 422 B After Width: | Height: | Size: 422 B |
Before Width: | Height: | Size: 426 B After Width: | Height: | Size: 426 B |
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 1001 B After Width: | Height: | Size: 1001 B |
Before Width: | Height: | Size: 450 B After Width: | Height: | Size: 450 B |
Before Width: | Height: | Size: 43 B After Width: | Height: | Size: 43 B |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 427 B After Width: | Height: | Size: 427 B |
Before Width: | Height: | Size: 441 B After Width: | Height: | Size: 441 B |
Before Width: | Height: | Size: 367 B After Width: | Height: | Size: 367 B |
Before Width: | Height: | Size: 397 B After Width: | Height: | Size: 397 B |
Before Width: | Height: | Size: 397 B After Width: | Height: | Size: 397 B |
Before Width: | Height: | Size: 147 B After Width: | Height: | Size: 147 B |
Before Width: | Height: | Size: 402 B After Width: | Height: | Size: 402 B |
Before Width: | Height: | Size: 127 B After Width: | Height: | Size: 127 B |
Before Width: | Height: | Size: 515 B After Width: | Height: | Size: 515 B |
Before Width: | Height: | Size: 123 B After Width: | Height: | Size: 123 B |
Before Width: | Height: | Size: 300 B After Width: | Height: | Size: 300 B |
Before Width: | Height: | Size: 125 B After Width: | Height: | Size: 125 B |
Before Width: | Height: | Size: 57 B After Width: | Height: | Size: 57 B |
Before Width: | Height: | Size: 56 B After Width: | Height: | Size: 56 B |
Before Width: | Height: | Size: 65 B After Width: | Height: | Size: 65 B |
Before Width: | Height: | Size: 58 B After Width: | Height: | Size: 58 B |
Before Width: | Height: | Size: 56 B After Width: | Height: | Size: 56 B |
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 94 KiB |
|
@ -1,6 +0,0 @@
|
||||||
-----STEALTHTEMPLATES.COM-----
|
|
||||||
|
|
||||||
Thank you for downloading our Template. To get more updates on this template please visit www.stealthtemplates.com
|
|
||||||
We also offer custom made templates so be sure to visit our site!
|
|
||||||
|
|
||||||
-----STEALTHTEMPLATES.COM-----
|
|
Before Width: | Height: | Size: 392 B |
Before Width: | Height: | Size: 382 B |
Before Width: | Height: | Size: 414 B |
Before Width: | Height: | Size: 648 B |
Before Width: | Height: | Size: 369 B |
Before Width: | Height: | Size: 411 B |
Before Width: | Height: | Size: 422 B |
Before Width: | Height: | Size: 426 B |
Before Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 1001 B |
Before Width: | Height: | Size: 450 B |
Before Width: | Height: | Size: 43 B |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 427 B |
Before Width: | Height: | Size: 441 B |
Before Width: | Height: | Size: 367 B |
Before Width: | Height: | Size: 397 B |
Before Width: | Height: | Size: 397 B |
Before Width: | Height: | Size: 147 B |
Before Width: | Height: | Size: 402 B |
Before Width: | Height: | Size: 127 B |
Before Width: | Height: | Size: 515 B |
Before Width: | Height: | Size: 123 B |
Before Width: | Height: | Size: 300 B |
Before Width: | Height: | Size: 125 B |
Before Width: | Height: | Size: 57 B |
Before Width: | Height: | Size: 56 B |
Before Width: | Height: | Size: 65 B |
Before Width: | Height: | Size: 58 B |
Before Width: | Height: | Size: 56 B |
Before Width: | Height: | Size: 94 KiB |
Before Width: | Height: | Size: 635 B |
Before Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 538 B |
Before Width: | Height: | Size: 544 B |
Before Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 691 B |
Before Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 27 KiB |
|
@ -1,308 +0,0 @@
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
||||||
<title>--PcGamester 2 - The best place for cheats, downloads and more!--</title>
|
|
||||||
<meta name="Descripion" content="Game downloads, cheats and more!">
|
|
||||||
<meta name="Keywords" content="games, flash, online, free, multiplayer, game, gaming, online games, free games, flash games, fun, fun games, web games, action games, adventure games, multiplayer games, board games, shooting games, sim games, racing games, racing, shooting, adventure, board, fighting, fighting games, multiplayer, action, gamersnet.co.nr, gamersnet, gamers, net, co, nr">
|
|
||||||
<meta name="Copyright" content="StealthTemplates">
|
|
||||||
<meta name="Language" content="English">
|
|
||||||
<meta name="Author" content="Michael Davis">
|
|
||||||
<body bgcolor="#2f2f2f" marginleft="0" marginright="0" leftmargin="0" rightmargin="0" topmargin="0" marginwidth="0" marginheight="0">
|
|
||||||
<link rel="stylesheet" href="style.css" type="text/css">
|
|
||||||
<br>
|
|
||||||
<table align="center" height="15" width="700" cellspacing="0" cellpadding="0" class="table1">
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#666666" height="15"><img src="images/img_2.jpg" height="15" width="700"></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<table align="center" height="120" width="700" cellspacing="0" cellpadding="0" class="table2">
|
|
||||||
<tr>
|
|
||||||
<td background="images/img_main.jpg">
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<table align="center" height="15" width="700" cellspacing="0" cellpadding="0" class="table2">
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#666666" height="15"><img src="images/img_2.jpg" height="15" width="700"></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<table align="center" height="640" width="700" cellspacing="0" cellpadding="0" class="table2">
|
|
||||||
<tr>
|
|
||||||
<td background="images/img_4.png" valign="top" width="170">
|
|
||||||
|
|
||||||
<table align="center" width="100%" cellspacing="0" cellpadding="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td height="20" background="images/img_5.jpg" class="style1" align="center">- Menu -
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#000000" height="1">
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td height="20" align="center"><a href="#" class="menulink">Home</a>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#000000" height="1">
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td height="20" align="center"><a href="#" class="menulink">About</a>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#000000" height="1">
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td height="20" align="center"><a href="#" class="menulink">New Games</a>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#000000" height="1">
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td height="20" align="center"><a href="#" class="menulink">Cheats</a>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#000000" height="1">
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td height="20" align="center"><a href="#" class="menulink">Reviews</a>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#000000" height="1">
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td height="20" align="center"><a href="#" class="menulink">Related</a>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#000000" height="1">
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td height="20" align="center"><a href="#" class="menulink">Other</a>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#000000" height="1">
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td height="20" align="center"><a href="#" class="menulink">Contact</a>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#000000" height="1">
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td height="20" background="images/img_5.jpg" class="style1" align="center">- Games -
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#000000" height="1">
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td height="20" align="center"><a href="#" class="menulink">Top Rated Games</a>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#000000" height="1">
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td height="20" align="center"><a href="#" class="menulink">Top 50 Games</a>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#000000" height="1">
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td height="20" align="center"><a href="#" class="menulink">Most Popular Games</a>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#000000" height="1">
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td height="20" align="center"><a href="#" class="menulink">Game Review</a>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#000000" height="1">
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td height="20" align="center"><a href="#" class="menulink">Action Games</a>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#000000" height="1">
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td height="20" align="center"><a href="#" class="menulink">Stratergy Games</a>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#000000" height="1">
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td height="20" align="center"><a href="#" class="menulink">Simulation Games</a>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#000000" height="1">
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td height="20" align="center"><a href="#" class="menulink">Racing Games</a>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#000000" height="1">
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td height="20" align="center"><a href="#" class="menulink">Shooting Games</a>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#000000" height="1">
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td height="20" align="center"><a href="#" class="menulink">Adventure Games</a>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#000000" height="1">
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td height="20" align="center"><a href="#" class="menulink">Fighting Games</a>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#000000" height="1">
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td height="20" align="center"><a href="#" class="menulink">Board Games</a>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#000000" height="1">
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td height="20" background="images/img_5.jpg" class="style1" align="center">- Our Affiliates -
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#000000" height="1">
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td height="20" align="center"><a href="http://www.templatedesign.co.nr" class="menulink">Template Design</a>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#000000" height="1">
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td height="20" align="center"><a href="http://www.thegamesphere.com" class="menulink">TheGameSphere</a>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#000000" height="1">
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td height="20" background="images/img_5.jpg" class="style1" align="center">- Latest News -
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#000000" height="1">
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td height="20" class="style3">Our website has just launched on the web! We will be updating it daily as soon as we finish with our new design.
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<td bgcolor="#000000" width="1">
|
|
||||||
<td bgcolor="#666666" valign="top">
|
|
||||||
|
|
||||||
<table align="center" height="189" width="100%" cellspacing="0" cellpadding="10" border="0" class="table3">
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#666666">
|
|
||||||
|
|
||||||
<table align="center" height="150" width="455" cellspacing="0" cellpadding="10" border="0" class="table1">
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#777777" class="style2">
|
|
||||||
<img src="images/img_6.jpg" align="left">
|
|
||||||
<img src="images/img_7.jpg" align="right">
|
|
||||||
<img src="images/img_8.jpg" align="center">
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<br>
|
|
||||||
<table align="center" height="410" width="480" cellspacing="0" cellpadding="10" border="0" class="table1">
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#666666" valign="top">
|
|
||||||
|
|
||||||
<table align="center" height="385" width="255" cellspacing="0" cellpadding="10" border="0" class="table1">
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#777777" height="270" valign="top"><div class="style1">Featured Game - Pacific Fighters</div>
|
|
||||||
<img src="images/img_9.jpg" align="center">
|
|
||||||
<div class="style4">Pacific Fighters features an action packed flight simulation based in world war II aircrafts. You can choose of
|
|
||||||
over 40 flyable aircraft models and many missions. <a href="#" class="menulink">Read More.</a>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#777777" valign="top">
|
|
||||||
<div class="style1">News And Announcments</div>
|
|
||||||
<div class="style4">PcGamester 2 just launched on the web! Designed by http://www.stealthtemplates.com We hope you like our
|
|
||||||
new template and be sure to visit StealthTemplates</div>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<td bgcolor="#666666" valign="top">
|
|
||||||
|
|
||||||
<table align="center" height="385" width="185" cellspacing="0" cellpadding="10" border="0" class="table1">
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="#777777" valign="top"><div class="style1">Top 10 Games:</div>
|
|
||||||
|
|
||||||
<div class="style4">
|
|
||||||
1. World of Warcraft
|
|
||||||
<br>
|
|
||||||
2. The chronicles of Riddick
|
|
||||||
<br>
|
|
||||||
3. Guild Wars
|
|
||||||
<br>
|
|
||||||
4. Sid Meier's Pirates
|
|
||||||
<br>
|
|
||||||
5. Half-Life 2
|
|
||||||
<br>
|
|
||||||
6. Grand Theft Auto - San Andreas
|
|
||||||
<br>
|
|
||||||
7. Falcon 4.0: Allied Force
|
|
||||||
<br>
|
|
||||||
8. Silent Hunter III
|
|
||||||
<br>
|
|
||||||
9. GTR FIA Racing
|
|
||||||
<br>
|
|
||||||
10. Star Wars Republic Commando
|
|
||||||
</div>
|
|
||||||
<div class="style1">Featured Playable Demo
|
|
||||||
<br>
|
|
||||||
</div>
|
|
||||||
<div class="style4">
|
|
||||||
Piolet Down - Behind Enemy
|
|
||||||
</div>
|
|
||||||
<img src="images/img_10.jpg">
|
|
||||||
<div class="style4">
|
|
||||||
In this action adventure game pilot down features 3 playable levels and many other extras to play. Click the games section to download it
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</tr>
|
|
||||||
</table
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<table align="center" height="15" width="700" cellspacing="0" cellpadding="0" class="table2">
|
|
||||||
<tr>
|
|
||||||
<td background="images/img_2.jpg" align="center"><div class="style2">
|
|
||||||
Copyright 2005 Your Company Name. All rights reserved. <a href="#" class="style2">Contact</a> Created by Michael Davis
|
|
||||||
<a href="http://www.stealthtemplates.com" class="style2"> http://www.stealthtemplates.com</a>
|
|
||||||
</div>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
|
|
||||||
<table align="center" height="15" width="700" cellspacing="0" cellpadding="0">
|
|
||||||
<tr>
|
|
||||||
<td align="right" class="style2">Created by Stealthtemplates.com
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
|
|
||||||
<body>
|
|
||||||
</head>
|
|
||||||
</html>
|
|
|
@ -1,57 +0,0 @@
|
||||||
.style1 {
|
|
||||||
color: #ffffff;
|
|
||||||
font-size: 11px;
|
|
||||||
font-family: arial, helvetica, sans-serif;
|
|
||||||
}
|
|
||||||
.style2 {
|
|
||||||
color: #000000;
|
|
||||||
font-size: 11px;
|
|
||||||
font-family: arial, helvetica, sans-serif;
|
|
||||||
}
|
|
||||||
.style3 {
|
|
||||||
color: #000000;
|
|
||||||
font-size: 11px;
|
|
||||||
font-family: arial, helvetica, sans-serif;
|
|
||||||
padding-left: 20px;
|
|
||||||
padding-right: 20px;
|
|
||||||
padding-top: 10px;
|
|
||||||
}
|
|
||||||
.style4 {
|
|
||||||
color: #9DA4BF;
|
|
||||||
font-size: 11px;
|
|
||||||
font-family: arial, helvetica, sans-serif;
|
|
||||||
}
|
|
||||||
.menuLink {
|
|
||||||
color: #9DA4BF;
|
|
||||||
font-size: 11px;
|
|
||||||
font-family: arial, helvetica, sans-serif;
|
|
||||||
text-decoration:none;
|
|
||||||
}
|
|
||||||
a.menuLink:hover {
|
|
||||||
color: #aaaaaa;
|
|
||||||
font-size: 11px;
|
|
||||||
font-family: arial, helvetica, sans-serif;
|
|
||||||
text-decoration:underline;
|
|
||||||
}
|
|
||||||
.table1
|
|
||||||
{
|
|
||||||
border-right: 1px solid #000000;
|
|
||||||
border-left: 1px solid #000000;
|
|
||||||
border-top: 1px solid #000000;
|
|
||||||
border-bottom: 1px solid #000000;
|
|
||||||
|
|
||||||
}
|
|
||||||
.table2
|
|
||||||
{
|
|
||||||
border-right: 1px solid #000000;
|
|
||||||
border-left: 1px solid #000000;
|
|
||||||
border-top: 0px solid #000000;
|
|
||||||
border-bottom: 1px solid #000000;
|
|
||||||
}
|
|
||||||
.table3
|
|
||||||
{
|
|
||||||
border-right: 0px solid #000000;
|
|
||||||
border-left: 0px solid #000000;
|
|
||||||
border-top: 0px solid #000000;
|
|
||||||
border-bottom: 1px solid #000000;
|
|
||||||
}
|
|
211
actions.php
|
@ -14,19 +14,15 @@ $credsYo=explode("@seperator@", $credsYo);
|
||||||
$u=strtolower($credsYo[0]);
|
$u=strtolower($credsYo[0]);
|
||||||
$p=strtolower($credsYo[1]);
|
$p=strtolower($credsYo[1]);
|
||||||
|
|
||||||
if($u=="")
|
if($u=="") {
|
||||||
{
|
header("Location: index.php?login");
|
||||||
header("Location: index.php?login");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = mysql_query("SELECT * FROM mrpg_users WHERE name='$u'");
|
$result = mysql_query("SELECT * FROM mrpg_users WHERE name='$u'");
|
||||||
while($row = mysql_fetch_array($result))
|
while($row = mysql_fetch_array($result)) {
|
||||||
{
|
if($row['password']!=$p) {
|
||||||
|
header("Location: index.php");
|
||||||
if($row['password']!=$p)
|
exit;
|
||||||
{
|
|
||||||
header("Location: index.php");
|
|
||||||
exit;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,38 +31,37 @@ $result = mysql_query($sql);
|
||||||
|
|
||||||
$sql="SELECT * FROM mrpg_users WHERE name='$u'";
|
$sql="SELECT * FROM mrpg_users WHERE name='$u'";
|
||||||
$result = mysql_query($sql);
|
$result = mysql_query($sql);
|
||||||
while($row = mysql_fetch_array($result))
|
while($row = mysql_fetch_array($result)) {
|
||||||
{
|
$char['id']=$row['id'];
|
||||||
$char['id']=$row['id'];
|
$char['x']=$row['x'];
|
||||||
$char['x']=$row['x'];
|
$char['y']=$row['y'];
|
||||||
$char['y']=$row['y'];
|
$char['mode']=$row['mode'];
|
||||||
$char['mode']=$row['mode'];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if($char['mode']=="battle") {
|
if($char['mode']=="battle") {
|
||||||
|
|
||||||
if($_SERVER['QUERY_STRING']=="stats") {
|
if($_SERVER['QUERY_STRING']=="stats") {
|
||||||
header("Location: stat.php?x=" . $u . "&y=" . md5($p));
|
header("Location: stat.php?x=" . $u . "&y=" . md5($p));
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
header("Location: battle.php");
|
header("Location: battle.php");
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
} else if($char['mode']=="lvlup") {
|
} else if($char['mode']=="lvlup") {
|
||||||
|
|
||||||
header("Location: lvlup.php");
|
header("Location: lvlup.php");
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
} else if($char['mode']=="confirm") {
|
} else if($char['mode']=="confirm") {
|
||||||
|
|
||||||
header("Location: confirm.php");
|
header("Location: confirm.php");
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
} else if($char['mode']=="message") {
|
} else if($char['mode']=="message") {
|
||||||
|
|
||||||
header("Location: message.php");
|
header("Location: message.php");
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,7 +69,7 @@ exit;
|
||||||
if($_SERVER['QUERY_STRING']!="") {
|
if($_SERVER['QUERY_STRING']!="") {
|
||||||
$update=true;
|
$update=true;
|
||||||
switch($_SERVER['QUERY_STRING']) {
|
switch($_SERVER['QUERY_STRING']) {
|
||||||
|
|
||||||
case "up":
|
case "up":
|
||||||
$char['x']=$char['x'];
|
$char['x']=$char['x'];
|
||||||
$char['y']=$char['y']-1;
|
$char['y']=$char['y']-1;
|
||||||
|
@ -102,7 +97,7 @@ if($_SERVER['QUERY_STRING']!="") {
|
||||||
$sql="UPDATE mrpg_users SET dir='2' WHERE name='$u'";
|
$sql="UPDATE mrpg_users SET dir='2' WHERE name='$u'";
|
||||||
$result = mysql_query($sql);
|
$result = mysql_query($sql);
|
||||||
break;
|
break;
|
||||||
case "stats":
|
case "stats":
|
||||||
header("Location: stat.php?x=" . $u . "&y=" . md5($p));
|
header("Location: stat.php?x=" . $u . "&y=" . md5($p));
|
||||||
exit;
|
exit;
|
||||||
break;
|
break;
|
||||||
|
@ -118,135 +113,125 @@ if($_GET['que']!="") {
|
||||||
fallback();
|
fallback();
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach($que as $value) {
|
foreach($que as $value) {
|
||||||
|
walkByNumArray($value);
|
||||||
walkByNumArray($value);
|
if(!(walkable($char['x'], $char['y']))) {
|
||||||
|
fallback();
|
||||||
if(!(walkable($char['x'], $char['y']))) {
|
}
|
||||||
fallback();
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* TELES */
|
/* TELES */
|
||||||
if($char['x']==19 && $char['y']==7) { $char['x']=10; $char['y']=60;
|
if($char['x']==19 && $char['y']==7) {
|
||||||
|
$char['x']=10; $char['y']=60;
|
||||||
|
|
||||||
//Lol heal
|
//Lol heal
|
||||||
mysql_query("UPDATE mrpg_stat SET hp=maxhp WHERE id=" . $char['id'] . ";");
|
mysql_query("UPDATE mrpg_stat SET hp=maxhp WHERE id=" . $char['id'] . ";");
|
||||||
|
|
||||||
} //Tele into tut area
|
} //Tele into tut area
|
||||||
else if($char['x']==11 && $char['y']==59) { $char['x']=19; $char['y']=8; } //Tele out of tut area, to noobland
|
else if($char['x']==11 && $char['y']==59) {
|
||||||
else if($char['x']==56 && $char['y']==10) { $char['x']=6; $char['y']=58; mysql_query("UPDATE mrpg_stat SET hp=maxhp WHERE id=" . $char['id'] . ";"); } //Out of canyon. + heal.
|
$char['x']=19; $char['y']=8;
|
||||||
|
} //Tele out of tut area, to noobland
|
||||||
|
else if($char['x']==56 && $char['y']==10) {
|
||||||
|
$char['x']=6; $char['y']=58;
|
||||||
|
mysql_query("UPDATE mrpg_stat SET hp=maxhp WHERE id=" . $char['id'] . ";");
|
||||||
|
} //Out of canyon. + heal.
|
||||||
|
|
||||||
|
|
||||||
/* Misc stuff, like confirmations & messages */
|
/* Misc stuff, like confirmations & messages */
|
||||||
|
|
||||||
if($char['x']==6 && $char['y']==56) {
|
if($char['x']==6 && $char['y']==56) {
|
||||||
|
|
||||||
$char['x']=6;
|
$char['x']=6;
|
||||||
$char['y']=57;
|
$char['y']=57;
|
||||||
|
|
||||||
|
|
||||||
mysql_query("UPDATE mrpg_users SET mode='confirm' WHERE id=" . $char['id'] . ";");
|
mysql_query("UPDATE mrpg_users SET mode='confirm' WHERE id=" . $char['id'] . ";");
|
||||||
|
|
||||||
mysql_query("UPDATE mrpg_confirm SET q='The area you are about to enter is very dangerous for low-levels, and also leads to the first City. Level 10+ Reccommended. Once you exit it, you will never be able to return here. Do you want to continue?', yesx=56, yesy=11, nox=6, noy=57 WHERE id=" . $char['id'] . ";");
|
mysql_query("UPDATE mrpg_confirm SET q='The area you are about to enter is very dangerous for low-levels, and also leads to the first City. Level 10+ Reccommended. Once you exit it, you will never be able to return here. Do you want to continue?', yesx=56, yesy=11, nox=6, noy=57 WHERE id=" . $char['id'] . ";");
|
||||||
|
|
||||||
header("Location: confirm.php");
|
header("Location: confirm.php");
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
} else if($char['x']==97 && $char['y']==13) {
|
} else if($char['x']==97 && $char['y']==13) {
|
||||||
|
|
||||||
|
|
||||||
mysql_query("UPDATE mrpg_users SET mode='message' WHERE id=" . $char['id'] . ";");
|
mysql_query("UPDATE mrpg_users SET mode='message' WHERE id=" . $char['id'] . ";");
|
||||||
|
|
||||||
mysql_query("UPDATE mrpg_message SET q='<h4>Chapter I:<br><br>Coming soon! :)<h4>', x=96, y=13 WHERE id=" . $char['id'] . ";");
|
mysql_query("UPDATE mrpg_message SET q='<h4>Chapter I:<br><br>Coming soon! :)<h4>', x=96, y=13 WHERE id=" . $char['id'] . ";");
|
||||||
|
|
||||||
header("Location: message.php");
|
header("Location: message.php");
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if($update==true && walkable($char['x'], $char['y'])) {
|
if($update==true && walkable($char['x'], $char['y'])) {
|
||||||
|
|
||||||
$tx=$char['x'];
|
$tx=$char['x'];
|
||||||
$ty=$char['y'];
|
$ty=$char['y'];
|
||||||
$sql="UPDATE mrpg_users SET x='$tx', y='$ty' WHERE name='$u'";
|
$sql="UPDATE mrpg_users SET x='$tx', y='$ty' WHERE name='$u'";
|
||||||
$result = mysql_query($sql);
|
$result = mysql_query($sql);
|
||||||
|
|
||||||
|
///////////BATTLE CHECK////////////
|
||||||
|
$bzone=checkbzone($tx, $ty, 0);
|
||||||
|
|
||||||
|
$battle=$bzone[rand(0,(count($bzone)-1))];
|
||||||
|
|
||||||
|
if($battle!=0) {
|
||||||
|
|
||||||
|
$sql="UPDATE mrpg_users SET mode='battle' WHERE name='$u'";
|
||||||
|
$result = mysql_query($sql);
|
||||||
|
|
||||||
|
$result = mysql_query("SELECT * FROM mrpg_monsters WHERE id='$battle'");
|
||||||
|
while($row = mysql_fetch_array($result))
|
||||||
|
{
|
||||||
|
$battlehp=$row['hp'];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
///////////BATTLE CHECK////////////
|
$sql="UPDATE `mrpg_battles` SET `use` = '1', `enemy` = '$battle', `enemyhp` = '$battlehp' WHERE `id` =" . $char['id'] . ";";
|
||||||
|
$result = mysql_query($sql);
|
||||||
|
|
||||||
|
//echo "<font color='white'>BATTLE! <br> $sql";
|
||||||
|
|
||||||
$bzone=checkbzone($tx, $ty, 0);
|
header("Location: battle.php?appear=yes");
|
||||||
|
exit;
|
||||||
|
|
||||||
$battle=$bzone[rand(0,(count($bzone)-1))];
|
}
|
||||||
|
//////////END BATTLE CHECK//////////
|
||||||
|
|
||||||
if($battle!=0) {
|
fallback();
|
||||||
|
|
||||||
$sql="UPDATE mrpg_users SET mode='battle' WHERE name='$u'";
|
|
||||||
$result = mysql_query($sql);
|
|
||||||
|
|
||||||
$result = mysql_query("SELECT * FROM mrpg_monsters WHERE id='$battle'");
|
|
||||||
while($row = mysql_fetch_array($result))
|
|
||||||
{
|
|
||||||
$battlehp=$row['hp'];
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$sql="UPDATE `mrpg_battles` SET `use` = '1', `enemy` = '$battle', `enemyhp` = '$battlehp' WHERE `id` =" . $char['id'] . ";";
|
|
||||||
$result = mysql_query($sql);
|
|
||||||
|
|
||||||
//echo "<font color='white'>BATTLE! <br> $sql";
|
|
||||||
|
|
||||||
header("Location: battle.php?appear=yes");
|
|
||||||
exit;
|
|
||||||
|
|
||||||
}
|
|
||||||
//////////END BATTLE CHECK//////////
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
fallback();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function walkByNumArray($num) {
|
function walkByNumArray($num) {
|
||||||
|
global $char;
|
||||||
global $char;
|
if($num==1) {
|
||||||
|
$char['x']=$char['x'];
|
||||||
if($num==1) {
|
$char['y'] =$char['y']-1;
|
||||||
$char['x']=$char['x'];
|
} else if($num==2) {
|
||||||
$char['y'] =$char['y']-1;
|
$char['x']=$char['x']-1;
|
||||||
} else if($num==2) {
|
$char['y'] =$char['y'];
|
||||||
$char['x']=$char['x']-1;
|
} else if($num==3) {
|
||||||
$char['y'] =$char['y'];
|
$char['x']=$char['x']+1;
|
||||||
} else if($num==3) {
|
$char['y'] =$char['y'];
|
||||||
$char['x']=$char['x']+1;
|
} else if($num==4) {
|
||||||
$char['y'] =$char['y'];
|
$char['x']=$char['x'];
|
||||||
} else if($num==4) {
|
$char['y'] =$char['y']+1;
|
||||||
$char['x']=$char['x'];
|
}
|
||||||
$char['y'] =$char['y']+1;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function fallback() {
|
function fallback() {
|
||||||
global $u, $p;
|
global $u, $p;
|
||||||
header('Location: showim.php?x=' . $u . '&y=' . md5($p));
|
header('Location: showim.php?x=' . $u . '&y=' . md5($p));
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
fallback();
|
fallback();
|
||||||
|
|
||||||
|
?>
|
||||||
?>
|
|
||||||
|
|
158
battle.php
|
@ -13,25 +13,20 @@ $havegone=false;
|
||||||
|
|
||||||
$dead=false;
|
$dead=false;
|
||||||
|
|
||||||
|
|
||||||
$messages=array();
|
$messages=array();
|
||||||
|
|
||||||
$u=strtolower($credsYo[0]);
|
$u=strtolower($credsYo[0]);
|
||||||
$p=strtolower($credsYo[1]);
|
$p=strtolower($credsYo[1]);
|
||||||
|
|
||||||
if($u=="")
|
if($u=="") {
|
||||||
{
|
header("Location: index.php?login");
|
||||||
header("Location: index.php?login");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = mysql_query("SELECT * FROM mrpg_users WHERE name='$u'");
|
$result = mysql_query("SELECT * FROM mrpg_users WHERE name='$u'");
|
||||||
while($row = mysql_fetch_array($result))
|
while($row = mysql_fetch_array($result)) {
|
||||||
{
|
if($row['password']!=$p) {
|
||||||
|
header("Location: index.php");
|
||||||
if($row['password']!=$p)
|
exit;
|
||||||
{
|
|
||||||
header("Location: index.php");
|
|
||||||
exit;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,86 +35,70 @@ $result = mysql_query($sql);
|
||||||
|
|
||||||
$sql="SELECT * FROM mrpg_users WHERE name='$u'";
|
$sql="SELECT * FROM mrpg_users WHERE name='$u'";
|
||||||
$result = mysql_query($sql);
|
$result = mysql_query($sql);
|
||||||
while($row = mysql_fetch_array($result))
|
while($row = mysql_fetch_array($result)) {
|
||||||
{
|
$char['id']=$row['id'];
|
||||||
$char['id']=$row['id'];
|
$char['exp']=$row['level'];
|
||||||
$char['exp']=$row['level'];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql="SELECT * FROM mrpg_battles WHERE id='" . $char['id'] . "'";
|
$sql="SELECT * FROM mrpg_battles WHERE id='" . $char['id'] . "'";
|
||||||
$result = mysql_query($sql);
|
$result = mysql_query($sql);
|
||||||
while($row = mysql_fetch_array($result))
|
while($row = mysql_fetch_array($result)) {
|
||||||
{
|
|
||||||
|
|
||||||
if($row['use']==0) {
|
if($row['use']==0) {
|
||||||
header("Location: actions.php");
|
header("Location: actions.php");
|
||||||
exit;
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
$enemy=$row['enemy'];
|
|
||||||
$enemyhp=$row['enemyhp'];
|
|
||||||
|
|
||||||
|
$enemy=$row['enemy'];
|
||||||
|
$enemyhp=$row['enemyhp'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql="SELECT * FROM mrpg_monsters WHERE id='$enemy'";
|
$sql="SELECT * FROM mrpg_monsters WHERE id='$enemy'";
|
||||||
$result = mysql_query($sql);
|
$result = mysql_query($sql);
|
||||||
$monsterstats = mysql_fetch_array($result);
|
$monsterstats = mysql_fetch_array($result);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$sql="SELECT * FROM mrpg_stat WHERE id='" . $char['id'] . "'";
|
$sql="SELECT * FROM mrpg_stat WHERE id='" . $char['id'] . "'";
|
||||||
$result = mysql_query($sql);
|
$result = mysql_query($sql);
|
||||||
$pstats = mysql_fetch_array($result);
|
$pstats = mysql_fetch_array($result);
|
||||||
|
|
||||||
|
|
||||||
if($_GET['appear']==yes) {
|
if($_GET['appear']==yes) {
|
||||||
$messages[]=ucfirst($monsterstats['name']) . " appears!";
|
$messages[]=ucfirst($monsterstats['name']) . " appears!";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if($_GET['act']==run) {
|
if($_GET['act']==run) {
|
||||||
|
$run=rand(1,4);
|
||||||
|
|
||||||
|
if($run==4) {
|
||||||
|
|
||||||
$run=rand(1,4);
|
$messages[]="You attempt to escape!";
|
||||||
|
$messages[]="Success!";
|
||||||
if($run==4) {
|
$havegone=false;
|
||||||
|
$sql="UPDATE mrpg_battles SET `use`=0, `enemy`=0, `enemyhp`=0 WHERE `id`=" . $char['id'] . ";";
|
||||||
|
mysql_query($sql);
|
||||||
$messages[]="You attempt to escape!";
|
mysql_query("UPDATE mrpg_users SET mode='norm' WHERE id=" . $char['id'] . ";");
|
||||||
$messages[]="Success!";
|
} else {
|
||||||
$havegone=false;
|
$havegone=true;
|
||||||
$sql="UPDATE mrpg_battles SET `use`=0, `enemy`=0, `enemyhp`=0 WHERE `id`=" . $char['id'] . ";";
|
$messages[]="You attempt to escape!";
|
||||||
mysql_query($sql);
|
$messages[]="Failure...";
|
||||||
mysql_query("UPDATE mrpg_users SET mode='norm' WHERE id=" . $char['id'] . ";");
|
|
||||||
} else {
|
|
||||||
$havegone=true;
|
|
||||||
$messages[]="You attempt to escape!";
|
|
||||||
$messages[]="Failure...";
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
} else if($_GET['act']==attack) {
|
} else if($_GET['act']==attack) {
|
||||||
|
|
||||||
$messages[]="You attack the " . ucfirst($monsterstats['name']) . "!";
|
$messages[]="You attack the " . ucfirst($monsterstats['name']) . "!";
|
||||||
$havegone=true;
|
$havegone=true;
|
||||||
|
|
||||||
|
//(Strength + Force / 2) + (offense + fight / 2)
|
||||||
|
|
||||||
|
$hit1=($pstats['strength'] + $pstats['force']) / 2;
|
||||||
|
$hit2=($pstats['offsnse'] + $pstats['fight']) / 2;
|
||||||
|
|
||||||
//(Strength + Force / 2) + (offense + fight / 2)
|
$hit=(2/3)*(($hit1+$hit2)/2);
|
||||||
|
|
||||||
$hit1=($pstats['strength'] + $pstats['force']) / 2;
|
|
||||||
$hit2=($pstats['offsnse'] + $pstats['fight']) / 2;
|
|
||||||
|
|
||||||
$hit=(2/3)*(($hit1+$hit2)/2);
|
|
||||||
|
|
||||||
$hit=rand(0,round($hit+4.9999));
|
|
||||||
$messages[]="And you deal $hit damage!";
|
|
||||||
$enemyhp=$enemyhp-$hit;
|
|
||||||
|
|
||||||
|
$hit=rand(0,round($hit+4.9999));
|
||||||
|
$messages[]="And you deal $hit damage!";
|
||||||
|
$enemyhp=$enemyhp-$hit;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -134,48 +113,37 @@ mysql_query("UPDATE mrpg_battles SET enemyhp=$enemyhp WHERE id=" . $char['id'] .
|
||||||
|
|
||||||
if($enemyhp<=0) {
|
if($enemyhp<=0) {
|
||||||
|
|
||||||
$messages[]=$monsterstats['diemsg'];
|
$messages[]=$monsterstats['diemsg'];
|
||||||
|
|
||||||
|
$sql="UPDATE mrpg_battles SET `use`=0, `enemy`=0, `enemyhp`=0 WHERE `id`=" . $char['id'] . ";";
|
||||||
|
mysql_query($sql);
|
||||||
|
|
||||||
|
$expgiven=$monsterstats['expgive'];
|
||||||
|
|
||||||
|
$messages[]="You gain $expgiven experience.";
|
||||||
|
|
||||||
|
|
||||||
$sql="UPDATE mrpg_battles SET `use`=0, `enemy`=0, `enemyhp`=0 WHERE `id`=" . $char['id'] . ";";
|
if( level(2, $char['exp']) != level(2, $char['exp']+$expgiven) ) {
|
||||||
mysql_query($sql);
|
mysql_query("UPDATE mrpg_users SET mode='lvlup', level=level+$expgiven WHERE id=" . $char['id'] . ";");
|
||||||
|
} else {
|
||||||
|
mysql_query("UPDATE mrpg_users SET mode='norm', level=level+$expgiven WHERE id=" . $char['id'] . ";");
|
||||||
|
}
|
||||||
|
|
||||||
|
$havegone=false;
|
||||||
$expgiven=$monsterstats['expgive'];
|
|
||||||
|
|
||||||
$messages[]="You gain $expgiven experience.";
|
|
||||||
|
|
||||||
|
|
||||||
if( level(2, $char['exp']) != level(2, $char['exp']+$expgiven) ) {
|
|
||||||
|
|
||||||
mysql_query("UPDATE mrpg_users SET mode='lvlup', level=level+$expgiven WHERE id=" . $char['id'] . ";");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
|
|
||||||
mysql_query("UPDATE mrpg_users SET mode='norm', level=level+$expgiven WHERE id=" . $char['id'] . ";");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$havegone=false;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if($havegone==true) { //The player has acted! Now its the games turn!
|
if($havegone==true) { //The player has acted! Now its the games turn!
|
||||||
|
|
||||||
$monsterhit=rand(0, $monsterstats['power']);
|
$monsterhit=rand(0, $monsterstats['power']);
|
||||||
|
|
||||||
$pstats['hp']=$pstats['hp']-$monsterhit;
|
$pstats['hp']=$pstats['hp']-$monsterhit;
|
||||||
|
|
||||||
mysql_query("UPDATE mrpg_stat SET hp=" . $pstats['hp'] . " WHERE id=" . $char['id'] . ";");
|
mysql_query("UPDATE mrpg_stat SET hp=" . $pstats['hp'] . " WHERE id=" . $char['id'] . ";");
|
||||||
|
|
||||||
$messages[]="The " . ucfirst($monsterstats['name']) . " attacks! And deals $monsterhit Damage!";
|
$messages[]="The " . ucfirst($monsterstats['name']) . " attacks! And deals $monsterhit Damage!";
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -183,15 +151,15 @@ $messages[]="The " . ucfirst($monsterstats['name']) . " attacks! And deals $mons
|
||||||
|
|
||||||
|
|
||||||
if($pstats['hp']<=0) {
|
if($pstats['hp']<=0) {
|
||||||
$messages[]="You died!";
|
$messages[]="You died!";
|
||||||
|
|
||||||
$dead=true;
|
$dead=true;
|
||||||
|
|
||||||
mysql_query("UPDATE mrpg_stat SET hp=maxhp, poison=0, other=0 WHERE id=" . $char['id'] . ";");
|
mysql_query("UPDATE mrpg_stat SET hp=maxhp, poison=0, other=0 WHERE id=" . $char['id'] . ";");
|
||||||
|
|
||||||
mysql_query("UPDATE mrpg_battles SET `use`=0, enemy=0, enemyhp=0 WHERE id=" . $char['id'] . ";");
|
mysql_query("UPDATE mrpg_battles SET `use`=0, enemy=0, enemyhp=0 WHERE id=" . $char['id'] . ";");
|
||||||
|
|
||||||
mysql_query("UPDATE mrpg_users SET mode='norm', x=5, y=3 WHERE id=" . $char['id'] . ";");
|
mysql_query("UPDATE mrpg_users SET mode='norm', x=5, y=3 WHERE id=" . $char['id'] . ";");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -200,4 +168,4 @@ mysql_query("UPDATE mrpg_users SET mode='norm', x=5, y=3 WHERE id=" . $char['id'
|
||||||
bimage($char['id'], $messages[0], $messages[1], $messages[2], $messages[3], $dead);
|
bimage($char['id'], $messages[0], $messages[1], $messages[2], $messages[3], $dead);
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -1,25 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
function checkbzone($x, $y, $m) {
|
function checkbzone($x, $y, $m) {
|
||||||
|
if($y>=0 && $y<=12 && $x>=0 && $x<=25) { //Noob zone
|
||||||
if($y>=0 && $y<=12 && $x>=0 && $x<=25) { //Noob zone
|
return array(1,2,0,0,0,0,0,0,0); // 1/10th chance rat :O
|
||||||
return array(1,2,0,0,0,0,0,0,0); // 1/10th chance rat :O
|
} else if($y>=11 && $y<=15 && $x>=53 && $x<=99) {
|
||||||
} else if($y>=11 && $y<=15 && $x>=53 && $x<=99) {
|
return array(2,0,0,0,0,3);
|
||||||
return array(2,0,0,0,0,3);
|
} else {
|
||||||
} else {
|
return array(0);
|
||||||
return array(0);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
22
config.php
|
@ -5,21 +5,17 @@
|
||||||
exit;*/
|
exit;*/
|
||||||
|
|
||||||
|
|
||||||
$con = mysql_connect("localhost","mop_admin","droids");
|
$con = mysql_connect("mysql","mop_admin","droids");
|
||||||
if (!$con)
|
if (!$con) {
|
||||||
{
|
die('Could not connect: ' . mysql_error());
|
||||||
die('Could not connect: ' . mysql_error());
|
}
|
||||||
}
|
|
||||||
mysql_select_db("mop_rpg", $con);
|
mysql_select_db("mop_rpg", $con);
|
||||||
|
|
||||||
//Get user IP
|
//Get user IP
|
||||||
if($_SERVER['HTTP_X_FORWARDED_FOR']!="")
|
if($_SERVER['HTTP_X_FORWARDED_FOR']!="") {
|
||||||
{
|
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
|
||||||
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
|
} else {
|
||||||
}
|
$ip=$_SERVER['REMOTE_ADDR'];
|
||||||
else
|
|
||||||
{
|
|
||||||
$ip=$_SERVER['REMOTE_ADDR'];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
78
confirm.php
|
@ -10,84 +10,62 @@ $credsYo=explode("@seperator@", $credsYo);
|
||||||
$u=strtolower($credsYo[0]);
|
$u=strtolower($credsYo[0]);
|
||||||
$p=strtolower($credsYo[1]);
|
$p=strtolower($credsYo[1]);
|
||||||
|
|
||||||
if($u=="")
|
if($u=="") {
|
||||||
{
|
header("Location: index.php?login");
|
||||||
header("Location: index.php?login");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = mysql_query("SELECT * FROM mrpg_users WHERE name='$u'");
|
$result = mysql_query("SELECT * FROM mrpg_users WHERE name='$u'");
|
||||||
while($row = mysql_fetch_array($result))
|
while($row = mysql_fetch_array($result)) {
|
||||||
{
|
if($row['password']!=$p) {
|
||||||
|
header("Location: index.php");
|
||||||
if($row['password']!=$p)
|
exit;
|
||||||
{
|
|
||||||
header("Location: index.php");
|
|
||||||
exit;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$sql="SELECT * FROM mrpg_users WHERE name='$u'";
|
$sql="SELECT * FROM mrpg_users WHERE name='$u'";
|
||||||
$result = mysql_query($sql);
|
$result = mysql_query($sql);
|
||||||
while($row = mysql_fetch_array($result))
|
while($row = mysql_fetch_array($result)) {
|
||||||
{
|
$char['id']=$row['id'];
|
||||||
$char['id']=$row['id'];
|
$char['mode']=$row['mode'];
|
||||||
$char['mode']=$row['mode'];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if($char['mode']!="confirm") {
|
if($char['mode']!="confirm") {
|
||||||
header("Location: action.php");
|
header("Location: action.php");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$sql="SELECT * FROM mrpg_confirm WHERE id=" . $char['id'] . ";";
|
$sql="SELECT * FROM mrpg_confirm WHERE id=" . $char['id'] . ";";
|
||||||
$result = mysql_query($sql);
|
$result = mysql_query($sql);
|
||||||
while($row = mysql_fetch_array($result))
|
while($row = mysql_fetch_array($result)) {
|
||||||
{
|
$confirm['q']=$row['q'];
|
||||||
$confirm['q']=$row['q'];
|
$confirm['yesx']=$row['yesx'];
|
||||||
$confirm['yesx']=$row['yesx'];
|
$confirm['yesy']=$row['yesy'];
|
||||||
$confirm['yesy']=$row['yesy'];
|
$confirm['nox']=$row['nox'];
|
||||||
$confirm['nox']=$row['nox'];
|
$confirm['noy']=$row['noy'];
|
||||||
$confirm['noy']=$row['noy'];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if($_SERVER['QUERY_STRING']=="") {
|
if($_SERVER['QUERY_STRING']=="") {
|
||||||
|
echo "<center><br><h4><font color='white'>" . $confirm['q'] . "</font></h4><br><br>
|
||||||
echo "<center><br><h4><font color='white'>" . $confirm['q'] . "</font></h4><br><br>
|
<h5><a href='confirm.php?yes'>Yes</a> | <a href='confirm.php?no'>No</a></h5>";
|
||||||
|
|
||||||
<h5><a href='confirm.php?yes'>Yes</a> | <a href='confirm.php?no'>No</a></h5>";
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if($_SERVER['QUERY_STRING']=="yes") {
|
if($_SERVER['QUERY_STRING']=="yes") {
|
||||||
|
mysql_query("UPDATE mrpg_users SET mode='norm', x=" . $confirm['yesx'] . ", y=" . $confirm['yesy'] . " WHERE id=" . $char['id'] . ";");
|
||||||
mysql_query("UPDATE mrpg_users SET mode='norm', x=" . $confirm['yesx'] . ", y=" . $confirm['yesy'] . " WHERE id=" . $char['id'] . ";");
|
header("Location: actions.php");
|
||||||
|
exit;
|
||||||
header("Location: actions.php");
|
}
|
||||||
exit;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if($_SERVER['QUERY_STRING']=="no") {
|
if($_SERVER['QUERY_STRING']=="no") {
|
||||||
|
mysql_query("UPDATE mrpg_users SET mode='norm', x=" . $confirm['nox'] . ", y=" . $confirm['noy'] . " WHERE id=" . $char['id'] . ";");
|
||||||
mysql_query("UPDATE mrpg_users SET mode='norm', x=" . $confirm['nox'] . ", y=" . $confirm['noy'] . " WHERE id=" . $char['id'] . ";");
|
header("Location: actions.php");
|
||||||
|
exit;
|
||||||
header("Location: actions.php");
|
}
|
||||||
exit;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
93
coordim.php
|
@ -14,25 +14,21 @@ include("battlezones.php");
|
||||||
$u=$char['x'];
|
$u=$char['x'];
|
||||||
$p=$char['y'];
|
$p=$char['y'];
|
||||||
|
|
||||||
if($u=="")
|
if($u=="") {
|
||||||
{
|
header("Location: index.php");
|
||||||
header("Location: index.php");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = mysql_query("SELECT * FROM mrpg_users WHERE name='$u'");
|
$result = mysql_query("SELECT * FROM mrpg_users WHERE name='$u'");
|
||||||
while($row = mysql_fetch_array($result))
|
while($row = mysql_fetch_array($result)) {
|
||||||
{
|
$x=$row['x']+0;
|
||||||
|
$y=$row['y']+0;
|
||||||
|
$dir=$row['dir'];
|
||||||
|
|
||||||
$x=$row['x']+0;
|
$bzone=checkbzone($x, $y, 0);
|
||||||
$y=$row['y']+0;
|
|
||||||
$dir=$row['dir'];
|
|
||||||
|
|
||||||
$bzone=checkbzone($x, $y, 0);
|
if(md5($row['password'])!=$p) {
|
||||||
|
header("Location: index.php");
|
||||||
if(md5($row['password'])!=$p)
|
exit;
|
||||||
{
|
|
||||||
header("Location: index.php");
|
|
||||||
exit;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,52 +67,47 @@ $srcx=$char['x']*16-230;
|
||||||
$srcy=$char['y']*16-160;
|
$srcy=$char['y']*16-160;
|
||||||
$srcx2=$char['x']*16+5;
|
$srcx2=$char['x']*16+5;
|
||||||
$srcy2=$char['y']*16+5;
|
$srcy2=$char['y']*16+5;
|
||||||
$black = imageColorAllocate ($im, 0x00, 0x00, 0x00);
|
$black = imageColorAllocate ($im, 0x00, 0x00, 0x00);
|
||||||
$white = imageColorAllocate ($im, 0xFF, 0xFF, 0xFF);
|
$white = imageColorAllocate ($im, 0xFF, 0xFF, 0xFF);
|
||||||
|
|
||||||
|
|
||||||
$result = mysql_query("SELECT name,x,y,lastact,dir FROM mrpg_users");
|
$result = mysql_query("SELECT name,x,y,lastact,dir FROM mrpg_users");
|
||||||
while($row = mysql_fetch_array($result))
|
while($row = mysql_fetch_array($result)) {
|
||||||
{
|
|
||||||
|
|
||||||
$dx=$row['x'];
|
$dx=$row['x'];
|
||||||
$dy=$row['y'];
|
$dy=$row['y'];
|
||||||
$thetime=$row['lastact'];
|
$thetime=$row['lastact'];
|
||||||
$dsrcx=$dx*16-230;
|
$dsrcx=$dx*16-230;
|
||||||
$dsrcy=$dy*16-160;
|
$dsrcy=$dy*16-160;
|
||||||
|
|
||||||
|
if((date("U")-$thetime)<=60) {
|
||||||
|
|
||||||
if((date("U")-$thetime)<=60) {
|
if($row['dir']==1) {
|
||||||
|
imageCopyMerge($im, $images['chUp'], $dsrcx +230, $dsrcy +144, 0, 0, 12, 32,100);
|
||||||
|
} else if($row['dir']==2) {
|
||||||
|
imageCopyMerge($im, $images['chLeft'], $dsrcx +230, $dsrcy +144, 0, 0, 12, 32,100);
|
||||||
|
} else if($row['dir']==3) {
|
||||||
|
imageCopyMerge($im, $images['chRight'], $dsrcx +230, $dsrcy +144, 0, 0, 12, 32,100);
|
||||||
|
} else if($row['dir']==4) {
|
||||||
|
imageCopyMerge($im, $images['chDown'], $dsrcx +230, $dsrcy +144, 0, 0, 12, 32,100);
|
||||||
|
}
|
||||||
|
|
||||||
if($row['dir']==1) {
|
//imageString($im,5, $dsrcx+230-(strlen($row['name'])*3), $dsrcy+129, ucfirst($row['name']), $black);
|
||||||
imageCopyMerge($im, $images['chUp'], $dsrcx +230, $dsrcy +144, 0, 0, 12, 32,100);
|
imageString($im,5, $dsrcx+233-(strlen($row['name'])*3), $dsrcy+127, ucfirst($row['name']), $black);
|
||||||
} else if($row['dir']==2) {
|
}
|
||||||
imageCopyMerge($im, $images['chLeft'], $dsrcx +230, $dsrcy +144, 0, 0, 12, 32,100);
|
|
||||||
} else if($row['dir']==3) {
|
|
||||||
imageCopyMerge($im, $images['chRight'], $dsrcx +230, $dsrcy +144, 0, 0, 12, 32,100);
|
|
||||||
} else if($row['dir']==4) {
|
|
||||||
imageCopyMerge($im, $images['chDown'], $dsrcx +230, $dsrcy +144, 0, 0, 12, 32,100);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//imageString($im,5, $dsrcx+230-(strlen($row['name'])*3), $dsrcy+129, ucfirst($row['name']), $black);
|
|
||||||
imageString($im,5, $dsrcx+233-(strlen($row['name'])*3), $dsrcy+127, ucfirst($row['name']), $black);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if($dir==1) {
|
if($dir==1) {
|
||||||
imageCopyMerge($im, $images['chUp'], $srcx+230, $srcy+144, 0, 0, 12, 32,100);
|
imageCopyMerge($im, $images['chUp'], $srcx+230, $srcy+144, 0, 0, 12, 32,100);
|
||||||
} else if($dir==2) {
|
} else if($dir==2) {
|
||||||
imageCopyMerge($im, $images['chLeft'], $srcx+230, $srcy+144, 0, 0, 12, 32,100);
|
imageCopyMerge($im, $images['chLeft'], $srcx+230, $srcy+144, 0, 0, 12, 32,100);
|
||||||
} else if($dir==3) {
|
} else if($dir==3) {
|
||||||
imageCopyMerge($im, $images['chRight'], $srcx+230, $srcy+144, 0, 0, 12, 32,100);
|
imageCopyMerge($im, $images['chRight'], $srcx+230, $srcy+144, 0, 0, 12, 32,100);
|
||||||
} else if($dir==4) {
|
} else if($dir==4) {
|
||||||
imageCopyMerge($im, $images['chDown'], $srcx+230, $srcy+144, 0, 0, 12, 32,100);
|
imageCopyMerge($im, $images['chDown'], $srcx+230, $srcy+144, 0, 0, 12, 32,100);
|
||||||
}
|
}
|
||||||
|
|
||||||
//imageCopyMerge($im, $images['chDown'], $srcx+230, $srcy+144, 0, 0, 12, 32,100);
|
//imageCopyMerge($im, $images['chDown'], $srcx+230, $srcy+144, 0, 0, 12, 32,100);
|
||||||
|
@ -131,23 +122,13 @@ imageCopy($im2, $im, 0, 0, $srcx, $srcy, 470, 329);
|
||||||
header('Content-type: image/png');
|
header('Content-type: image/png');
|
||||||
imagePNG($im2);
|
imagePNG($im2);
|
||||||
|
|
||||||
|
imageDestroy($im);
|
||||||
|
imageDestroy($im2);
|
||||||
|
|
||||||
imageDestroy($im);
|
|
||||||
imageDestroy($im2);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
imageDestroy($images['chDown']);
|
imageDestroy($images['chDown']);
|
||||||
imageDestroy($images['chUp']);
|
imageDestroy($images['chUp']);
|
||||||
imageDestroy($images['chLeft']);
|
imageDestroy($images['chLeft']);
|
||||||
imageDestroy($images['chRight']);
|
imageDestroy($images['chRight']);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ob_end_flush();
|
ob_end_flush();
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -6,28 +6,22 @@ Finds experience from level, and vice-versa
|
||||||
|
|
||||||
|
|
||||||
function level($mode,$input) {
|
function level($mode,$input) {
|
||||||
|
if($mode==1) {
|
||||||
|
$a=pow($input, 2) * 31;
|
||||||
|
return $a;
|
||||||
|
}
|
||||||
|
if($mode==2) {
|
||||||
|
$val=$input/31;
|
||||||
|
|
||||||
if($mode==1) {
|
$val=sqrt($val);
|
||||||
$a=pow($input, 2) * 31;
|
|
||||||
return $a;
|
|
||||||
}
|
|
||||||
|
|
||||||
if($mode==2) {
|
$val=round($val-.499);
|
||||||
|
|
||||||
|
//$val=$val-.499;
|
||||||
|
|
||||||
$val=$input/31;
|
return(abs($val));
|
||||||
|
}
|
||||||
$val=sqrt($val);
|
|
||||||
|
|
||||||
$val=round($val-.499);
|
|
||||||
|
|
||||||
//$val=$val-.499;
|
|
||||||
|
|
||||||
return(abs($val));
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
?>
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
416
game.php
|
@ -14,32 +14,28 @@ $credsYo=explode("@seperator@", $credsYo);
|
||||||
$u=strtolower($credsYo[0]);
|
$u=strtolower($credsYo[0]);
|
||||||
$p=strtolower($credsYo[1]);
|
$p=strtolower($credsYo[1]);
|
||||||
|
|
||||||
if($u=="")
|
if($u=="") {
|
||||||
{
|
header("Location: index.php?login");
|
||||||
header("Location: index.php?login");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = mysql_query("SELECT * FROM mrpg_users WHERE name='$u'");
|
$result = mysql_query("SELECT * FROM mrpg_users WHERE name='$u'");
|
||||||
while($row = mysql_fetch_array($result))
|
while($row = mysql_fetch_array($result)) {
|
||||||
{
|
|
||||||
if($row['password']!=$p)
|
if($row['password']!=$p)
|
||||||
{
|
{
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$sql="SELECT * FROM mrpg_users WHERE name='$u'";
|
$sql="SELECT * FROM mrpg_users WHERE name='$u'";
|
||||||
$result = mysql_query($sql);
|
$result = mysql_query($sql);
|
||||||
while($row = mysql_fetch_array($result))
|
while($row = mysql_fetch_array($result)) {
|
||||||
{
|
$char['x']=$row['x'];
|
||||||
$char['x']=$row['x'];
|
$char['y']=$row['y'];
|
||||||
$char['y']=$row['y'];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?><script type='text/javascript'>
|
?><script type='text/javascript'>
|
||||||
|
|
||||||
qSwitch=0
|
qSwitch=0
|
||||||
|
@ -52,62 +48,52 @@ strW5=""
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function qswitch() {
|
function qswitch() {
|
||||||
if(qSwitch==0) {
|
if(qSwitch==0) {
|
||||||
qSwitch=1
|
qSwitch=1
|
||||||
} else if(qSwitch==1) {
|
} else if(qSwitch==1) {
|
||||||
qSwitch=0
|
qSwitch=0
|
||||||
}
|
}
|
||||||
drawQs(qSwitch)
|
drawQs(qSwitch)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function dirtostring(dir) {
|
function dirtostring(dir) {
|
||||||
if(dir==1) {
|
if(dir==1) {
|
||||||
|
return "<image src='images/icons_up.gif'>"
|
||||||
return "<image src='images/icons_up.gif'>"
|
} else if(dir==2) {
|
||||||
} else if(dir==2) {
|
return "<image src='images/icons_left.gif'>"
|
||||||
|
} else if(dir==3) {
|
||||||
return "<image src='images/icons_left.gif'>"
|
return "<image src='images/icons_right.gif'>"
|
||||||
} else if(dir==3) {
|
} else if(dir==4) {
|
||||||
|
return "<image src='images/icons_down.gif'>"
|
||||||
return "<image src='images/icons_right.gif'>"
|
} else if(dir==0) {
|
||||||
} else if(dir==4) {
|
return "<image src='images/exbox.gif'>"
|
||||||
|
} else {
|
||||||
return "<image src='images/icons_down.gif'>"
|
return ""
|
||||||
} else if(dir==0) {
|
}
|
||||||
|
|
||||||
return "<image src='images/exbox.gif'>"
|
|
||||||
} else {
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function drawQs(x) {
|
function drawQs(x) {
|
||||||
if(x==1) {
|
if(x==1) {
|
||||||
qSwitch=1
|
qSwitch=1
|
||||||
obj = document.getElementById('qswitch')
|
obj = document.getElementById('qswitch')
|
||||||
obj.innerHTML='<image src=\'images/switchon.gif\' border=\'0\'>'
|
obj.innerHTML='<image src=\'images/switchon.gif\' border=\'0\'>'
|
||||||
obj = document.getElementById('overlay')
|
obj = document.getElementById('overlay')
|
||||||
obj.style.display=""
|
obj.style.display=""
|
||||||
obj2 = document.getElementById('walkdiv')
|
obj2 = document.getElementById('walkdiv')
|
||||||
obj2.style.display=""
|
obj2.style.display=""
|
||||||
|
}
|
||||||
}
|
if(x==0) {
|
||||||
if(x==0) {
|
qSwitch=0
|
||||||
qSwitch=0
|
obj = document.getElementById('qswitch')
|
||||||
obj = document.getElementById('qswitch')
|
obj.innerHTML='<image src=\'images/switchoff.gif\' border=\'0\'>'
|
||||||
obj.innerHTML='<image src=\'images/switchoff.gif\' border=\'0\'>'
|
obj = document.getElementById('overlay')
|
||||||
obj = document.getElementById('overlay')
|
obj.style.display="none"
|
||||||
obj.style.display="none"
|
obj = document.getElementById('walkdiv')
|
||||||
obj = document.getElementById('walkdiv')
|
obj.style.display="none"
|
||||||
obj.style.display="none"
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -122,208 +108,195 @@ q7=null
|
||||||
q8=null
|
q8=null
|
||||||
q9=null
|
q9=null
|
||||||
q10=null
|
q10=null
|
||||||
|
|
||||||
function walkfunct(d) {
|
function walkfunct(d) {
|
||||||
if(qSwitch==1 && d!=null) {
|
if(qSwitch==1 && d!=null) {
|
||||||
|
if(d==1) {
|
||||||
|
obj2 = document.getElementById('square')
|
||||||
|
obj2.style.top=(obj2.offsetTop - 16)
|
||||||
|
} else if(d==2) {
|
||||||
|
obj2 = document.getElementById('square')
|
||||||
|
obj2.style.left=(obj2.offsetLeft - 16)
|
||||||
|
} else if(d==3) {
|
||||||
|
obj2 = document.getElementById('square')
|
||||||
|
obj2.style.left=(obj2.offsetLeft + 16)
|
||||||
|
} else if(d==4) {
|
||||||
|
obj2 = document.getElementById('square')
|
||||||
|
obj2.style.top=(obj2.offsetTop + 16)
|
||||||
|
}
|
||||||
|
|
||||||
|
if(q1==null) {
|
||||||
|
q1=d
|
||||||
|
} else if(q2==null) {
|
||||||
|
q2=d
|
||||||
|
} else if(q3==null) {
|
||||||
|
q3=d
|
||||||
|
} else if(q4==null) {
|
||||||
|
q4=d
|
||||||
|
} else if(q5==null) {
|
||||||
|
q5=d
|
||||||
|
} else if(q6==null) {
|
||||||
|
q6=d
|
||||||
|
} else if(q7==null) {
|
||||||
|
q7=d
|
||||||
|
} else if(q8==null) {
|
||||||
|
q8=d
|
||||||
|
} else if(q9==null) {
|
||||||
|
q9=d
|
||||||
|
} else if(q10==null) {
|
||||||
|
q10=d
|
||||||
|
goque()
|
||||||
|
}
|
||||||
|
|
||||||
|
drawque();
|
||||||
if(d==1) {
|
} else {
|
||||||
obj2 = document.getElementById('square')
|
if(d==0) {
|
||||||
obj2.style.top=(obj2.offsetTop - 16)
|
document.all.TheFrame.src="actions.php"
|
||||||
} else if(d==2) {
|
} else if(d==1) {
|
||||||
obj2 = document.getElementById('square')
|
document.all.TheFrame.src="actions.php?up"
|
||||||
obj2.style.left=(obj2.offsetLeft - 16)
|
} else if(d==2) {
|
||||||
} else if(d==3) {
|
document.all.TheFrame.src="actions.php?left"
|
||||||
obj2 = document.getElementById('square')
|
} else if(d==3) {
|
||||||
obj2.style.left=(obj2.offsetLeft + 16)
|
document.all.TheFrame.src="actions.php?right"
|
||||||
} else if(d==4) {
|
} else if(d==4) {
|
||||||
obj2 = document.getElementById('square')
|
document.all.TheFrame.src="actions.php?down"
|
||||||
obj2.style.top=(obj2.offsetTop + 16)
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(q1==null) {
|
|
||||||
q1=d
|
|
||||||
} else if(q2==null) {
|
|
||||||
q2=d
|
|
||||||
} else if(q3==null) {
|
|
||||||
q3=d
|
|
||||||
} else if(q4==null) {
|
|
||||||
q4=d
|
|
||||||
} else if(q5==null) {
|
|
||||||
q5=d
|
|
||||||
} else if(q6==null) {
|
|
||||||
q6=d
|
|
||||||
} else if(q7==null) {
|
|
||||||
q7=d
|
|
||||||
} else if(q8==null) {
|
|
||||||
q8=d
|
|
||||||
} else if(q9==null) {
|
|
||||||
q9=d
|
|
||||||
} else if(q10==null) {
|
|
||||||
q10=d
|
|
||||||
goque()
|
|
||||||
}
|
|
||||||
|
|
||||||
drawque();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if(d==0) {
|
|
||||||
document.all.TheFrame.src="actions.php"
|
|
||||||
} else if(d==1) {
|
|
||||||
document.all.TheFrame.src="actions.php?up"
|
|
||||||
} else if(d==2) {
|
|
||||||
document.all.TheFrame.src="actions.php?left"
|
|
||||||
} else if(d==3) {
|
|
||||||
document.all.TheFrame.src="actions.php?right"
|
|
||||||
} else if(d==4) {
|
|
||||||
document.all.TheFrame.src="actions.php?down"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function drawque() {
|
function drawque() {
|
||||||
strW1=dirtostring(q1)
|
strW1=dirtostring(q1)
|
||||||
strW2=dirtostring(q2)
|
strW2=dirtostring(q2)
|
||||||
strW3=dirtostring(q3)
|
strW3=dirtostring(q3)
|
||||||
strW4=dirtostring(q4)
|
strW4=dirtostring(q4)
|
||||||
strW5=dirtostring(q5)
|
strW5=dirtostring(q5)
|
||||||
strW6=dirtostring(q6)
|
strW6=dirtostring(q6)
|
||||||
strW7=dirtostring(q7)
|
strW7=dirtostring(q7)
|
||||||
strW8=dirtostring(q8)
|
strW8=dirtostring(q8)
|
||||||
strW9=dirtostring(q9)
|
strW9=dirtostring(q9)
|
||||||
strW10=dirtostring(q10)
|
strW10=dirtostring(q10)
|
||||||
|
|
||||||
questring="Walking Que: "
|
questring="Walking Que: "
|
||||||
|
|
||||||
if(strW1!="") {
|
if(strW1!="") {
|
||||||
questring=questring+strW1
|
questring=questring+strW1
|
||||||
}
|
}
|
||||||
if(strW2!="") {
|
if(strW2!="") {
|
||||||
questring=questring+", "+strW2
|
questring=questring+", "+strW2
|
||||||
}
|
}
|
||||||
if(strW3!="") {
|
if(strW3!="") {
|
||||||
questring=questring+", "+strW3
|
questring=questring+", "+strW3
|
||||||
}
|
}
|
||||||
if(strW4!="") {
|
if(strW4!="") {
|
||||||
questring=questring+", "+strW4
|
questring=questring+", "+strW4
|
||||||
}
|
}
|
||||||
if(strW5!="") {
|
if(strW5!="") {
|
||||||
questring=questring+", "+strW5
|
questring=questring+", "+strW5
|
||||||
}
|
}
|
||||||
if(strW6!="") {
|
if(strW6!="") {
|
||||||
questring=questring+", "+strW6
|
questring=questring+", "+strW6
|
||||||
}
|
}
|
||||||
|
|
||||||
if(strW7!="") {
|
if(strW7!="") {
|
||||||
questring=questring+", "+strW7
|
questring=questring+", "+strW7
|
||||||
}
|
}
|
||||||
|
|
||||||
if(strW8!="") {
|
if(strW8!="") {
|
||||||
questring=questring+", "+strW8
|
questring=questring+", "+strW8
|
||||||
}
|
}
|
||||||
|
|
||||||
if(strW9!="") {
|
if(strW9!="") {
|
||||||
questring=questring+", "+strW9
|
questring=questring+", "+strW9
|
||||||
}
|
}
|
||||||
if(strW10!="") {
|
if(strW10!="") {
|
||||||
questring=questring+", "+strW10+"."
|
questring=questring+", "+strW10+"."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
obj = document.getElementById('theQue')
|
||||||
|
obj.innerHTML=questring
|
||||||
obj = document.getElementById('theQue')
|
|
||||||
obj.innerHTML=questring
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function goque() {
|
function goque() {
|
||||||
document.all.TheFrame.src="actions.php?que=" + q1 + "," + q2 + "," + q3 + "," + q4 + "," + q5 + "," + q6 + "," + q7 + "," + q8 + "," + q9 + "," + q10
|
document.all.TheFrame.src="actions.php?que=" + q1 + "," + q2 + "," + q3 + "," + q4 + "," + q5 + "," + q6 + "," + q7 + "," + q8 + "," + q9 + "," + q10
|
||||||
clearque()
|
clearque()
|
||||||
}
|
}
|
||||||
|
|
||||||
function clearque() {
|
function clearque() {
|
||||||
qued=0
|
qued=0
|
||||||
q1=null
|
q1=null
|
||||||
q2=null
|
q2=null
|
||||||
q3=null
|
q3=null
|
||||||
q4=null
|
q4=null
|
||||||
q5=null
|
q5=null
|
||||||
q6=null
|
q6=null
|
||||||
q7=null
|
q7=null
|
||||||
q8=null
|
q8=null
|
||||||
q9=null
|
q9=null
|
||||||
q10=null
|
q10=null
|
||||||
|
|
||||||
obj = document.getElementById('square')
|
obj = document.getElementById('square')
|
||||||
obj.style.top=199
|
obj.style.top=199
|
||||||
obj.style.left=272
|
obj.style.left=272
|
||||||
|
|
||||||
|
|
||||||
drawque()
|
drawque()
|
||||||
}
|
}
|
||||||
|
|
||||||
function tab(id) {
|
function tab(id) {
|
||||||
|
|
||||||
if(id==0) {
|
if(id==0) {
|
||||||
document.all.TheFrame.src="actions.php"
|
document.all.TheFrame.src="actions.php"
|
||||||
show('GUI-walktable')
|
show('GUI-walktable')
|
||||||
hide('GUI-battle');
|
hide('GUI-battle');
|
||||||
} else if(id==1) {
|
} else if(id==1) {
|
||||||
drawQs(0)
|
drawQs(0)
|
||||||
show('GUI-battle')
|
show('GUI-battle')
|
||||||
hide('GUI-walktable')
|
hide('GUI-walktable')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function show(id){
|
function show(id){
|
||||||
if (document.getElementById){
|
if (document.getElementById){
|
||||||
obj = document.getElementById(id);
|
obj = document.getElementById(id);
|
||||||
obj.style.display = "";
|
obj.style.display = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function hide(id){
|
function hide(id){
|
||||||
if (document.getElementById){
|
if (document.getElementById){
|
||||||
obj = document.getElementById(id);
|
obj = document.getElementById(id);
|
||||||
obj.style.display = "none";
|
obj.style.display = "none";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function stats() {
|
function stats() {
|
||||||
document.all.TheFrame.src="actions.php?stats"
|
document.all.TheFrame.src="actions.php?stats"
|
||||||
}
|
}
|
||||||
|
|
||||||
function battle(action) {
|
function battle(action) {
|
||||||
if(action==0) {
|
if(action==0) {
|
||||||
document.all.TheFrame.src="battle.php?act=attack"
|
document.all.TheFrame.src="battle.php?act=attack"
|
||||||
} else if(action==1) {
|
} else if(action==1) {
|
||||||
document.all.TheFrame.src="battle.php?act=run"
|
document.all.TheFrame.src="battle.php?act=run"
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
#overlay {
|
#overlay {
|
||||||
width: 470px;
|
width: 470px;
|
||||||
height: 329px;
|
height: 329px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 38px;
|
top: 38px;
|
||||||
left: 41px;
|
left: 41px;
|
||||||
}
|
}
|
||||||
#square {
|
#square {
|
||||||
width: 15px;
|
width: 15px;
|
||||||
height: 15px;
|
height: 15px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 199px;
|
top: 199px;
|
||||||
left: 272px;
|
left: 272px;
|
||||||
|
}
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div id="overlay" style="display:none;"><image src='media/overlay.png'></div>
|
<div id="overlay" style="display:none;"><image src='media/overlay.png'></div>
|
||||||
|
@ -372,4 +345,3 @@ make_gui($frame, $guif);
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<br><h3>Please note that the experience / level formula has been adjusted, and you may not be the same level as earlier.</h3>
|
|
38
gameold.php
|
@ -9,35 +9,35 @@ x=3
|
||||||
y=5
|
y=5
|
||||||
|
|
||||||
function newframe(x,y) {
|
function newframe(x,y) {
|
||||||
document.all.TheFrame.src="showim.php?x=" + x + "&y=" + y
|
document.all.TheFrame.src="showim.php?x=" + x + "&y=" + y
|
||||||
}
|
}
|
||||||
|
|
||||||
function go(d) {
|
function go(d) {
|
||||||
// 1 for up, 2 for right, 3 for down, 4 for left
|
// 1 for up, 2 for right, 3 for down, 4 for left
|
||||||
|
|
||||||
if(d==1) {
|
if(d==1) {
|
||||||
x=x
|
x=x
|
||||||
y=y-1
|
y=y-1
|
||||||
} else if(d==2) {
|
} else if(d==2) {
|
||||||
x=x+1
|
x=x+1
|
||||||
y=y
|
y=y
|
||||||
} else if(d==3) {
|
} else if(d==3) {
|
||||||
x=x
|
x=x
|
||||||
y=y+1
|
y=y+1
|
||||||
} else if(d==4) {
|
} else if(d==4) {
|
||||||
x=x-1
|
x=x-1
|
||||||
y=y
|
y=y
|
||||||
}
|
}
|
||||||
newframe(x,y)
|
newframe(x,y)
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$frame="<iframe id='TheFrame' src='showim.php?x=3&y=5' frameborder='0' width='470' height='329'></iframe>";
|
$frame="<iframe id='TheFrame' src='showim.php?x=3&y=5' frameborder='0' width='470' height='329'></iframe>";
|
||||||
|
|
||||||
$links="<a href='javascript:go(1);'>Up</a> <br><a href='javascript:go(4);'>Left</a> <a href='javascript:go(2);'>Right</a><br>
|
$links="<a href='javascript:go(1);'>Up</a> <br><a href='javascript:go(4);'>Left</a> <a href='javascript:go(2);'>Right</a><br>
|
||||||
<a href='javascript:go(3);'>Down</a>";
|
<a href='javascript:go(3);'>Down</a>";
|
||||||
|
|
||||||
make_gui($frame, $links);
|
make_gui($frame, $links);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
72
grid.php
|
@ -8,61 +8,53 @@ $black = imageColorAllocate ($im, 0, 0, 0);
|
||||||
|
|
||||||
imageFill($im, 5, 5, $black);
|
imageFill($im, 5, 5, $black);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
include("config.php");
|
include("config.php");
|
||||||
|
|
||||||
function makestatimage($pid) {
|
function makestatimage($pid) {
|
||||||
|
|
||||||
global $con;
|
global $con;
|
||||||
|
|
||||||
$result = mysql_query("SELECT * FROM mrpg_stat WHERE id='$pid'");
|
$result = mysql_query("SELECT * FROM mrpg_stat WHERE id='$pid'");
|
||||||
$row = mysql_fetch_array($result);
|
$row = mysql_fetch_array($result);
|
||||||
|
|
||||||
|
|
||||||
$im=imageCreateTrueColor(470, 329);
|
$im=imageCreateTrueColor(470, 329);
|
||||||
$white=imageColorAllocate ($im, 255, 255, 255);
|
$white=imageColorAllocate ($im, 255, 255, 255);
|
||||||
$red=imageColorAllocate ($im, 255, 0, 0);
|
$red=imageColorAllocate ($im, 255, 0, 0);
|
||||||
$green=imageColorAllocate ($im, 0, 255, 0);
|
$green=imageColorAllocate ($im, 0, 255, 0);
|
||||||
$black = imageColorAllocate ($im, 0, 0, 0);
|
$black = imageColorAllocate ($im, 0, 0, 0);
|
||||||
imageFill($im, 5, 5, $black);
|
imageFill($im, 5, 5, $black);
|
||||||
|
|
||||||
imageString($im, 4, 50, 100, "PP: " . $row['pp'], $white);
|
imageString($im, 4, 50, 100, "PP: " . $row['pp'], $white);
|
||||||
imageString($im, 4, 50, 140, "Offense: " . $row['offense'], $white);
|
imageString($im, 4, 50, 140, "Offense: " . $row['offense'], $white);
|
||||||
imageString($im, 4, 50, 180, "Defense: " . $row['defense'], $white);
|
imageString($im, 4, 50, 180, "Defense: " . $row['defense'], $white);
|
||||||
imageString($im, 4, 50, 220, "Fight: " . $row['fight'], $white);
|
imageString($im, 4, 50, 220, "Fight: " . $row['fight'], $white);
|
||||||
|
|
||||||
imageString($im, 4, 340, 100, "Speed: " . $row['speed'], $white);
|
imageString($im, 4, 340, 100, "Speed: " . $row['speed'], $white);
|
||||||
imageString($im, 4, 340, 140, "Wisdom: " . $row['wisdom'], $white);
|
imageString($im, 4, 340, 140, "Wisdom: " . $row['wisdom'], $white);
|
||||||
imageString($im, 4, 340, 180, "Strength: " . $row['strength'], $white);
|
imageString($im, 4, 340, 180, "Strength: " . $row['strength'], $white);
|
||||||
imageString($im, 4, 340, 220, "Force: " . $row['force'], $white);
|
imageString($im, 4, 340, 220, "Force: " . $row['force'], $white);
|
||||||
|
|
||||||
$barw=round(($row['hp'] / $row['maxhp'])*370);
|
$barw=round(($row['hp'] / $row['maxhp'])*370);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
imageFilledRectangle($im, 50, 30, 420, 70, $red);
|
imageFilledRectangle($im, 50, 30, 420, 70, $red);
|
||||||
imageFilledRectangle($im, 50, 30, 50+$barw, 70, $green);
|
imageFilledRectangle($im, 50, 30, 50+$barw, 70, $green);
|
||||||
imageRectangle($im, 50, 30, 420, 70, $white);
|
imageRectangle($im, 50, 30, 420, 70, $white);
|
||||||
|
|
||||||
imageString($im, 5, 210, 10, "HP: " . $row['hp'], $green);
|
imageString($im, 5, 210, 10, "HP: " . $row['hp'], $green);
|
||||||
|
|
||||||
header('Content-type: image/png');
|
header('Content-type: image/png');
|
||||||
imagePNG($im);
|
imagePNG($im);
|
||||||
imageDestroy($im);
|
imageDestroy($im);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
makestatimage(1);
|
makestatimage(1);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
$background = imageColorAllocate ($im, 255, 255, 255);
|
$background = imageColorAllocate ($im, 255, 255, 255);
|
||||||
$background = imageColorTransparent($im,$background);
|
$background = imageColorTransparent($im,$background);
|
||||||
|
@ -84,16 +76,4 @@ $x=$x+16;
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
7
gui.php
|
@ -1,9 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
function make_gui($t, $b) {
|
function make_gui($t, $b) {
|
||||||
|
echo '<table id="Table_01" width="537" height="594" border="0" cellpadding="0" cellspacing="0">
|
||||||
|
|
||||||
echo '<table id="Table_01" width="537" height="594" border="0" cellpadding="0" cellspacing="0">
|
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="3">
|
<td colspan="3">
|
||||||
<img src="images/gui_01.gif" width="537" height="30" alt=""></td>
|
<img src="images/gui_01.gif" width="537" height="30" alt=""></td>
|
||||||
|
@ -32,5 +30,4 @@ echo '<table id="Table_01" width="537" height="594" border="0" cellpadding="0" c
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
?>
|
|
||||||
|
|
13
hs.php
|
@ -6,23 +6,18 @@ include("includes/experience.php");
|
||||||
|
|
||||||
$sql=mysql_query("SELECT * FROM mrpg_users ORDER BY level DESC LIMIT 20");
|
$sql=mysql_query("SELECT * FROM mrpg_users ORDER BY level DESC LIMIT 20");
|
||||||
while($row=mysql_fetch_array($sql)) {
|
while($row=mysql_fetch_array($sql)) {
|
||||||
|
$hs[]=array("name"=>$row['name'], "exp"=>$row['level']);
|
||||||
$hs[]=array("name"=>$row['name'], "exp"=>$row['level']);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//print_r($hs);
|
//print_r($hs);
|
||||||
|
|
||||||
|
|
||||||
echo "<table border='1' cellspacing='0' class='hs'><tr><td colspan='4' align='center'> Earthbound Highscores </td></tr><tr><td>#</td><td>Name</td><td>EXP</td><td>Level</td></tr>";
|
echo "<table border='1' cellspacing='0' class='hs'><tr><td colspan='4' align='center'> Earthbound Highscores </td></tr><tr><td>#</td><td>Name</td><td>EXP</td><td>Level</td></tr>";
|
||||||
|
|
||||||
$i=1;
|
$i=1;
|
||||||
foreach($hs as $value) {
|
foreach($hs as $value) {
|
||||||
|
echo "<tr><td> $i: </td><td> " . ucfirst($value['name']) . " </td><td> " . $value['exp'] . " </td><td> " . abs(level(2, $value['exp'])) . " </td></tr>";
|
||||||
echo "<tr><td> $i: </td><td> " . ucfirst($value['name']) . " </td><td> " . $value['exp'] . " </td><td> " . abs(level(2, $value['exp'])) . " </td></tr>";
|
$i++;
|
||||||
|
|
||||||
$i++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "</table>";
|
echo "</table>";
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -3,95 +3,92 @@
|
||||||
//include("../config.php");
|
//include("../config.php");
|
||||||
|
|
||||||
function bimage($pid, $t1, $t2, $t3, $t4, $dead) {
|
function bimage($pid, $t1, $t2, $t3, $t4, $dead) {
|
||||||
global $con;
|
global $con;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
Usage: bimage(PlayerID, "line1", "line2", "line3", "line4");
|
Usage: bimage(PlayerID, "line1", "line2", "line3", "line4");
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
////////Create User HP bar
|
////////Create User HP bar
|
||||||
$result = mysql_query("SELECT * FROM mrpg_stat WHERE id='$pid'");
|
$result = mysql_query("SELECT * FROM mrpg_stat WHERE id='$pid'");
|
||||||
$row = mysql_fetch_array($result);
|
$row = mysql_fetch_array($result);
|
||||||
|
|
||||||
$im=imageCreateTrueColor(470, 329);
|
$im=imageCreateTrueColor(470, 329);
|
||||||
$white=imageColorAllocate ($im, 255, 255, 255);
|
$white=imageColorAllocate ($im, 255, 255, 255);
|
||||||
$red=imageColorAllocate ($im, 255, 0, 0);
|
$red=imageColorAllocate ($im, 255, 0, 0);
|
||||||
$green=imageColorAllocate ($im, 0, 255, 0);
|
$green=imageColorAllocate ($im, 0, 255, 0);
|
||||||
$black = imageColorAllocate ($im, 0, 0, 0);
|
$black = imageColorAllocate ($im, 0, 0, 0);
|
||||||
imageFill($im, 5, 5, $black);
|
imageFill($im, 5, 5, $black);
|
||||||
|
|
||||||
if($dead==true) {
|
if($dead==true) {
|
||||||
$row['hp']=0;
|
$row['hp']=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
$barw=round(($row['hp'] / $row['maxhp'])*370);
|
$barw=round(($row['hp'] / $row['maxhp'])*370);
|
||||||
|
|
||||||
imageFilledRectangle($im, 50, 280, 420, 300, $red);
|
imageFilledRectangle($im, 50, 280, 420, 300, $red);
|
||||||
imageFilledRectangle($im, 50, 280, 50+$barw, 300, $green);
|
imageFilledRectangle($im, 50, 280, 50+$barw, 300, $green);
|
||||||
imageRectangle($im, 50, 280, 420, 300, $white);
|
imageRectangle($im, 50, 280, 420, 300, $white);
|
||||||
imageString($im, 5, 175, 282, "Your HP: " . $row['hp'] . "/" . $row['maxhp'], $black);
|
imageString($im, 5, 175, 282, "Your HP: " . $row['hp'] . "/" . $row['maxhp'], $black);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
////////Create enemy HP bar
|
////////Create enemy HP bar
|
||||||
$result = mysql_query("SELECT * FROM mrpg_battles WHERE id='$pid'");
|
$result = mysql_query("SELECT * FROM mrpg_battles WHERE id='$pid'");
|
||||||
$row = mysql_fetch_array($result);
|
$row = mysql_fetch_array($result);
|
||||||
$enemyid=$row['enemy'];
|
$enemyid=$row['enemy'];
|
||||||
$enemyhp=$row['enemyhp'];
|
$enemyhp=$row['enemyhp'];
|
||||||
$result = mysql_query("SELECT * FROM mrpg_monsters WHERE id='$enemyid'");
|
$result = mysql_query("SELECT * FROM mrpg_monsters WHERE id='$enemyid'");
|
||||||
$row = mysql_fetch_array($result);
|
$row = mysql_fetch_array($result);
|
||||||
if($row!="") {
|
if($row!="") {
|
||||||
|
|
||||||
$enemyimage=$row['image'];
|
$enemyimage=$row['image'];
|
||||||
$enemymaxhp=$row['hp'];
|
$enemymaxhp=$row['hp'];
|
||||||
$barw=round(($enemyhp / $enemymaxhp)*370);
|
$barw=round(($enemyhp / $enemymaxhp)*370);
|
||||||
imageFilledRectangle($im, 50, 20, 420, 40, $red);
|
imageFilledRectangle($im, 50, 20, 420, 40, $red);
|
||||||
imageFilledRectangle($im, 50, 20, 50+$barw, 40, $green);
|
imageFilledRectangle($im, 50, 20, 50+$barw, 40, $green);
|
||||||
imageRectangle($im, 50, 20, 420, 40, $white);
|
imageRectangle($im, 50, 20, 420, 40, $white);
|
||||||
imageString($im, 5, 175, 22, "Enemy HP: " . $enemyhp . "/" . $enemymaxhp, $black);
|
imageString($im, 5, 175, 22, "Enemy HP: " . $enemyhp . "/" . $enemymaxhp, $black);
|
||||||
|
|
||||||
|
|
||||||
///////////Enemies image!
|
///////////Enemies image!
|
||||||
|
|
||||||
$igstr="images/monsters/$enemyimage";
|
$igstr="images/monsters/$enemyimage";
|
||||||
|
|
||||||
|
|
||||||
$enemyimage=imageCreateFromPNG($igstr);
|
$enemyimage=imageCreateFromPNG($igstr);
|
||||||
|
|
||||||
$iminfo=getImageSize($igstr);
|
$iminfo=getImageSize($igstr);
|
||||||
|
|
||||||
$posX=235-(round($iminfo[0]/2));
|
$posX=235-(round($iminfo[0]/2));
|
||||||
|
|
||||||
$background = imageColorAllocate ($enemyimage, 0xFF, 0, 0xFF);
|
$background = imageColorAllocate ($enemyimage, 0xFF, 0, 0xFF);
|
||||||
$background = imageColorTransparent($enemyimage, $background);
|
$background = imageColorTransparent($enemyimage, $background);
|
||||||
|
|
||||||
imageCopyMerge($im, $enemyimage, $posX, 70, 0, 0, 100, 100,100);
|
imageCopyMerge($im, $enemyimage, $posX, 70, 0, 0, 100, 100,100);
|
||||||
}
|
}
|
||||||
|
|
||||||
$tpos1=235-(round(strlen($t1)/2)*9);
|
$tpos1=235-(round(strlen($t1)/2)*9);
|
||||||
imageString($im,5, $tpos1, 180, $t1, $white);
|
imageString($im,5, $tpos1, 180, $t1, $white);
|
||||||
|
|
||||||
$tpos2=235-(round(strlen($t2)/2)*9);
|
$tpos2=235-(round(strlen($t2)/2)*9);
|
||||||
imageString($im,5, $tpos2, 200, $t2, $white);
|
imageString($im,5, $tpos2, 200, $t2, $white);
|
||||||
|
|
||||||
$tpos3=235-(round(strlen($t3)/2)*9);
|
$tpos3=235-(round(strlen($t3)/2)*9);
|
||||||
imageString($im,5, $tpos3, 220, $t3, $white);
|
imageString($im,5, $tpos3, 220, $t3, $white);
|
||||||
|
|
||||||
$tpos4=235-(round(strlen($t4)/2)*9);
|
$tpos4=235-(round(strlen($t4)/2)*9);
|
||||||
imageString($im,5, $tpos4, 240, $t4, $white);
|
imageString($im,5, $tpos4, 240, $t4, $white);
|
||||||
|
|
||||||
|
|
||||||
header('Content-type: image/png');
|
header('Content-type: image/png');
|
||||||
imagePNG($im);
|
imagePNG($im);
|
||||||
imageDestroy($enemyimage);
|
imageDestroy($enemyimage);
|
||||||
imageDestroy($im);
|
imageDestroy($im);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
|
@ -6,28 +6,23 @@ Finds experience from level, and vice-versa
|
||||||
|
|
||||||
|
|
||||||
function level($mode,$input) {
|
function level($mode,$input) {
|
||||||
|
if($mode==1) {
|
||||||
|
$a=pow($input, 2) * 14;
|
||||||
|
return $a;
|
||||||
|
}
|
||||||
|
|
||||||
if($mode==1) {
|
if($mode==2) {
|
||||||
$a=pow($input, 2) * 14;
|
|
||||||
return $a;
|
|
||||||
}
|
|
||||||
|
|
||||||
if($mode==2) {
|
$val=$input/14;
|
||||||
|
|
||||||
|
$val=sqrt($val);
|
||||||
|
|
||||||
$val=$input/14;
|
$val=round($val-.499);
|
||||||
|
|
||||||
$val=sqrt($val);
|
//$val=$val-.499;
|
||||||
|
|
||||||
$val=round($val-.499);
|
|
||||||
|
|
||||||
//$val=$val-.499;
|
|
||||||
|
|
||||||
return(abs($val));
|
|
||||||
|
|
||||||
|
return(abs($val));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
?>
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
|
@ -4,52 +4,52 @@ include("config.php");
|
||||||
include("includes/experience.php");
|
include("includes/experience.php");
|
||||||
|
|
||||||
function makestatimage($pid) {
|
function makestatimage($pid) {
|
||||||
|
global $con;
|
||||||
|
|
||||||
global $con;
|
$result = mysql_query("SELECT * FROM mrpg_stat WHERE id='$pid'");
|
||||||
|
$row = mysql_fetch_array($result);
|
||||||
|
|
||||||
$result = mysql_query("SELECT * FROM mrpg_stat WHERE id='$pid'");
|
$result = mysql_query("SELECT * FROM mrpg_users WHERE id='$pid'");
|
||||||
$row = mysql_fetch_array($result);
|
$exp = mysql_fetch_array($result);
|
||||||
|
|
||||||
$result = mysql_query("SELECT * FROM mrpg_users WHERE id='$pid'");
|
|
||||||
$exp = mysql_fetch_array($result);
|
|
||||||
|
|
||||||
|
|
||||||
$im=imageCreateTrueColor(450, 309);
|
$im=imageCreateTrueColor(450, 309);
|
||||||
$white=imageColorAllocate ($im, 255, 255, 255);
|
$white=imageColorAllocate ($im, 255, 255, 255);
|
||||||
$red=imageColorAllocate ($im, 255, 0, 0);
|
$red=imageColorAllocate ($im, 255, 0, 0);
|
||||||
$green=imageColorAllocate ($im, 0, 255, 0);
|
$green=imageColorAllocate ($im, 0, 255, 0);
|
||||||
$black = imageColorAllocate ($im, 0, 0, 0);
|
$black = imageColorAllocate ($im, 0, 0, 0);
|
||||||
imageFill($im, 5, 5, $black);
|
imageFill($im, 5, 5, $black);
|
||||||
|
|
||||||
imageString($im, 4, 50, 100, "PP: " . $row['pp'], $white);
|
imageString($im, 4, 50, 100, "PP: " . $row['pp'], $white);
|
||||||
imageString($im, 4, 50, 140, "Offense: " . $row['offense'], $white);
|
imageString($im, 4, 50, 140, "Offense: " . $row['offense'], $white);
|
||||||
imageString($im, 4, 50, 180, "Defense: " . $row['defense'], $white);
|
imageString($im, 4, 50, 180, "Defense: " . $row['defense'], $white);
|
||||||
imageString($im, 4, 50, 220, "Fight: " . $row['fight'], $white);
|
imageString($im, 4, 50, 220, "Fight: " . $row['fight'], $white);
|
||||||
|
|
||||||
imageString($im, 4, 340, 100, "Speed: " . $row['speed'], $white);
|
imageString($im, 4, 340, 100, "Speed: " . $row['speed'], $white);
|
||||||
imageString($im, 4, 340, 140, "Wisdom: " . $row['wisdom'], $white);
|
imageString($im, 4, 340, 140, "Wisdom: " . $row['wisdom'], $white);
|
||||||
imageString($im, 4, 340, 180, "Strength: " . $row['strength'], $white);
|
imageString($im, 4, 340, 180, "Strength: " . $row['strength'], $white);
|
||||||
imageString($im, 4, 340, 220, "Force: " . $row['force'], $white);
|
imageString($im, 4, 340, 220, "Force: " . $row['force'], $white);
|
||||||
|
|
||||||
|
|
||||||
imageString($im, 5, 200, 260, "Level: " . level(2, $exp['level']), $white);
|
imageString($im, 5, 200, 260, "Level: " . level(2, $exp['level']), $white);
|
||||||
|
|
||||||
imageString($im, 5, 200, 275, "EXP: " . $exp['level'], $white);
|
imageString($im, 5, 200, 275, "EXP: " . $exp['level'], $white);
|
||||||
|
|
||||||
$barw=round(($row['hp'] / $row['maxhp'])*370);
|
$barw=round(($row['hp'] / $row['maxhp'])*370);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
imageFilledRectangle($im, 50, 30, 420, 70, $red);
|
imageFilledRectangle($im, 50, 30, 420, 70, $red);
|
||||||
imageFilledRectangle($im, 50, 30, 50+$barw, 70, $green);
|
imageFilledRectangle($im, 50, 30, 50+$barw, 70, $green);
|
||||||
imageRectangle($im, 50, 30, 420, 70, $white);
|
imageRectangle($im, 50, 30, 420, 70, $white);
|
||||||
|
|
||||||
imageString($im, 5, 190, 10, "HP: " . $row['hp'] . "/" . $row['maxhp'], $green);
|
imageString($im, 5, 190, 10, "HP: " . $row['hp'] . "/" . $row['maxhp'], $green);
|
||||||
|
|
||||||
header('Content-type: image/png');
|
header('Content-type: image/png');
|
||||||
imagePNG($im);
|
imagePNG($im);
|
||||||
imageDestroy($im);
|
echo "."; exit;
|
||||||
|
imageDestroy($im);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
90
index.php
|
@ -2,33 +2,24 @@
|
||||||
|
|
||||||
include("config.php");
|
include("config.php");
|
||||||
|
|
||||||
if($_POST['u']!="")
|
if($_POST['u']!="") {
|
||||||
{
|
$u=addslashes($_POST['u']);
|
||||||
$u=addslashes($_POST['u']);
|
$p=addslashes($_POST['p']);
|
||||||
$p=addslashes($_POST['p']);
|
|
||||||
|
|
||||||
if($u!="" && $p!="")
|
if($u!="" && $p!="") {
|
||||||
{
|
$sql="SELECT * FROM mrpg_users WHERE name='$u'";
|
||||||
$sql="SELECT * FROM mrpg_users WHERE name='$u'";
|
//echo $sql;
|
||||||
//echo $sql;
|
$result = mysql_query($sql);
|
||||||
$result = mysql_query($sql);
|
while($row = mysql_fetch_array($result)) {
|
||||||
while($row = mysql_fetch_array($result))
|
if($row['password']==$p) {
|
||||||
{
|
setcookie("mrpg-ethbnd", strtolower($u . "@seperator@" . $p), time()+525600);
|
||||||
if($row['password']==$p)
|
header("Location: game.php");
|
||||||
{
|
exit;
|
||||||
|
} else {
|
||||||
setcookie("mrpg-ethbnd", strtolower($u . "@seperator@" . $p), time()+525600);
|
$message="Invalid username or password.";
|
||||||
header("Location: game.php");
|
}
|
||||||
exit;
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
$message="Invalid username or password.";
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -37,7 +28,7 @@ $message="Invalid username or password.";
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||||
<title>EarthBound - Online RPG Game by Mop</title>
|
<title>EarthBound - Online RPG Game by Mop</title>
|
||||||
<meta name="#">
|
<meta name="#">
|
||||||
<meta name="Keywords" content="#">
|
<meta name="Keywords" content="#">
|
||||||
<meta name="Copyright" content="">
|
<meta name="Copyright" content="">
|
||||||
<meta name="Language" content="English">
|
<meta name="Language" content="English">
|
||||||
|
@ -48,22 +39,15 @@ $message="Invalid username or password.";
|
||||||
|
|
||||||
<br></br>
|
<br></br>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<table align="center" height=100 width="740" cellspacing="0" border="0" cellpadding="0" class="table2">
|
<table align="center" height=100 width="740" cellspacing="0" border="0" cellpadding="0" class="table2">
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
<td valign=center width="241" background="images/sidediv.jpg"><center>
|
<td valign=center width="241" background="images/sidediv.jpg"><center>
|
||||||
<img src="images/home_icon.jpg"><a href="index.php" class="menulink" alt="Home"> Home</a>
|
<img src="images/home_icon.jpg"><a href="index.php" class="menulink" alt="Home"> Home</a>
|
||||||
<img src="images/about_icon.jpg"><a href="?login" class="menulink" alt="about"> Play Now!</a>
|
<img src="images/about_icon.jpg"><a href="?login" class="menulink" alt="about"> Play Now!</a>
|
||||||
<img src="images/guestbook_icon.jpg"><a href="?register" class="menulink" alt="register"> Register</a><br><br>
|
<img src="images/guestbook_icon.jpg"><a href="?register" class="menulink" alt="register"> Register</a><br><br>
|
||||||
<img src="images/about_icon.jpg"><a href="?highscores" class="menulink" alt="Top20"> Top 20</a>
|
<img src="images/about_icon.jpg"><a href="?highscores" class="menulink" alt="Top20"> Top 20</a>
|
||||||
<img src="images/guestbook_icon.jpg"><a href="forum/" class="menulink" alt="forum">Forum</a>
|
<img src="images/guestbook_icon.jpg"><a href="forum/" class="menulink" alt="forum">Forum</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</td><td align="right" width="499" background="images/right_side.jpg">
|
</td><td align="right" width="499" background="images/right_side.jpg">
|
||||||
|
@ -76,7 +60,7 @@ $message="Invalid username or password.";
|
||||||
<table align="center" height=360 width="740" cellspacing="0" border="0" cellpadding="0" class="table3">
|
<table align="center" height=360 width="740" cellspacing="0" border="0" cellpadding="0" class="table3">
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left" width="239" bgcolor="#B3B3B3">
|
<td align="left" width="239" bgcolor="#B3B3B3">
|
||||||
|
|
||||||
|
|
||||||
<table align="center" height=150 width="200" cellspacing="0" cellpadding="0">
|
<table align="center" height=150 width="200" cellspacing="0" cellpadding="0">
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -96,9 +80,6 @@ $message="Invalid username or password.";
|
||||||
<hr width="180">
|
<hr width="180">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div align="right" class="style1">Dec 1st 2007</div>
|
<div align="right" class="style1">Dec 1st 2007</div>
|
||||||
|
|
||||||
<div align="left" class="style2"><img src="images/smallarrow_icon.jpg"> Open!</div>
|
<div align="left" class="style2"><img src="images/smallarrow_icon.jpg"> Open!</div>
|
||||||
|
@ -110,27 +91,20 @@ $message="Invalid username or password.";
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<td align="center" width="1" bgcolor="#000000">
|
<td align="center" width="1" bgcolor="#000000">
|
||||||
<td align="center" width="499" bgcolor="#5A6674">
|
<td align="center" width="499" bgcolor="#5A6674">
|
||||||
|
|
||||||
<table align="center" height=300 width="435" cellspacing="0" cellpadding="15" class="table2">
|
<table align="center" height=300 width="435" cellspacing="0" cellpadding="15" class="table2">
|
||||||
<tr>
|
<tr>
|
||||||
<td valign="top" align="center"><?php
|
<td valign="top" align="center"><?php
|
||||||
if($_SERVER['QUERY_STRING']=="register") {
|
if($_SERVER['QUERY_STRING']=="register") {
|
||||||
include("register.php");
|
include("register.php");
|
||||||
} else if($_SERVER['QUERY_STRING']=="login") {
|
} else if($_SERVER['QUERY_STRING']=="login") {
|
||||||
|
echo "<form action='index.php?login' method='post'>$message<table border='0' cellpadding='1' cellspacing='0' class='style1'><tr><td>Username:</td><td><input type='text' name='u' value='$u'></td></tr><tr><td>Password</td><td><input type='password' name='p' value='$p'></td></tr><tr><td align='center' colspan='2'><input type='submit' value='Login'></td></tr></table></form>";
|
||||||
echo "<form action='index.php?login' method='post'>$message<table border='0' cellpadding='1' cellspacing='0' class='style1'><tr><td>Username:</td><td><input type='text' name='u' value='$u'></td></tr><tr><td>Password</td><td><input type='password' name='p' value='$p'></td></tr><tr><td align='center' colspan='2'><input type='submit' value='Login'></td></tr></table></form>";
|
} else if($_SERVER['QUERY_STRING']=="highscores") {
|
||||||
|
include("hs.php");
|
||||||
|
} else {
|
||||||
} else if($_SERVER['QUERY_STRING']=="highscores") {
|
echo '<div class="style4"><b>EarthBound Welcomes You</b></div>
|
||||||
|
|
||||||
include("hs.php");
|
|
||||||
|
|
||||||
} else {
|
|
||||||
echo '<div class="style4"><b>EarthBound Welcomes You</b></div>
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<div class="style7"> </div>
|
<div class="style7"> </div>
|
||||||
|
@ -170,7 +144,7 @@ The game is now open! Go play!
|
||||||
<div align="left" class="style3">
|
<div align="left" class="style3">
|
||||||
|
|
||||||
<form width:5em name="input" action="email.cgi" method="get">
|
<form width:5em name="input" action="email.cgi" method="get">
|
||||||
E-mail:
|
E-mail:
|
||||||
<input type="text" size="10" name="user">
|
<input type="text" size="10" name="user">
|
||||||
<input type="submit" class="submit" value="Submit">
|
<input type="submit" class="submit" value="Submit">
|
||||||
</form>-->
|
</form>-->
|
||||||
|
@ -229,4 +203,4 @@ Players Online: <?php include("stats.php"); ?>
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -0,0 +1,73 @@
|
||||||
|
CREATE DATABASE mop_rpg;
|
||||||
|
|
||||||
|
USE mop_rpg;
|
||||||
|
|
||||||
|
CREATE TABLE `mrpg_battles` (
|
||||||
|
`id` text,
|
||||||
|
`use` text,
|
||||||
|
`enemy` text,
|
||||||
|
`enemyhp` text,
|
||||||
|
`other` text
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
|
|
||||||
|
CREATE TABLE `mrpg_confirm` (
|
||||||
|
`id` int(11) DEFAULT NULL,
|
||||||
|
`q` text,
|
||||||
|
`yesx` int(11) DEFAULT NULL,
|
||||||
|
`yesy` int(11) DEFAULT NULL,
|
||||||
|
`nox` int(11) DEFAULT NULL,
|
||||||
|
`noy` int(11) DEFAULT NULL
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
|
|
||||||
|
CREATE TABLE `mrpg_message` (
|
||||||
|
`id` int(11) DEFAULT NULL,
|
||||||
|
`q` text,
|
||||||
|
`x` int(11) DEFAULT NULL,
|
||||||
|
`y` int(11) DEFAULT NULL
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
|
|
||||||
|
CREATE TABLE `mrpg_monsters` (
|
||||||
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
`image` text,
|
||||||
|
`hp` int(11) DEFAULT NULL,
|
||||||
|
`name` text,
|
||||||
|
`diemsg` text,
|
||||||
|
`expgive` int(11) DEFAULT NULL,
|
||||||
|
`power` int(11) DEFAULT NULL,
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
|
||||||
|
|
||||||
|
INSERT INTO `mrpg_monsters` VALUES (1,'rat.png',30,'Rat','rat died',10,0);
|
||||||
|
INSERT INTO `mrpg_monsters` VALUES (2,'chef_1.png',30,'Chef','chef screamed "profit has a tiny dick" and died',20,2);
|
||||||
|
INSERT INTO `mrpg_monsters` VALUES (3,'monster.png',30,'Monster','monster died',30,5);
|
||||||
|
|
||||||
|
CREATE TABLE `mrpg_stat` (
|
||||||
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
`hp` int(11) DEFAULT NULL,
|
||||||
|
`maxhp` int(11) DEFAULT NULL,
|
||||||
|
`pp` int(11) DEFAULT NULL,
|
||||||
|
`offense` int(11) DEFAULT NULL,
|
||||||
|
`defense` int(11) DEFAULT NULL,
|
||||||
|
`fight` int(11) DEFAULT NULL,
|
||||||
|
`speed` int(11) DEFAULT NULL,
|
||||||
|
`wisdom` int(11) DEFAULT NULL,
|
||||||
|
`strength` int(11) DEFAULT NULL,
|
||||||
|
`force` int(11) DEFAULT NULL,
|
||||||
|
`poison` int(11) DEFAULT NULL,
|
||||||
|
`other` int(11) DEFAULT NULL,
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
|
||||||
|
|
||||||
|
CREATE TABLE `mrpg_users` (
|
||||||
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
`name` text,
|
||||||
|
`password` text,
|
||||||
|
`x` int(11) DEFAULT NULL,
|
||||||
|
`y` int(11) DEFAULT NULL,
|
||||||
|
`dir` text,
|
||||||
|
`inventory` text,
|
||||||
|
`level` int(11) DEFAULT NULL,
|
||||||
|
`lastact` text,
|
||||||
|
`mode` text,
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
|