Location: PHPKode > projects > EliteSquadrons Promisance (TM) > esprom2_3_1/magic.php
<?
include("header.php");
include("magicfun.php");

?>
<a href="<?=$config[main]?>?action=guide&amp;section=magic&amp;era=<?=$users[era]?>">Elite Squadrons: Spec Ops</a><br>
<form method="post" action="<?=$config[main]?>?action=magic"><table class="inputtable"><tr><th>
Command Center will only shows the missions you can use if you have the number of Spec Ops Resources need to do the mission.</th></tr>
<table class="inputtable"><center>
<tr><td><select name="spell_num" size="1">
        <option value="0">Select a Mission</option>
<?

// New code hack to only show the spell if you have those runes.
// - zEro

setspcost();
if (($users[runes] >= $spcost[3]))
	printMRow(3);
if (($users[runes] >= $spcost[15]))
	printMRow(15);
// if (($users[runes] >= $spcost[6]))
//	printMRow(6);
if (($users[runes] >= $spcost[10]))
	printMRow(10);
if (($users[runes] >= $spcost[11]))
	printMRow(11);
if (($users[runes] >= $spcost[12]) && ($spname[12])) {
	printMRow(12);
}
if (($users[runes] >= $spcost[14]))
	printMRow(14);
if (($users[runes] >= $spcost[13]) && ($users[land] >= $config[edneed])) {
	printMRow(13);
if (($users[runes] >= $spcost[16]) && ($spname[16])) {
	printMRow(16);
}
}

// End of new spell hack.

?>
        </select></center></td></tr><?if ($users[runes] >= $spcost[6]) { ?><tr><th>
For Tree of Gold Mission:</th></tr><tr><td>Cast TOG Missions using <input type=number name=mana size=6><?=$uera[runes]?> (<?=commas($spcost[6])?> min.)<br>
	</td></tr><? } ?>
<tr><td class="acenter"><input type="submit" name="do_spell" value="Order Mission"></td></tr>
</table>
</form>
<?
if ($users[shield] > $time)
	print "<i>We currently have agents assigned to Counter-Intelligence units for another ".round(($users[shield]-$time)/3600,1)." hours.</i><br>\n";
if ($users[gate] > $time)
	print "<i>We currently have an open time portal which will last for ".round(($users[gate]-$time)/3600,1)." more hours.</i><br>\n";
TheEnd("");
?>
Return current item: EliteSquadrons Promisance (TM)