 |
Starting Professions
$qry="SELECT * FROM profession WHERE active=1";
if($_SESSION['onlyfs'] == "1") {
$_SESSION['onlyfs'] = "1";
$qry.=" AND fs_jedi=1";
}
$qry.=" ORDER BY type, name";
$result=mysql_query($qry);
$bPrintedElite=false;
//$bPrintedSuperElite=false;
if(!$result)
print " Error: ".mysql_error()." ";
else {
while ($prof_data=mysql_fetch_assoc($result)) {
if ($prof_data["type"] >= 1 && !$bPrintedElite){
print "Elite/Hybrid Professions ";
$bPrintedElite = true;
}
if ($prof_data["id"] == $prof_id)
print "".$prof_data["name"]."";
else
print "".$prof_data["name"]."";
$novice_id=$prof_data["id"]*18-1;
if (isSet($skill_selection[$novice_id]) && $skill_selection[$novice_id]==1) print " *";
$master_id=$prof_data["id"]*18;
if (isSet($skill_selection[$master_id]) && $skill_selection[$master_id]==1) print "*";
?>
}
}
?>
|
|
|
 |

|
writeProfessionLink(5); ?> |

|
writeLink(5,1); ?>

|
|
writeProfessionLink(1); ?> |
writeProfessionLink(2); ?> |
writeProfessionLink(3); ?> |
writeProfessionLink(4); ?> |
if($tier_count[4] == 1) print ''; ?>
writeLink(1,4); ?>
if($tier_count[4] > 1) writeLink(2,4); ?>
if($tier_count[4] > 1) writeLink(3,4); ?>
if($tier_count[4] > 1) writeLink(4,4); ?>
if($tier_count[4] == 1) print '
| '; ?>
if($tier_count[3] == 1) print ''; ?>
writeLink(1,3); ?>
if($tier_count[3] > 1) writeLink(2,3); ?>
if($tier_count[3] > 1) writeLink(3,3); ?>
if($tier_count[3] > 1) writeLink(4,3); ?>
if($tier_count[3] == 1) print '
| '; ?>
if($tier_count[2] == 1) print ''; ?>
writeLink(1,2); ?>
if($tier_count[2] > 1) writeLink(2,2); ?>
if($tier_count[2] > 1) writeLink(3,2); ?>
if($tier_count[2] > 1) writeLink(4,2); ?>
if($tier_count[2] == 1) print '
| '; ?>
if($tier_count[1] == 3) print ''; ?>
writeLink(1,1); ?>
if($tier_count[1] > 3) writeLink(2,1); ?>
if($tier_count[1] > 3) writeLink(3,1); ?>
if($tier_count[1] > 3) writeLink(4,1); ?>
if($tier_count[1] == 3) print '
| '; ?>

|
writeLink(0,1); ?>

|
|
if (getProfessionType($prof_id)>0) writeProfessionLink(0); ?> |
|

|
|
 |

|
$qry="SELECT sum(skill_cost) as total FROM skill WHERE id=0 ";
while (list($key, $value) = each($skill_selection)) {
$qry.=" or id=$key";
}
$result=mysql_query($qry);
$total=mysql_result($result,0);
$total_remaining=250-$total;
?>
Skill points remaining: =$total_remaining?>/250
|
$percent_filled=($total_remaining/250)*256; ?>
|
|
|
|