forked from sdevaney/Deltoria
-
Notifications
You must be signed in to change notification settings - Fork 0
/
inventory.php
51 lines (43 loc) · 1.92 KB
/
inventory.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?
/**************************************************************************************
* Deltoria.com *
* (c)1999-2010 Scott Devaney, All rights reserved *
* Distribution Prohibited *
**************************************************************************************/
// Our player inventory page
########################
## Make us our connection
global $db;
include ("./system/top.php");
include ("./system/move.php");
// If in battle cant go to this page
if (Check_Battle($PlayerData) == 1) {
print "<TABLE BORDER=0 class=box1>";
print "<tr><td class=Header colspan=2>Your being attacked!</td></tr>";
$sth = mysql_query("select Image,MB.Name,Level from monster as M left join monster_base as MB on MB.MonsterID=M.MonsterID left join tiledata as TD on TD.TileID=MB.TileID where X=$PlayerData->X and Y=$PlayerData->Y and MapID=$PlayerData->MapID and HealthCur > 0");
print mysql_error();
while (list($M_Image,$M_Name,$M_Level) = mysql_fetch_row($sth)) {
print "<TR><TD WIDTH=50>";
print "<IMG WIDTH=30 HEIGHT=30 SRC=/images/tiles/$M_Image>";
print "</TD><TD VALIGN=TOP>$M_Name<BR><B>Level:</B> ".intval($M_Level)."</TD></TR>";
}
print "<tr><td colspan=2 class=Menu><A HREF=battle.php?RD=".rand(1,1000000).">You're being attacked! Click here to go to the battle page.</a></td></tr>";
print "</table>";
print "<P>";
include("./system/bottom.php");
exit;
}
print "<table border=0 class=pageContainer>";
print "<tr><td class=pageCell valign=top>";
include ("./system/inventory.php");
CharacterInfo("Player");
print "</td><td class=pageCell valign=top>";
// include ("./system/buyup.php");
if ($read == 1)
{
include ("./system/readbook.php");
}
print "</td></tr>";
print "</table>";
include ("./system/bottom.php");
?>