...

View Full Version : Help



due
06-16-2006, 12:04 AM
i got a script of a game called koc and i need commander change to work anyhelp?

JustinSainton
06-16-2006, 12:14 AM
It would be helpful to all of us if you posted your code, please read the guidelines.

Spookster
06-16-2006, 12:15 AM
In the future, please use a more descriptive subject when posting a question. See posting guidelines. (http://www.codingforums.com/postguide.htm)

And I see you have been warned previously on this matter.
http://www.codingforums.com/showthread.php?t=87093

I would highly recommend that you read our posting guidelines this time.

due
06-16-2006, 12:33 AM
<?
include "vsys.php";
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0036)http://www.kingsofchaos.com/base.php -->
<HTML><HEAD><TITLE>Kings of Chaos ::
<? $user=getUserDetails($_SESSION['isLogined'],'userName');echo $user->userName; ?>
's Camp</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1"><!-- ZoneLabs Privacy Insertion -->
<SCRIPT language=javascript src="js/js"></SCRIPT>
<LINK href="css/common.css" type=text/css rel=stylesheet><LINK
href="css/Elves.css" type=text/css rel=stylesheet>
<META
content="kingsofchaos, chaos, elves, humans, dwarves, orcs, rpg, mmorpg, role playing, game, online game, text based game, armory, mercenaries, spy, attack, army, battle, recruit, spies, spy skill, weapons, messaging, sabotage, recon, intelligence, pnp, mud, games, stockade, free, browser game"
name=keywords>
<META
content="Kings of Chaos is a Massively Multiplayer Online Role Playing Game with over 500,000 players. Players can choose one of four races: Orcs, Humans, Elves and Dwarves and build armies, recruit friends as officers, buy weapons, and spy and attack on each other."
name=description>
<META content="Kings of Chaos" name=author>
<SCRIPT language=javascript type=text/javascript>
<!--
function checkCR(evt) {
var evt = (evt) ? evt : ((event) ? event : null);
var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
if ((evt.keyCode == 13) && (node.type=="text")) {return false;}
}
document.onkeypress = checkCR;
//-->
</SCRIPT>

<META content="MSHTML 5.50.4522.1800" name=GENERATOR></HEAD>
<BODY text=#ffffff bgColor=#000066 leftMargin=0 topMargin=0 marginheight="0"
marginwidth="0">
<?
include "top.php";
?>

