Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php include "config/sitedb.php" ?>
- <?php
- $connect = mysql_connect($host,$user,$pass) or die(mysql_error());
- mysql_select_db($db, $connect);
- if(isset($_GET['armor_type']) && isset($_GET['armor'])) {
- $armor_type = mysql_real_escape_string($_GET['armor_type']);
- $armor = mysql_real_escape_string($_GET['armor']);
- $sql = "SELECT * FROM armor WHERE name = '$armor'";
- $res = mysql_query($sql) or die(mysql_error());
- $details = mysql_fetch_assoc($res);
- $sql2 = "SELECT * FROM droplist WHERE item_name = '$armor' ORDER by chance DESC";
- $res2 = mysql_query($sql2) or die(mysql_error());
- $details2 = mysql_fetch_assoc($res2);
- $query = ("SELECT item_name FROM character_items WHERE item_name = '$armor'");
- $link = mysql_query($query);
- $i=0;
- while ($row=mysql_fetch_row($link))
- {
- $i++;
- }
- $query2 = ("SELECT item_name FROM character_warehouse WHERE item_name = '$armor'");
- $link2 = mysql_query($query2);
- while ($row=mysql_fetch_row($link2))
- {
- $i++;
- }
- $query3 = ("SELECT item_name FROM character_elf_warehouse WHERE item_name = '$armor'");
- $link3 = mysql_query($query3);
- while ($row=mysql_fetch_row($link3))
- {
- $i++;
- }
- $query4 = ("SELECT item_name FROM clan_warehouse WHERE item_name = '$armor'");
- $link4 = mysql_query($query4);
- while ($row=mysql_fetch_row($link4))
- {
- $i++;
- }
- echo "<center><font face=\"verdana\" size=\"4\" color=\"#00ccff\">".$details['name']."</font></center>";
- echo "<br>";
- echo "<table align=\"center\" cellpadding=\"2\" cellspacing=\"2\" border=\"2\">";
- echo "<th width=\"82\" height=\"82\"><center><img width=\"77\" height=\"77\" src=\"scripts/acm/inv_gfx/".$details['invgfx'].".png\"/></center></hd>";
- echo "</table>";
- echo "<br>";
- echo "<center><font face=\"verdana\" color=\"red\">Server Count: (".$i.")</font></center>";
- echo "<br>";
- echo "<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">";
- if ($details['use_royal'] == "1")
- $royal = " Royal ";
- if ($details['use_knight'] == "1")
- $knight = " Knight ";
- if ($details['use_elf'] == "1")
- $elf = " Elf ";
- if ($details['use_mage'] == "1")
- $mage = " Mage ";
- if ($details['use_darkelf'] == "1")
- $de = " Dark Elf ";
- if ($details['use_dragonknight'] == "1")
- $dk = " Dragonknight ";
- if ($details['use_illusionist'] == "1")
- $illusionist = " Illusionist ";
- echo "<tr><td width=\"50\"><font color=\"green\">Usable: </font></td><td width=\"180\"><font color=\"#00ccff\">".$royal.$knight.$elf.$mage.$de.$dk.$illusionist."</font></td></tr>";
- echo "</table>";
- echo "<br>";
- echo "<table align=\"center\" cellpadding=\"2\" cellspacing=\"2\" border=\"2\">";
- echo "<tr><td width=\"180\"><font color=\"orange\">Armor Class</font></td><td width=\"180\"><font color=\"black\">".$details['ac']."</font></td></tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">Safe</font></td><td width=\"180\"><font color=\"black\">".$details['safenchant']."</font></td></tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">Sockets</font></td><td width=\"180\"><font color=\"black\">".$details['maxrunes']."</font></td></tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">Type</font></td><td width=\"180\"><font color=\"black\">".$armor_type."</font></td></tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">Material</font></td><td width=\"180\"><font color=\"black\">".$details['material']."</font></td></tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">Weight</font></td><td width=\"180\"><font color=\"black\">".$details['weight']."</font></td></tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">Required Level</font></td><td width=\"180\"><font color=\"black\">".$details['min_lvl']."</font></td></tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">Required PvP Level</font></td><td width=\"180\"><font color=\"black\">".$details['minpvplevel']."</font></td></tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">Bow Hit</font></td><td width=\"180\"><font color=\"black\">".$details['bow_hit_modifier']."</font></td></tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">Bow Damage</font></td><td width=\"180\"><font color=\"black\">".$details['bow_dmg_modifier']."</font></td></tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">Weapon Hit</font></td><td width=\"180\"><font color=\"black\">".$details['hit_modifier']."</font></td></tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">Weapon Damage</font></td><td width=\"180\"><font color=\"black\">".$details['dmg_modifier']."</font></td></tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">Damage Reduction</font></td><td width=\"180\"><font color=\"black\">".$details['damage_reduction']."</font></td></tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">Weight Reduction</font></td><td width=\"180\"><font color=\"black\">".$details['weight_reduction']."</font></td></tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">Magic Defense</font></td><td width=\"180\"><font color=\"black\">".$details['m_def']."</font></td></tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">Fire Resistance</font></td><td width=\"180\"><font color=\"black\">".$details['defense_fire']."</font></td></tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">Water Resistance</font></td><td width=\"180\"><font color=\"black\">".$details['defense_water']."</font></td></tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">Wind Resistance</font></td><td width=\"180\"><font color=\"black\">".$details['defense_wind']."</font></td></tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">Earth Resistance</font></td><td width=\"180\"><font color=\"black\">".$details['defense_earth']."</font></td></tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">Stun Resistance</font></td><td width=\"180\"><font color=\"black\">".$details['regist_stun']."</font></td></tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">Stone Resistance</font></td><td width=\"180\"><font color=\"black\">".$details['regist_stone']."</font></td></tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">Sleep Resistance</font></td><td width=\"180\"><font color=\"black\">".$details['regist_sleep']."</font></td></tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">Freeze Resistance</font></td><td width=\"180\"><font color=\"black\">".$details['regist_freeze']."</font></td></tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">Sustain Resistance</font></td><td width=\"180\"><font color=\"black\">".$details['regist_sustain']."</font></td></tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">Blind Resistance</font></td><td width=\"180\"><font color=\"black\">".$details['regist_blind']."</font></td></tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">STR</font></td><td width=\"180\"><font color=\"black\">".$details['add_str']."</font></td> </tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">INT</font></td><td width=\"180\"><font color=\"black\">".$details['add_int']."</font></td> </tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">DEX</font></td><td width=\"180\"><font color=\"black\">".$details['add_dex']."</font></td> </tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">CON</font></td><td width=\"180\"><font color=\"black\">".$details['add_con']."</font></td> </tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">WIS</font></td><td width=\"180\"><font color=\"black\">".$details['add_wis']."</font></td> </tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">CHA</font></td><td width=\"180\"><font color=\"black\">".$details['add_cha']."</font></td> </tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">Spellpower</font></td><td width=\"180\"><font color=\"black\">".$details['add_sp']."</font></td> </tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">HP</font></td><td width=\"180\"><font color=\"black\">".$details['add_hp']."</font></td> </tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">HPR</font></td><td width=\"180\"><font color=\"black\">".$details['add_hpr']."</font></td> </tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">MP</font></td><td width=\"180\"><font color=\"black\">".$details['add_mp']."</font></td> </tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">MPR</font></td><td width=\"180\"><font color=\"black\">".$details['add_mpr']."</font></td> </tr>";
- if ($details['hpdrain'] == "1")
- $hpdrain = "Y";
- else
- $hpdrain = "N";
- if ($details['mpdrain'] == "1")
- $mpdrain = "Y";
- else
- $mpdrain = "N";
- if ($details['canbedmg'] == "1")
- $breakable = "Y";
- else
- $breakable = "N";
- if ($details['trade'] == "1")
- $tradeable = "Y";
- else
- $tradeable = "N";
- if ($details['cant_delete'] == "0")
- $deleteable = "Y";
- else
- $deleteable = "N";
- if ($details['haste_item'] == "1")
- $haste = "Y";
- else
- $haste = "N";
- echo "<tr><td width=\"180\"><font color=\"orange\">Haste Item</font></td><td width=\"180\"><font color=\"black\">".$haste."</font></td> </tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">HP Drain</font></td><td width=\"180\"><font color=\"black\">".$hpdrain."</font></td> </tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">MP Drain</font></td><td width=\"180\"><font color=\"black\">".$mpdrain."</font></td> </tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">Breakable</font></td><td width=\"180\"><font color=\"black\">".$breakable."</font></td> </tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">Tradable</font></td><td width=\"180\"><font color=\"black\">".$tradeable."</font></td> </tr>";
- echo "<tr><td width=\"180\"><font color=\"orange\">Deleteable</font></td><td width=\"180\"><font color=\"black\">".$deleteable."</font></td> </tr>";
- echo "</table>";
- echo "<br>";
- echo "<center><font color=\"#00ccff\">Dropped By:</font></center>";
- echo "<br>";
- echo "<table align=\"center\" cellpadding=\"2\" cellspacing=\"2\" border=\"2\">";
- echo "<tr><td width=\"250\"><center><font color=\"red\">Monster Name</font></center><td width=\"75\"><center><font color=\"black\">Minimum</font></center></td><td width=\"75\"><center><font color=\"black\">Maximum</font></center></td><td width=\"75\"><center><font color=\"black\">Chance</font></center></td></tr>";
- while($row=mysql_fetch_assoc($res2)) {
- $chance = $row['chance'] / 10000;
- echo "<tr><td width=\"250\"><center><font color=\"green\">".$row['mob_name']."</font></center></td><td width=\"75\"><center><font color=\"orange\">".$row['min']."</font></center></td><td width=\"75\"><center><font color=\"orange\">".$row['max']."</font></center></td><td width=\"75\"><center><font color=\"red\">".$chance."%</font></center></td></tr>";
- $row;
- }
- echo "</table>";
- echo "<br>";
- echo "<a href=\"armors.php?armor_type=".$armor_type."\">Go Back...</a>";
- echo "<br>";
- } elseif(isset($_GET['armor_type'])) {
- $armor_type = mysql_real_escape_string($_GET['armor_type']);
- $sql = "SELECT * FROM armor WHERE type='$armor_type' GROUP BY name";
- $res = mysql_query($sql) or die(mysql_error());
- echo "<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"2\">";
- echo "<tr><th>Name</th></tr>";
- while($row=mysql_fetch_assoc($res)) {
- echo "<tr><th width=\"300\" height=\"22\"><a href=\"?armor_type=".$armor_type."&armor=".$row['name']."\">".$row['name']."</a></th></tr>";
- }
- echo "</table>";
- echo "<a href=\"armors.php\">Go Back...</a>";
- } else { //If the user didn't click on any armor type
- $sql = "SELECT * FROM armor GROUP BY type";
- $res = mysql_query($sql) or die(mysql_error());
- echo "<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"2\">";
- echo "<tr><th>Choose a Armor type</th></tr>";
- while($row=mysql_fetch_assoc($res)) {
- echo "<tr><th width=\"300\" height=\"22\"><a href=\"?armor_type=".$row['type']."\">".$row['type']."</a></th></tr>";
- }
- echo "</table>";
- echo "<a href=\"truedatabase.php\">Go Back...</a>";
- }
- mysql_close();
- ?>
Add Comment
Please, Sign In to add comment