Saedo's Wrath Wishlist
saedo — Mon, 10/06/2008 - 16:27
<script src="http://www.wowhead.com/widgets/power.js"></script>
<script type="text/javascript">
var visible = "Current";
function toggleTable(theID)
{
document.getElementById(visible).style.display = "none";
document.getElementById(theID).style.display = "block";
visible = theID;
};
</script>
<style type="text/css">
.q2, .q3, .q4, .q5 { text-decoration:none; }
.slots { display:none;
border:0px;
padding:0px;
border-spacing:0px;}
.entries, .headers { text-align:left; }
input.side { width:90px;
background-color:#FFFFFF;
font-weight:bold; }
input.side:hover { background-color:#FF0000; }
</style>
<p>All these values are taken at level 80 assuming full buffs.</p>
<ul>
<li><strong>Combat DPS:</strong> 5366.93 dps</li>
<li><strong>Mutilate:</strong> 5527.34 dps (5886.24 dps)</li>
<li><strong>T7 4pc Bonus:</strong> 100.41 dps</li>
</ul>
<em>Last Edited: March 5th, 2009</em><br><br>
<?php
function listItems($array, $slot, $current)
{
echo "<table class='slots' id='$slot'>";
echo "<tr>";
echo "<th class='headers'>Item:</th>";
echo "<th class='headers'>DPS:</th>";
echo "<th class='headers'>Obtained:</th>";
echo "</tr>";
echo "<tr><td colspan='3'></td></tr>";
echo "<tr>";
echo "<th class='headers' colspan='1'>$slot: ";
if ($current != "")
echo "<a class='$current[2]' href='$current[1]' target='_blank'>[$current[0]]</a>";
echo "</th>";
echo "</tr>";
foreach ($array as $item)
{
echo "<tr>";
echo "<th class='headers'><a class='$item[1]' href='$item[4]' target='_blank'>[$item[0]]</a></th>";
echo "<td class='entries'>$item[2]</td>";
echo "<td class='entries'>$item[3]</td>";
echo "</tr>";
}
echo "</table>";
}
$c_mainhand = array( array ("Calamity's Grasp", "q4", "90.48", "Naxxramas 25", "http://www.wowhead.com/?item=40383"));
$c_offhand = array();
$ranged = array( array ("Envoy of Mortality", "q4", "15.11", "Naxxramas 25", "http://www.wowhead.com/?item=40385"),
array ("Spinning Fate", "q4", "4.65", "Naxxramas 25", "http://www.wowhead.com/?item=40190"),
array ("Final Voyage", "q4", "2.33", "Naxxramas 25", "http://www.wowhead.com/?item=40346"),
array ("Arrowsong", "q4", "0.21", "Naxxramas 25", "http://www.wowhead.com/?item=40265"));
$head = array();
$neck = array( array ("Favor of the Dragon Queen", "q4", "21.63", "Naxxramas 25", "http://www.wowhead.com/?item=44664"),
array ("Emblem of Conquest Melee Agil Neck", "q4", "19.66", "16 Conquest", "http://ptr.wowhead.com/?item=45820"),
array ("Icy Blast Amulet", "q4", "5.4", "Sapphiron", "http://www.wowhead.com/?item=40369"),
array ("Gem of Imprisoned Vassals", "q4", "2.05", "Naxxramas 10", "http://www.wowhead.com/?item=39421"));
$shoulder = array();
$back = array( array ("Drape of the Deadly Foe", "q4", "29.74", "Naxxramas 25", "http://www.wowhead.com/?item=40403"),
array ("Aged Winter Cloak", "q4", "2.82", "Naxxramas 25", "http://www.wowhead.com/?item=40250"));
$chest = array( array ("Chestguard of the Recluse", "q4", "3.09 (47.03)", "Eternity 25", "http://www.wowhead.com/?item=40539"));
$wrist = array();
$hand = array( array ("Frosted Adroit Handguards", "q4", "-12.34 (31.57)", "Eternity 25", "http://www.wowhead.com/?item=40541"),
array ("Emblem of Conquest Rogue Gloves", "q4", "-18.88 (25.22)", "23 Conquest", "http://ptr.wowhead.com/?item=45838"));
$waist = array( array ("Emblem of Conquest Rogue Belt", "q4", "38.87", "23 Conquest", "http://ptr.wowhead.com/?item=45829"),
array ("Death-warmed Belt", "q4", "37.54", "Crafted", "http://ptr.wowhead.com/?item=45555"),
array ("Stalk-Skin Belt", "q4", "6.58", "Naxxramas 25", "http://www.wowhead.com/?item=40205"));
$leg = array();
$foot = array( array ("Footpads of Silence", "q4", "38.0", "Crafted", "http://ptr.wowhead.com/?item=45564"));
$ring1 = array( array ("Inscribed Band of the Kirin Tor", "q4", "3.66", "Gold", "http://ptr.wowhead.com/?item=45688"),
array ("Strong-Handed Ring", "q4", "0.05", "Naxxramas 25", "http://www.wowhead.com/?item=40074"));
$ring2 = array();
$trinket1 = array( array ("Grim Toll", "q4", "15.07", "Naxxramas 25", "http://www.wowhead.com/?item=40256"),
array ("Mark of Norgannon", "q4", "16.9", "Eternity 25", "http://www.wowhead.com/?item=40531"),
array ("Fury of the Five Flights", "q4", "4.16", "The Obsidian Sanctum 25", "http://www.wowhead.com/?item=40431"));
$trinket2 = array();
$gold = array( array ("Footpads of Silence", "q4", "38.0", "<a href='http://ptr.wowhead.com/?spell=63199' target='_blank'>Crafted</a>", "http://ptr.wowhead.com/?item=45564"),
array ("Death-warmed Belt", "q4", "37.54", "<a href='http://ptr.wowhead.com/?spell=63198' target='_blank'>Crafted</a>", "http://ptr.wowhead.com/?item=45555"),
array ("Inscribed Band of the Kirin Tor", "q4", "3.66", "1000G", "http://ptr.wowhead.com/?item=45688"));
$naxx10 = array( array ("Gem of Imprisoned Vassals", "q4", "2.05", "Naxxramas 10", "http://www.wowhead.com/?item=39421") );
$obsidian25 = array ( array ("Fury of the Five Flights", "q4", "4.16", "Sartharion", "http://www.wowhead.com/?item=40431"));
$naxx25 = array( array ("Calamity's Grasp", "q4", "90.48", "Kel'thuzad", "http://www.wowhead.com/?item=40383"),
array ("Drape of the Deadly Foe", "q4", "29.74", "Kel'thuzad", "http://www.wowhead.com/?item=40403"),
array ("Favor of the Dragon Queen", "q4", "21.63", "<a href='http://www.wowhead.com/?quest=13385' target='_blank'>Sapphiron</a>", "http://www.wowhead.com/?item=44664"),
array ("Grim Toll", "q4", "16.97", "Grob/Heigan/Gothik", "http://www.wowhead.com/?item=40256"),
array ("Envoy of Mortality", "q4", "15.11", "Kel'thuzad", "http://www.wowhead.com/?item=40385"),
array ("Stalk-Skin Belt", "q4", "6.58", "Naxxramas 25", "http://www.wowhead.com/?item=40205"),
array ("Icy Blast Amulet", "q4", "5.4", "Sapphiron", "http://www.wowhead.com/?item=40369"),
array ("Spinning Fate", "q4", "4.65", "Noth", "http://www.wowhead.com/?item=40190"),
array ("Aged Winter Cloak", "q4", "2.82", "Maexxena/Heigan/Grobb/Gothik", "http://www.wowhead.com/?item=40250"),
array ("Final Voyage", "q4", "2.33", "4 Horsemen", "http://www.wowhead.com/?item=40346"),
array ("Arrowsong", "q4", "0.21", "Patchwerk", "http://www.wowhead.com/?item=40265"),
array ("Strong-Handed Ring", "q4", "0.05", "Anub/Noth/Raz/Patch", "http://www.wowhead.com/?item=40074"));
$eternity25 = array ( array ("Mark of Norgannon", "q4", "15.07", "Malygos", "http://www.wowhead.com/?item=40531"),
array ("Chestguard of the Recluse", "q4", "3.09 (47.03)", "Malygos", "http://www.wowhead.com/?item=40539"),
array ("Frosted Adroit Handguards", "q4", "-12.34 (31.57)", "Malygos", "http://www.wowhead.com/?item=40541"));
$conquest = array ( array ("Emblem of Conquest Rogue Belt", "q4", "38.87", "23 (1.69)", "http://ptr.wowhead.com/?item=45829"),
array ("Emblem of Conquest Melee Agil Neck", "q4", "19.66", "16 (1.22875)", "http://ptr.wowhead.com/?item=45820"),
array ("Emblem of Conquest Rogue Gloves", "q4", "-18.88 (25.22)", "23 (1.0965)", "http://ptr.wowhead.com/?item=45838"));
$slots = array("Main Hand", "Off Hand", "Ranged", "Head", "Neck", "Shoulder", "Back", "Chest", "Wrist", "Hand", "Waist", "Leg", "Foot", "Ring 1", "Ring 2", "Trinket 1", "Trinket 2");
$arrays = array($c_mainhand, $c_offhand, $ranged, $head, $neck, $shoulder, $back, $chest, $wrist, $hand, $waist, $leg, $foot, $ring1, $ring2, $trinket1, $trinket2);
$num = count($slots);
$current = array( array("Kel'Thuzad's Reach", "http://www.wowhead.com/?item=39416", "q4"),
array("Webbed Death", "http://www.wowhead.com/?item=39714", "q4"),
array("Nerubian Conqueror", "http://www.wowhead.com/?item=39419", "q4"),
array("Valorous Bonescythe Helmet", "http://www.wowhead.com/?item=40499", "q4"),
array("Pendant of the Dragonsworn", "http://www.wowhead.com/?item=44659", "q4"),
array("Valorous Bonescythe Pauldrons", "http://www.wowhead.com/?item=40502", "q4"),
array("Hammerhead Sharkskin Cloak", "http://www.wowhead.com/?item=40721", "q4"),
array("Valorous Bonescythe Breastplate", "http://www.wowhead.com/?item=40495", "q4"),
array("Thrusting Bands", "http://www.wowhead.com/?item=40186", "q4"),
array("Valorous Bonescythe Gauntlets", "http://www.wowhead.com/?item=40496", "q4"),
array("Belt of the Tortured", "http://www.wowhead.com/?item=40260", "q4"),
array("Leggings of the Honored", "http://www.wowhead.com/?item=44011", "q4"),
array("Dawnwalkers", "http://www.wowhead.com/?item=39701", "q4"),
array("Ring of Invincibility", "http://www.wowhead.com/?item=40717", "q4"),
array("Surge Needle Ring", "http://www.wowhead.com/?item=40474", "q4"),
array("Mirror of Truth", "http://www.wowhead.com/?item=40684", "q4"),
array("Darkmoon Card: Greatness", "http://www.wowhead.com/?item=44253", "q4"));
$locales = array("Gold", "Naxx 10", "Obsidian 25", "Naxx 25", "Eternity 25", "Conquest");
$num2 = count($locales);
$sources = array($gold, $naxx10, $obsidian25, $naxx25, $eternity25, $conquest);
echo "<table><tr>";
echo "<td valign='top'>";
echo "<input class='side' type='button' onclick=\"toggleTable('Current')\" value=\"Current\"><br>";
foreach ($slots as $value)
echo "<input class='side' type='button' onclick=\"toggleTable('$value')\" value=\"$value\"><br>";
echo "</td>";
echo "<td valign='top'>";
echo "<table id='Current' style='display:block' border='0px'>";
echo "<tr>";
echo "<th class='headers'>Current</th>";
echo "<th class='headers'>Item</th>";
echo "</tr>";
for ($i = 0; $i < $num; $i++)
{
$j = $current[$i];
echo "<tr>";
echo "<th class='headers'>$slots[$i]</th>";
echo "<th class='headers'><a class='$j[2]' href='$j[1]' target='_blank'>[$j[0]]</a></th>";
echo "</tr>";
}
echo "</table>";
for ($i = 0; $i < $num; $i++)
listItems($arrays[$i], $slots[$i], $current[$i]);
for ($i = 0; $i < $num2; $i++)
listItems($sources[$i], $locales[$i], "");
echo "</td>";
echo "<td valign='top'>";
foreach ($locales as $value)
echo "<input class='side' type='button' onclick=\"toggleTable('$value')\" value=\"$value\"><br>";
echo "</td>";
echo "</tr></table>";
?>


You imported your own Wowhead
garreth — Thu, 11/06/2008 - 02:32You imported your own Wowhead javascript tooltip library! You dork!
How are you doing the filtering tricks?
Ha, I did that from the start
saedo — Thu, 11/06/2008 - 11:04Ha, I did that from the start (a month ago) back when this site used the old WoWArmory import items thing. When that broked on stuff I thought WoWHead was the choice (since this was a site "powered by WoWHead" back then). lol Oh yea and WoWHead is currently far better at having Beta items not yet released on Live.
Um, I guess the trick is a simple bit of JS coding:
var visible = "Current";
function toggleTable(theID)
{
document.getElementById(visible).style.display = "none";
document.getElementById(theID).style.display = "block";
visible = theID;
};
Basically everything is in a table. Hide everything, show only 1 at a time. And of course I don't actually code out the tables. That's a bit of php scripting to loop through building everything.
The messy part is the data itself atm. Multi-dimensional php arrays. lol I should fix that one of these days.
More dps at level 80.
saedo — Mon, 10/06/2008 - 18:14More dps at level 80. Looking at 4K+ dps in Naxx gear.
---------------------------------------------
"Current DPS: 3327.51
Adwarflol — Mon, 10/06/2008 - 17:52"Current DPS: 3327.51 dps"
That's sort of disgustingly awesome
-----------------------------
I was like :3 but then I srs'd