<TABLE cellSpacing=0 cellPadding=5 width="100%" border=0>
<TBODY>
<TR>
<TD class=menu_cell style="PADDING-LEFT: 15px" vAlign=top width=140>
<?
include ("left.php");
?>
</TD>
<TD style="PADDING-RIGHT: 15px; PADDING-LEFT: 15px; PADDING-TOP: 12px"
vAlign=top align=left> <BR>
<?
//include "islogined.php";
$user=getUserDetails($cgi['id']);
$userR=getUserRanks($cgi['id']);
?>
<TABLE cellSpacing=15 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=top width="50%"> <TABLE class=table_lines cellSpacing=0 cellPadding=6 width="100%"
border=0>
<TBODY>
<TR>
<TH colSpan=2>User Stats</TH>
</TR>
<TR>
<TD><B>Name:</B></TD>
<TD>
<?=$user->userName?>
</TD>
</TR>
<TR>
<TD><B>Commander:</B></TD>
<TD>
<?
if ($user->commander){
$userC=getUserDetails($user->commander,'userName');
echo $userC->userName;
}else{
echo "None";
}
?>
</TD>
</TR>
<TR>
<TD><B>Race:</B></TD>
<TD>
<?=$conf["race"][$user->race]["name"]?>
</TD>
</TR>
<TR>
<TD><B>Rank:</B></TD>
<TD>
<? numecho ($userR->rank) ?>
</TD>
</TR>
<TR>
<TD><B>Army Size:</B></TD>
<TD>
<? numecho (getTotalFightingForce($user))?>
</TD>
</TR>
<TR>
<TD><B>Treasury:</B></TD>
<TD>
<? numecho($user->gold); ?>
</TD>
</TR>
<TR>
<TD><B>Fortifications:</B></TD>
<TD>
<?=$conf["race"][$user->race]["fortification"][$user->fortificationLevel]["name"]?>
</TD>
</TR>
</TBODY>
</TABLE>
<BR> <TABLE cellSpacing=10 width="100%">
<TBODY>
<TR>
<TD align=right width="33%"> <FORM action=writemail.php method=get>
<INPUT type=hidden value=<?=$cgi['id']?> name=to>
<INPUT name="submit" type=submit value="Send Message">
</FORM></TD>
<TD align=middle width="33%"> <FORM action=attack.php#spy method=get>
<INPUT type=hidden
value=<?=$cgi['id']?> name=id>
<INPUT name="submit" type=submit value=Spy>
</FORM></TD>
<TD align=left width="33%"> <FORM action=attack.php method=get>
<INPUT type=hidden
value=<?=$cgi['id']?> name=id>
<INPUT name="submit" type=submit value=Attack>
</form>
</TD></TR>
<TR>
<td colspan="3" align="center">
<form action="commander_change.php?new_commander_id=<?=$cgi['id']?>" method="post"></form>
<input style="padding: 2px; width: 100%;" type="submit" value="Make <?=$user->userName?> my commander!" >
</form>
</td>
</TR>
</TBODY>
</TABLE></TD>
<TD vAlign=top width="50%"> <TABLE class=table_lines cellSpacing=0 cellPadding=6 width="100%"
border=0>
<TBODY>
<TR>
<TH align=middle colSpan=4>Officers</TH>
</TR>
<TR>
<TH class=subh align=left>Name</TH>
<TH class=subh>&nbsp;</TH>
<TH class=subh align=left>Army</TH>
<TH class=subh align=right>Rank</TH>
</TR>
<?
$officersC=getOfficersCount($cgi['id']);
if ($officersC){
$pCount=$officersC/$conf["users_per_page"];

$pCountF=floor($pCount);
$pCountF+=(($pCount>$pCountF)?1:0);

if (!$cgi['page']){
$cgi['page']=1;
}

$officers=getOfficers($cgi['id'],$cgi['page']);
for ($i=0; $i<count ($officers); $i++){

?>
<tr>
<td><a href="stats.php?id=<?=$officers[$i]->userID?>"><?=$officers[$i]->userName?></a></td>
<td align="right"><? numecho($officers[$i]->trainedAttackSold +$officers[$i]->trainedAttackMerc +$officers[$i]->trainedDefSold +$officers[$i]->trainedDefMerc +$officers[$i]->untrainedSold+$officers[$i]->untrainedMerc+$officers[$i]->spies);?></td>
<td align="left">
<?=$conf["race"][$officers[$i]->race]["name"]?>
</td>
<td align="right"><? numecho($officers[$i]->rank); ?></td>
</tr>
<?
}
}
else{
?>
<TR>
<TD align=middle colSpan=4>No Officers</TD>
</TR>
<? } ?>
<TR>
<TD>
<?


if ($cgi['page']>1){
echo "<A href='stats.php?page=".($cgi['page']-1)."&id=".$cgi['id']."'>&lt;&lt; Prev</A>";
}else {echo "&nbsp;";}
?>
</TD>
<TD align=middle colSpan=2>
<? numecho ($officersC)?>
officers total | page
<?=$cgi['page']?>
of
<? numecho ($pCountF); ?>
</TD>
<TD>
<?
if ($cgi['page']<$pCountF){
echo '<A href="stats.php?page='.($cgi['page']+1).'&id='.$cgi["id"].'">Next &gt;&gt;</A>';
}else {echo "&nbsp;";}
?>
</TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD vAlign=top></TD>
</TR>
</TBODY>
</TABLE>
<P>
<?
include ("bottom.php");
?>
</TD></TR></TBODY></TABLE>
</BODY></HTML>

Anyone help with that to work? the commander change



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum