[Help] Castle Siege

Holder

New Member
Joined
Dec 27, 2010
Messages
434
Reaction score
43
От този модул, да се премахне всичко освен кода, който извлича гилдията собственик на CS и да се добави GM-ра на гилдията ?

Code:
<center>
<?
require("./config.php");
$cs_map_server_group = "0";
$castle_siege_schedule = "Every one week";
$cs = mssql_query("Select SIEGE_START_DATE,SIEGE_END_DATE,SIEGE_ENDED,CASTLE_OCCUPY,OWNER_GUILD,MONEY,TAX_RATE_CHAOS,TAX_RATE_STORE,TAX_HUNT_ZONE,MAP_SVR_GROUP from MuCastle_DATA where MAP_SVR_GROUP='$cs_map_server_group'");
$cs = mssql_fetch_row($cs);
$cs_g = mssql_query("Select GUILD_NAME from MuCastle_SIEGE_GUILDLIST where MAP_SVR_GROUP='$cs[9]'");
if($cs){
if($cs[2] == '1'){

echo("Castle Siege Status: Ended"); } else { echo("Castle Siege Status: On"); }
echo("<br>Castle Siege Schedule: <span class='text'>$castle_siege_schedule</span>");

if($cs[3] != NULL){

$cs[4] = htmlspecialchars($cs[4]);
echo("<br>Castle Owner Guild: $cs[4]");}
else{echo("<br>Castle Owner Guild: No Owner");}

echo("<br>Money: <span class='text'>$cs[5]</span>");
echo("<br>Tax Chaos: <span class='text'>$cs[6]</span>");
echo("<br>Tax Store: <span class='text'>$cs[7]</span>");
echo("<br>Tax Hunt Zone: <span class='text'>$cs[8]</span>");


echo '<br><br>Registered Guilds
<table class="c12" width="100%" id="table-1" height=30 border="0" cellpadding="2" cellspacing="2">                
<thead><tr>
<td class="news-head">#</td>
<td class="news-head">Name</td>
<td class="news-head">Given up</td>
</tr></thead>';

for($i=0;$i < mssql_num_rows($cs_g);++$i)
{
$cs_guilds = mssql_fetch_row($cs_g);
$rank = $i+1;

$cs_guilds[0] = str_replace(">","&gt;",$cs_guilds[0]);
$cs_guilds[0] = str_replace("<","&lt;",$cs_guilds[0]);

echo "<tbody><tr>
<td align=left>$rank</td>
<td align=left><a href=index.php?op=guild&guild=$cs_guilds[0]>$cs_guilds[0]</a></td>
</tr></tbody>
";
}
echo("</table>");

}else {echo("Castle Siege Is Not Installed On This Server");}
?>
<table width="480" align="center" border="0" cellpadding="0" cellspacing="0" height="344">
                <tbody><tr>
                  <td><table width="480" align="center" border="0" cellpadding="0" cellspacing="4">  <tbody><tr>
    <td><div align="center"><img src="images/castlesiege.png"></div></td>
    <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="2">
    <tbody><tr>
      <td width="100%">
        <table width="100%" cellspacing="2">
	               <tbody><tr><td class="news-head" height="25"><b>Last Siege</b> </td><td class="news-rest"> 2009-06-27</td></tr>
	               <tr><td class="news-head" height="25"><b>Next Siege</b> </td><td class="news-rest">  2009-07-04 15:00 (GMT+2)</td></tr>
	               <tr><td class="news-head" height="25"><b>Time left</b> </td><td class="news-rest">  1 day 21 hours 12 minutes 52 seconds  </td></tr>
	               <tr><td class="news-head" height="25"><b>Owner</b> </td><td class="news-rest">  Warning</td></tr>
</tbody></table></td></tr></tbody></table><table width="100%" border="0" cellpadding="0" cellspacing="2">
    <tbody><tr>
      <td width="100%">
       <table width="100%" cellspacing="1"><tbody><tr class="news-head">
<td class="news-head">#</td>
<td class="news-head">Name</td>
<td class="news-head">Given up</td>
</tr><tr><td class="news-rest"><b> 1</b></td><td class="news-rest"><b> HOOLS</b></td><td class="news-rest"> No</td></tr><tr><td class="news-rest"><b> 2</b></td><td class="news-rest"><b> NoRuLeZ</b></td><td class="news-rest"> No</td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td>
                </tr>
              </tbody></table></center></table>
 
Last edited: