forked from sdevaney/Deltoria
-
Notifications
You must be signed in to change notification settings - Fork 0
/
skillpage.php
44 lines (37 loc) · 1.78 KB
/
skillpage.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
<?
/**************************************************************************************
* Deltoria.com *
* (c)1999-2010 Scott Devaney, All rights reserved *
* Distribution Prohibited *
**************************************************************************************/
// Skill page info
########################
## Make us our connection
global $db, $CoreUserData;;
include ("./system/top.php");
include ("./system/move.php");
// If in battle cant go here
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/skillpage.php");
print "</td><td class=pageCell valign=top>";
print "</td></tr>";
print "</table>";
include ("./system/bottom.php");
?>