RE: Stämme-Katalog - "kleiner Onlineshop" - ON21 - 13.05.2011
Ich muss gestehen, es hat sich nichts verändert. :/
--
so, nun geht es.
Habe zwar keine Verlinkung aber über den link mit (...)&screen=Katalog kann ist es dann offen.
Danke!
RE: Stämme-Katalog - "kleiner Onlineshop" - knollenmax - 13.05.2011
?? vielleicht kannst du mal die game.tpl hier reinstellen...
RE: Stämme-Katalog - "kleiner Onlineshop" - ON21 - 13.05.2011
hier, bitte.
{php}
$pala0 = mysql_query("SELECT userid FROM villages WHERE id = ".$_GET['village']);
$pala01 = @mysql_fetch_assoc($pala0);
$pala1 = mysql_query("SELECT * FROM paladin WHERE uid = '".$pala01['userid']."'");
$pala2 = @mysql_fetch_assoc($pala1);
if(empty($pala2))
{
$pala3 = mysql_query("INSERT INTO paladin (uid, name) VALUES ('".$pala01['userid']."', 'Paladin')");
}
$mach_pala1 = mysql_query("SELECT * FROM recruit WHERE unit = 'unit_knight'");
while($mach_pala2 = @mysql_fetch_assoc($mach_pala1))
{
if($mach_pala2['time_finished'] <= time())
{
mysql_query("UPDATE unit_place SET unit_knight = '1' WHERE (villages_from_id = ".$mach_pala2['villageid']." AND villages_to_id = ".$mach_pala2['villageid'].")");
mysql_query("DELETE FROM recruit WHERE id = ".$mach_pala2['id']);
}
}
$pala_dep1 = mysql_query("SELECT * FROM pala_deploy");
while($pala_dep2 = @mysql_fetch_assoc($pala_dep1))
{
if($pala_dep2['finish'] <= time())
{
mysql_query("UPDATE unit_place SET unit_knight = '1' WHERE (villages_from_id = ".$pala_dep2['to']." AND villages_to_id = ".$pala_dep2['to'].")");
mysql_query("UPDATE villages SET all_unit_knight = '1' WHERE id = ".$pala_dep2['to']);
mysql_query("UPDATE villages SET all_unit_knight = '0' WHERE id = ".$pala_dep2['from']);
mysql_query("DELETE FROM pala_deploy WHERE uid = ".$pala_dep2['uid']);
}
}
{/php}
{php}
$pala0 = mysql_query("SELECT userid FROM villages WHERE id = ".$_GET['village']);
$pala01 = @mysql_fetch_assoc($pala0);
$pala1 = mysql_query("SELECT * FROM paladin WHERE uid = '".$pala01['userid']."'");
$pala2 = @mysql_fetch_assoc($pala1);
if(empty($pala2))
{
$pala3 = mysql_query("INSERT INTO paladin (uid, name) VALUES ('".$pala01['userid']."', 'Paladin')");
}
$mach_pala1 = mysql_query("SELECT * FROM recruit WHERE unit = 'unit_knight'");
while($mach_pala2 = @mysql_fetch_assoc($mach_pala1))
{
if($mach_pala2['time_finished'] <= time())
{
mysql_query("UPDATE unit_place SET unit_knight = '1' WHERE (villages_from_id = ".$mach_pala2['villageid']." AND villages_to_id = ".$mach_pala2['villageid'].")");
mysql_query("DELETE FROM recruit WHERE id = ".$mach_pala2['id']);
}
}
$pala_dep1 = mysql_query("SELECT * FROM pala_deploy");
while($pala_dep2 = @mysql_fetch_assoc($pala_dep1))
{
if($pala_dep2['finish'] <= time())
{
mysql_query("UPDATE unit_place SET unit_knight = '1' WHERE (villages_from_id = ".$pala_dep2['to']." AND villages_to_id = ".$pala_dep2['to'].")");
mysql_query("UPDATE villages SET all_unit_knight = '1' WHERE id = ".$pala_dep2['to']);
mysql_query("UPDATE villages SET all_unit_knight = '0' WHERE id = ".$pala_dep2['from']);
mysql_query("DELETE FROM pala_deploy WHERE uid = ".$pala_dep2['uid']);
}
}
{/php}
{php}
$pala1 = mysql_query("SELECT * FROM paladin WHERE uid = ".$_COOKIE['id']);
$pala2 = @mysql_fetch_assoc($pala1);
if(empty($pala2))
{$pala3 = mysql_query("INSERT INTO paladin (uid, name) VALUES (".$_COOKIE['id'].", 'Paladin')");}
$mach_pala1 = mysql_query("SELECT * FROM recruit WHERE unit = 'unit_knight'");
while($mach_pala2 = @mysql_fetch_assoc($mach_pala1))
{
if($mach_pala2['time_finished'] <= time())
{
mysql_query("UPDATE unit_place SET unit_knight = '1' WHERE (villages_from_id = ".$mach_pala2['villageid']." AND villages_to_id = ".$mach_pala2['villageid'].")");
mysql_query("DELETE FROM recruit WHERE id = ".$mach_pala2['id']);
}
}
$pala_dep1 = mysql_query("SELECT * FROM pala_deploy");
while($pala_dep2 = @mysql_fetch_assoc($pala_dep1))
{
if($pala_dep2['finish'] <= time())
{
mysql_query("UPDATE unit_place SET unit_knight = '1' WHERE (villages_from_id = ".$pala_dep2['to']." AND villages_to_id = ".$pala_dep2['to'].")");
mysql_query("UPDATE villages SET all_unit_knight = '1' WHERE id = ".$pala_dep2['to']);
mysql_query("UPDATE villages SET all_unit_knight = '0' WHERE id = ".$pala_dep2['from']);
mysql_query("DELETE FROM pala_deploy WHERE uid = ".$pala_dep2['uid']);
}
}
{/php}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$village.name} ({$village.x}|{$village.y}) - {$lang->grab("game", "title")}</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="stamm.css" />
<script src="script.js?1159978916" type="text/javascript"></script>
<script src="menu.js?1148466057" type="text/javascript"></script>
</head>
<body style="margin-top:6px;">
<div class="top_background"></div>
{if $user.dyn_menu==1}
<table class="menu nowrap" align="center" width="{$user.window_width}">
<tr id="menu_row">
<td><a href="game.php?village={$village.id}&screen=&action=logout&h={$hkey}" target="_top">{$lang->grab("menu", "logout")}</a></td>
<td><a href="http://dslan.gfx-dose.de" target="_blank">{$lang->grab("menu", "forum")}</a></td>
<td><a href="help.php" target="_blank">{$lang->grab("menu", "help")}</a></td>
<td><a href="game.php?village={$village.id}&screen=settings">{$lang->grab("menu", "settings")}</a><br /><table cellspacing="0" width="120"><tr><td><a href="game.php?village={$village.id}&screen=settings&mode=profile">{$lang->grab("menu", "profile")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=settings&mode=settings">{$lang->grab("menu", "settings")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=settings&mode=vacation">{$lang->grab("menu", "vacation")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=settings&mode=logins">{$lang->grab("menu", "logins")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=settings&mode=change_passwd">{$lang->grab("menu", "change_passwd")}</a></td></table></td>
<td><a href="game.php?village={$village.id}&screen=ranking">{$lang->grab("menu", "ranking")}</a> ({$user.rang}.|{$user.points|format_number} P) <br /><table cellspacing="0" width="120"><tr><td><a href="game.php?village={$village.id}&screen=ranking&mode=ally">{$lang->grab("menu", "ranking_ally")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=ranking&mode=player">{$lang->grab("menu", "ranking_player")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=ranking&mode=kill_player">{$lang->grab("menu", "ranking_kill_player")}</a></td></tr></table>
<td> <a href="game.php?village={$village.id}&screen=ally">{$lang->grab("menu", "tribe")}</a>{if $user.ally!=-1}<br /><table cellspacing="0" width="120"><tr><td><a href="game.php?village={$village.id}&screen=ally&mode=overview">{$lang->grab("menu", "tribe_overview")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=ally&mode=profile">{$lang->grab("menu", "profile")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=ally&mode=members">{$lang->grab("menu", "members")}</a></td></tr>{if $user.ally_invite==1}<tr><td><a href="game.php?village={$village.id}&screen=ally&mode=invite">{$lang->grab("menu", "invite")}</a></td></tr>{/if}{if $user.ally_diplomacy==1}<tr><td><a href="game.php?village={$village.id}&screen=ally&mode=contracts">{$lang->grab("ally", "diplomacy")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=ally&mode=properties">{$lang->grab("menu", "properties")}</a></td></tr><tr><td><a href="forum/forum.php">Forum</a></td></tr>{/if}</table>{/if}</td>
<td><a href="game.php?village={$village.id}&screen=report">{if $user.new_report==1}<img src="graphic/new_report.png" title="Neuer Bericht" alt="" />{/if} {$lang->grab("menu", "report")}</a><br /><table cellspacing="0" width="120"><tr><td><a href="game.php?village={$village.id}&screen=report&mode=all">{$lang->grab("menu", "all")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=report&mode=attack">{$lang->grab("menu", "attack")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=report&mode=defense">{$lang->grab("menu", "defense")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=report&mode=support">{$lang->grab("menu", "support")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=report&mode=trade">{$lang->grab("menu", "trade")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=report&mode=other">{$lang->grab("menu", "other")}</a></td></tr></table></td>
<td><a href="game.php?village={$village.id}&screen=mail">{if $user.new_mail==1}<img src="graphic/new_mail.png" title="Neue Nachricht" alt="" /> {/if} {$lang->grab("menu", "mail")}</a><br /><table cellspacing="0" width="120"><tr><td><a href="game.php?village={$village.id}&screen=mail&mode=in">{$lang->grab("menu", "in")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=mail&mode=out">{$lang->grab("menu", "out")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=mail&mode=arch">{$lang->grab("menu", "arch")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=mail&mode=new">{$lang->grab("menu", "new")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=mail&mode=block">{$lang->grab("menu", "block")}</a></td></tr></table></td>
<td><a href="game.php?village={$village.id}&screen=memo">{$lang->grab("menu", "memo")}</a></td>
<td><a href="chat.php" target="_blank">Chat</a></td></tr>
</table>
{if $user.show_toolbar==1}
<br />
<table id="quickbar" class="menu nowrap" align="center">
<tr>
<td><a href="game.php?village={$village.id}&screen=main" ><img src="graphic/buildings/main.png" alt="" />{$lang->grab("dyn_menu", "main")}</a></td>
<td><a href="game.php?village={$village.id}&screen=barracks" ><img src="graphic/buildings/barracks.png" alt="" />{$lang->grab("dyn_menu", "barracks")}</a></td>
<td><a href="game.php?village={$village.id}&screen=stable" ><img src="graphic/buildings/stable.png" alt="" />{$lang->grab("dyn_menu", "stable")}</a></td>
<td><a href="game.php?village={$village.id}&screen=garage" ><img src="graphic/buildings/garage.png" alt="" />{$lang->grab("dyn_menu", "garage")}</a></td>
<td><a href="game.php?village={$village.id}&screen=snob" ><img src="graphic/buildings/snob.png" alt="" />{$lang->grab("dyn_menu", "snob")}</a></td>
<td><a href="game.php?village={$village.id}&screen=smith" ><img src="graphic/buildings/smith.png" alt="" />{$lang->grab("dyn_menu", "smith")}</a></td>
<td><a href="game.php?village={$village.id}&screen=place" ><img src="graphic/buildings/place.png" alt="" />{$lang->grab("dyn_menu", "place")}</a></td>
<td><a href="game.php?village={$village.id}&screen=market" ><img src="graphic/buildings/market.png" alt="" />{$lang->grab("dyn_menu", "market")}</a></td>
</tr>
</table>
{/if}
<hr width="{$user.window_width}" size="2" />
<table align="center" width="{$user.window_width}" cellspacing="0" style="padding:0px;margin-bottom:4px">
<tr>
<td>
<table class="menu nowrap" align="left">
<tr id="menu_row2">
<td><a href="game.php?village={$village.id}&screen=overview_villages" accesskey="s">{$lang->grab("menu", "overview_v")}</a><br /><table cellspacing="0" width="120"><tr><td><a href="game.php?village={$village.id}&screen=overview_villages&mode=combined">{$lang->grab("menu", "combined")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=overview_villages&mode=prod">{$lang->grab("menu", "prod")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=overview_villages&mode=units">{$lang->grab("menu", "units")}</a></td></tr><td><a href="game.php?village={$village.id}&screen=overview_villages&mode=commands">{$lang->grab("menu", "commands")}</a></td></tr><td><a href="game.php?village={$village.id}&screen=overview_villages&mode=incomings">{$lang->grab("menu", "incomings")}</a></td></tr></td></table>
<td><a href="game.php?village={$village.id}&screen=map">{$lang->grab("menu", "map")}</a></td>
<td class="no_hover">
{if $user.villages>1}
{if !empty($village_array.last)}
<a href="{$village_array.last_link}" accesskey="a"><img src="graphic/links.png" alt="" /></a>
{else}
<img src="graphic/links2.png" alt="" />
{/if}
{if !empty($village_array.next)}
<a href="{$village_array.next_link}" accesskey="d"><img src="graphic/rechts.png" alt="" /></a>
{else}
<img src="graphic/rechts2.png" alt="" />
{/if}
{/if}
</td>
<td><a href="game.php?village={$village.id}&screen=overview">{$village.name}</a> <a href="game.php?village={$village.id}&screen=overview"><img border="0" style="border:0px" src="./graphic/icons/hauptgebäude.png" width="15" height="15"></a> <a href="game.php?village={$village.id}&screen=map"><img border="0" style="border:0px" src="./graphic/icons/zentrieren.png" width="15" height="15"></a> <a href="game.php?village={$village.id}&screen=place&x={$village.x}&y={$village.y}"><img src="./graphic/icons/angriff.png" border="0" style="border:0px" width="15" height="15"></a><b>({$village.x}|{$village.y}) K{$village.continent} </b></td>
</tr>
</table>
</td>
<td align="right"><table cellspacing="0"><tr>
<td><table class="box" cellspacing="0"><tr>
<td><a href="game.php?village={$village.id}&screen=wood"><img src="graphic/holz.png" title="Holz" alt="" /></a></td>
<td><span id="wood" title="{$wood_per_hour}" {if $village.r_wood==$max_storage}class="warn"{/if}>{$village.r_wood}</span> </td>
<td><a href="game.php?village={$village.id}&screen=stone"><img src="graphic/lehm.png" title="Lehm" alt="" /></a></td>
<td><span id="stone" title="{$stone_per_hour}" {if $village.r_stone==$max_storage}class="warn"{/if}>{$village.r_stone}</span> </td>
<td><a href="game.php?village={$village.id}&screen=iron"><img src="graphic/eisen.png" title="Eisen" alt="" /></a></td>
<td><span id="iron" title="{$iron_per_hour}" {if $village.r_iron==$max_storage}class="warn"{/if}>{$village.r_iron}</span></td>
<td style="border-left: dotted 1px;">
<a href="game.php?village={$village.id}&screen=storage"><img src="graphic/res.png" title="Speicherkapazität" alt="" /></a>
</td><td id="storage">{$max_storage} </td>
</tr></table></td>
<td><table class="box" cellspacing="0"><tr>
<td width="18" height="20" align="center"><a href="game.php?village={$village.id}&screen=farm"><img src="graphic/face.png" title="Arbeiter" alt="" /></a></td>
<td align="center">{$village.r_bh}/{$max_bh}</td>
</tr></table></td>
{if $user.attacks!=0}
<td><table class="box" cellspacing="0"><tr>
<td width="60" height="20" align="center"><a href="game.php?village={$village.id}&screen=overview_villages&mode=incomings"><img src="graphic/unit/att.png" alt="" /> ({$user.attacks})</a></td>
</tr></table></td>
{/if}
</tr></table></td>
</tr></table>
<!--[if IE ]>
<script type="text/javascript">initMenuList("menu_row");</script>
<script type="text/javascript">initMenuList("menu_row2");</script>
<![endif]-->
{else}
<table align="center">
<tr><td>
<a href="game.php?village={$village.id}&screen=&action=logout&h={$hkey}" target="_top">{$lang->grab("menu", "logout")}</a>
- <a href="http://dslan.gfx-dose.de" target="_blank">{$lang->grab("menu", "forum")}</a>
- <a href="help.php" target="_blank">Hilfe</a>
- <a href="game.php?village={$village.id}&screen=settings">{$lang->grab("menu", "settings")}</a>
- <a href="game.php?village={$village.id}&screen=ranking">{$lang->grab("menu", "ranking")}</a> ({$user.rang}.|{$user.points|format_number} P)
- <a href="game.php?village={$village.id}&screen=ally">{$lang->grab("menu", "ally")}</a>
- <a href="game.php?village={$village.id}&screen=report">{if $user.new_report==1}<img src="graphic/new_report.png" title="Neuer Bericht" alt="" />{/if} {$lang->grab("menu", "report")}</a>
- <a id="menu_mail" href="game.php?village={$village.id}&screen=mail">{if $user.new_mail==1}<img src="graphic/new_mail.png" title="Neue Nachricht" alt="" /> {/if} {$lang->grab("menu", "mail")}</a>
- <a href="game.php?village={$village.id}&screen=memo">{$lang->grab("menu", "memo")}</a>
</td></tr></table>
{if $user.show_toolbar==1}
<br />
<table id="quickbar" class="menu nowrap" align="center">
<tr>
<td><a href="game.php?village={$village.id}&screen=main" ><img src="graphic/buildings/main.png" alt="" />{$lang->grab("menu", "main")}</a></td>
<td><a href="game.php?village={$village.id}&screen=barracks" ><img src="graphic/buildings/barracks.png" alt="" />{$lang->grab("menu", "barracks")}</a></td>
<td><a href="game.php?village={$village.id}&screen=stable" ><img src="graphic/buildings/stable.png" alt="" />{$lang->grab("menu", "stable")}</a></td>
<td><a href="game.php?village={$village.id}&screen=garage" ><img src="graphic/buildings/garage.png" alt="" />{$lang->grab("menu", "garage")}</a></td>
<td><a href="game.php?village={$village.id}&screen=snob" ><img src="graphic/buildings/snob.png" alt="" />{$lang->grab("menu", "snob")}</a></td>
<td><a href="game.php?village={$village.id}&screen=smith" ><img src="graphic/buildings/smith.png" alt="" />{$lang->grab("menu", "smith")}</a></td>
<td><a href="game.php?village={$village.id}&screen=place" ><img src="graphic/buildings/place.png" alt="" />{$lang->grab("menu", "place")}</a></td>
<td><a href="game.php?village={$village.id}&screen=market" ><img src="graphic/buildings/market.png" alt="" />{$lang->grab("menu", "market")}</a></td>
</tr>
</table>
{/if}
<hr width="{$user.window_width}" size="2" />
<table align="center" width="{$user.window_width}" cellspacing="0" style="padding:0px;margin-bottom:4px">
<tr>
<td>
{if $user.villages>1}
{if !empty($village_array.last)}
<a href="{$village_array.last_link}" accesskey="a"><img src="graphic/links.png" alt="" /></a>
{else}
<img src="graphic/links2.png" alt="" />
{/if}
{if !empty($village_array.next)}
<a href="{$village_array.next_link}" accesskey="d"><img src="graphic/rechts.png" alt="" /></a>
{else}
<img src="graphic/rechts2.png" alt="" />
{/if}
{/if}
<a href="game.php?village={$village.id}&screen=overview_villages" accesskey="s">{$village.name}</a> <b>({$village.x}|{$village.y}) K{$village.continent}</b> -
<a href="game.php?village={$village.id}&screen=map">{$lang->grab("menu", "map")}</a> -
<a href="game.php?village={$village.id}&screen=overview">{$lang->grab("menu", "overview")}</a>
</td>
<td align="right"><table cellspacing="0"><tr>
<td><table class="box" cellspacing="0"><tr>
<td><a href="game.php?village={$village.id}&screen=wood"><img src="graphic/holz.png" title="Holz" alt="" /></a></td>
<td><span id="wood" title="{$wood_per_hour}" {if $village.r_wood==$max_storage}class="warn"{/if}>{$village.r_wood}</span> </td>
<td><a href="game.php?village={$village.id}&screen=stone"><img src="graphic/lehm.png" title="Lehm" alt="" /></a></td>
<td><span id="stone" title="{$stone_per_hour}" {if $village.r_stone==$max_storage}class="warn"{/if}>{$village.r_stone}</span> </td>
<td><a href="game.php?village={$village.id}&screen=iron"><img src="graphic/eisen.png" title="Eisen" alt="" /></a></td>
<td><span id="iron" title="{$iron_per_hour}" {if $village.r_iron==$max_storage}class="warn"{/if}>{$village.r_iron}</span></td>
<td style="border-left: dotted 1px;">
<a href="game.php?village={$village.id}&screen=storage"><img src="graphic/res.png" title="Speicherkapazität" alt="" /></a>
</td><td id="storage">{$max_storage} </td>
</tr></table></td>
<td><table class="box" cellspacing="0"><tr>
<td width="18" height="20" align="center"><a href="game.php?village={$village.id}&screen=farm"><img src="graphic/face.png" title="Arbeiter" alt="" /></a></td>
<td align="center">{$village.r_bh}/{$max_bh}</td>
</tr></table></td>
{if $user.attacks!=0}
<td><table class="box" cellspacing="0"><tr>
<td width="60" height="20" align="center"><img src="graphic/unit/att.png" alt="" /> ({$user.attacks})</td>
</tr></table></td>
{/if}
</tr></table></td>
</tr></table>
{/if}
{if $config.no_actions}
<table class="main" width="{$user.window_width}" align="center">
<tr>
<td style="padding:2px;">
{$lang->grab("menu", "no_actions")}
</td>
</tr>
</table>
<br />
{/if}
<table class="main" width="{$user.window_width}" align="center">
<tr>
<td style="padding:2px;">
{if in_array($screen,$allow_screens)}
{include file="game_$screen.tpl"}
{/if}
{if $screen=='katalog'}
{include file="game_katalog.tpl"}
{/if}
{if $screen == 'statue'}
{include_php file="statue.php"}
{/if}
<p align="right" style="font-size: 7pt; margin-top:0px; margin-bottom:0px">{$lang->grab("game", "generated")} {$load_msec}ms
Serverzeit: <span id="serverTime">{$servertime}</span></p>
</td>
</tr>
</table>
<script type="text/javascript">startTimer();</script>
</body>
</html>
RE: Stämme-Katalog - "kleiner Onlineshop" - lolli1 - 13.05.2011
natürlich mit^^
RE: Stämme-Katalog - "kleiner Onlineshop" - Molt - 14.05.2011
@ON21: Du hast jedenfalls waaay to much {php}-Salat vor <html>.
Wenn du selbst nix hinzugefügt hast, sollte da nur ein {php}-Block stehen, du kannst die beiden unteren also löschen... zumal der dritte gar nicht vollständig ist
LG
Molt
RE: Stämme-Katalog - "kleiner Onlineshop" - ON21 - 14.05.2011
Ich hab da nix hingemacht, weil ich davon keine ahnung hab.
kannst du einmal markieren, was raus müsste?
RE: Stämme-Katalog - "kleiner Onlineshop" - Yannici - 14.05.2011
Das kommt doch vom Paladin, Molt
Wenn du die Variabeln mal betrachtest... Außerdem hast du doch das Tool geschrieben? o.O
so far
Yannici
RE: Stämme-Katalog - "kleiner Onlineshop" - Molt - 14.05.2011
Ja hab ich aber kucks dir doch mal an!
Da steht 3mal das gleiche, und beim 3ten Mal noch nicht mal vollständig! o.0
Das hab ich nicht geschrieben.
So sollte es aussehen:
PHP Code:
{ php } $pala0 = mysql_query ( "SELECT userid FROM villages WHERE id = " . $_GET [ 'village' ]); $pala01 = @ mysql_fetch_assoc ( $pala0 ); $pala1 = mysql_query ( "SELECT * FROM paladin WHERE uid = '" . $pala01 [ 'userid' ]. "'" ); $pala2 = @ mysql_fetch_assoc ( $pala1 ); if(empty( $pala2 )) { $pala3 = mysql_query ( "INSERT INTO paladin (uid, name) VALUES ('" . $pala01 [ 'userid' ]. "', 'Paladin')" ); } $mach_pala1 = mysql_query ( "SELECT * FROM recruit WHERE unit = 'unit_knight'" ); while( $mach_pala2 = @ mysql_fetch_assoc ( $mach_pala1 )) { if( $mach_pala2 [ 'time_finished' ] <= time ()) { mysql_query ( "UPDATE unit_place SET unit_knight = '1' WHERE (villages_from_id = " . $mach_pala2 [ 'villageid' ]. " AND villages_to_id = " . $mach_pala2 [ 'villageid' ]. ")" ); mysql_query ( "DELETE FROM recruit WHERE id = " . $mach_pala2 [ 'id' ]); } } $pala_dep1 = mysql_query ( "SELECT * FROM pala_deploy" ); while( $pala_dep2 = @ mysql_fetch_assoc ( $pala_dep1 )) { if( $pala_dep2 [ 'finish' ] <= time ()) { mysql_query ( "UPDATE unit_place SET unit_knight = '1' WHERE (villages_from_id = " . $pala_dep2 [ 'to' ]. " AND villages_to_id = " . $pala_dep2 [ 'to' ]. ")" ); mysql_query ( "UPDATE villages SET all_unit_knight = '1' WHERE id = " . $pala_dep2 [ 'to' ]); mysql_query ( "UPDATE villages SET all_unit_knight = '0' WHERE id = " . $pala_dep2 [ 'from' ]); mysql_query ( "DELETE FROM pala_deploy WHERE uid = " . $pala_dep2 [ 'uid' ]); } } {/ php } <? xml version = "1.0" encoding = "UTF-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>{$village.name} ({$village.x}|{$village.y}) - {$lang->grab("game", "title")}</title> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> <link rel="stylesheet" type="text/css" href="stamm.css" /> <script src="script.js?1159978916" type="text/javascript"></script> <script src="menu.js?1148466057" type="text/javascript"></script> </head> <body style="margin-top:6px;"> <div class="top_background"></div> {if $user.dyn_menu==1} <table class="menu nowrap" align="center" width="{$user.window_width}"> <tr id="menu_row"> <td><a href="game.php?village={$village.id}&screen=&action=logout&h={$hkey}" target="_top">{$lang->grab("menu", "logout")}</a></td> <td><a href="http://dslan.gfx-dose.de" target="_blank">{$lang->grab("menu", "forum")}</a></td> <td><a href="help.php" target="_blank">{$lang->grab("menu", "help")}</a></td> <td><a href="game.php?village={$village.id}&screen=settings">{$lang->grab("menu", "settings")}</a><br /><table cellspacing="0" width="120"><tr><td><a href="game.php?village={$village.id}&screen=settings&mode=profile">{$lang->grab("menu", "profile")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=settings&mode=settings">{$lang->grab("menu", "settings")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=settings&mode=vacation">{$lang->grab("menu", "vacation")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=settings&mode=logins">{$lang->grab("menu", "logins")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=settings&mode=change_passwd">{$lang->grab("menu", "change_passwd")}</a></td></table></td> <td><a href="game.php?village={$village.id}&screen=ranking">{$lang->grab("menu", "ranking")}</a> ({$user.rang}.|{$user.points|format_number} P) <br /><table cellspacing="0" width="120"><tr><td><a href="game.php?village={$village.id}&screen=ranking&mode=ally">{$lang->grab("menu", "ranking_ally")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=ranking&mode=player">{$lang->grab("menu", "ranking_player")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=ranking&mode=kill_player">{$lang->grab("menu", "ranking_kill_player")}</a></td></tr></table> <td> <a href="game.php?village={$village.id}&screen=ally">{$lang->grab("menu", "tribe")}</a>{if $user.ally!=-1}<br /><table cellspacing="0" width="120"><tr><td><a href="game.php?village={$village.id}&screen=ally&mode=overview">{$lang->grab("menu", "tribe_overview")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=ally&mode=profile">{$lang->grab("menu", "profile")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=ally&mode=members">{$lang->grab("menu", "members")}</a></td></tr>{if $user.ally_invite==1}<tr><td><a href="game.php?village={$village.id}&screen=ally&mode=invite">{$lang->grab("menu", "invite")}</a></td></tr>{/if}{if $user.ally_diplomacy==1}<tr><td><a href="game.php?village={$village.id}&screen=ally&mode=contracts">{$lang->grab("ally", "diplomacy")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=ally&mode=properties">{$lang->grab("menu", "properties")}</a></td></tr><tr><td><a href="forum/forum.php">Forum</a></td></tr>{/if}</table>{/if}</td> <td><a href="game.php?village={$village.id}&screen=report">{if $user.new_report==1}<img src="graphic/new_report.png" title="Neuer Bericht" alt="" />{/if} {$lang->grab("menu", "report")}</a><br /><table cellspacing="0" width="120"><tr><td><a href="game.php?village={$village.id}&screen=report&mode=all">{$lang->grab("menu", "all")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=report&mode=attack">{$lang->grab("menu", "attack")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=report&mode=defense">{$lang->grab("menu", "defense")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=report&mode=support">{$lang->grab("menu", "support")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=report&mode=trade">{$lang->grab("menu", "trade")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=report&mode=other">{$lang->grab("menu", "other")}</a></td></tr></table></td> <td><a href="game.php?village={$village.id}&screen=mail">{if $user.new_mail==1}<img src="graphic/new_mail.png" title="Neue Nachricht" alt="" /> {/if} {$lang->grab("menu", "mail")}</a><br /><table cellspacing="0" width="120"><tr><td><a href="game.php?village={$village.id}&screen=mail&mode=in">{$lang->grab("menu", "in")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=mail&mode=out">{$lang->grab("menu", "out")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=mail&mode=arch">{$lang->grab("menu", "arch")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=mail&mode=new">{$lang->grab("menu", "new")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=mail&mode=block">{$lang->grab("menu", "block")}</a></td></tr></table></td> <td><a href="game.php?village={$village.id}&screen=memo">{$lang->grab("menu", "memo")}</a></td> <td><a href="chat.php" target="_blank">Chat</a></td></tr> </table> {if $user.show_toolbar==1} <br /> <table id="quickbar" class="menu nowrap" align="center"> <tr> <td><a href="game.php?village={$village.id}&screen=main" ><img src="graphic/buildings/main.png" alt="" />{$lang->grab("dyn_menu", "main")}</a></td> <td><a href="game.php?village={$village.id}&screen=barracks" ><img src="graphic/buildings/barracks.png" alt="" />{$lang->grab("dyn_menu", "barracks")}</a></td> <td><a href="game.php?village={$village.id}&screen=stable" ><img src="graphic/buildings/stable.png" alt="" />{$lang->grab("dyn_menu", "stable")}</a></td> <td><a href="game.php?village={$village.id}&screen=garage" ><img src="graphic/buildings/garage.png" alt="" />{$lang->grab("dyn_menu", "garage")}</a></td> <td><a href="game.php?village={$village.id}&screen=snob" ><img src="graphic/buildings/snob.png" alt="" />{$lang->grab("dyn_menu", "snob")}</a></td> <td><a href="game.php?village={$village.id}&screen=smith" ><img src="graphic/buildings/smith.png" alt="" />{$lang->grab("dyn_menu", "smith")}</a></td> <td><a href="game.php?village={$village.id}&screen=place" ><img src="graphic/buildings/place.png" alt="" />{$lang->grab("dyn_menu", "place")}</a></td> <td><a href="game.php?village={$village.id}&screen=market" ><img src="graphic/buildings/market.png" alt="" />{$lang->grab("dyn_menu", "market")}</a></td> </tr> </table> {/if} <hr width="{$user.window_width}" size="2" /> <table align="center" width="{$user.window_width}" cellspacing="0" style="padding:0px;margin-bottom:4px"> <tr> <td> <table class="menu nowrap" align="left"> <tr id="menu_row2"> <td><a href="game.php?village={$village.id}&screen=overview_villages" accesskey="s">{$lang->grab("menu", "overview_v")}</a><br /><table cellspacing="0" width="120"><tr><td><a href="game.php?village={$village.id}&screen=overview_villages&mode=combined">{$lang->grab("menu", "combined")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=overview_villages&mode=prod">{$lang->grab("menu", "prod")}</a></td></tr><tr><td><a href="game.php?village={$village.id}&screen=overview_villages&mode=units">{$lang->grab("menu", "units")}</a></td></tr><td><a href="game.php?village={$village.id}&screen=overview_villages&mode=commands">{$lang->grab("menu", "commands")}</a></td></tr><td><a href="game.php?village={$village.id}&screen=overview_villages&mode=incomings">{$lang->grab("menu", "incomings")}</a></td></tr></td></table> <td><a href="game.php?village={$village.id}&screen=map">{$lang->grab("menu", "map")}</a></td> <td class="no_hover"> {if $user.villages>1} {if !empty($village_array.last)} <a href="{$village_array.last_link}" accesskey="a"><img src="graphic/links.png" alt="" /></a> {else} <img src="graphic/links2.png" alt="" /> {/if} {if !empty($village_array.next)} <a href="{$village_array.next_link}" accesskey="d"><img src="graphic/rechts.png" alt="" /></a> {else} <img src="graphic/rechts2.png" alt="" /> {/if} {/if} </td> <td><a href="game.php?village={$village.id}&screen=overview">{$village.name}</a> <a href="game.php?village={$village.id}&screen=overview"><img border="0" style="border:0px" src="./graphic/icons/hauptgebäude.png" width="15" height="15"></a> <a href="game.php?village={$village.id}&screen=map"><img border="0" style="border:0px" src="./graphic/icons/zentrieren.png" width="15" height="15"></a> <a href="game.php?village={$village.id}&screen=place&x={$village.x}&y={$village.y}"><img src="./graphic/icons/angriff.png" border="0" style="border:0px" width="15" height="15"></a><b>({$village.x}|{$village.y}) K{$village.continent} </b></td> </tr> </table> </td> <td align="right"><table cellspacing="0"><tr> <td><table class="box" cellspacing="0"><tr> <td><a href="game.php?village={$village.id}&screen=wood"><img src="graphic/holz.png" title="Holz" alt="" /></a></td> <td><span id="wood" title="{$wood_per_hour}" {if $village.r_wood==$max_storage}class="warn"{/if}>{$village.r_wood}</span> </td> <td><a href="game.php?village={$village.id}&screen=stone"><img src="graphic/lehm.png" title="Lehm" alt="" /></a></td> <td><span id="stone" title="{$stone_per_hour}" {if $village.r_stone==$max_storage}class="warn"{/if}>{$village.r_stone}</span> </td> <td><a href="game.php?village={$village.id}&screen=iron"><img src="graphic/eisen.png" title="Eisen" alt="" /></a></td> <td><span id="iron" title="{$iron_per_hour}" {if $village.r_iron==$max_storage}class="warn"{/if}>{$village.r_iron}</span></td> <td style="border-left: dotted 1px;"> <a href="game.php?village={$village.id}&screen=storage"><img src="graphic/res.png" title="Speicherkapazität" alt="" /></a> </td><td id="storage">{$max_storage} </td> </tr></table></td> <td><table class="box" cellspacing="0"><tr> <td width="18" height="20" align="center"><a href="game.php?village={$village.id}&screen=farm"><img src="graphic/face.png" title="Arbeiter" alt="" /></a></td> <td align="center">{$village.r_bh}/{$max_bh}</td> </tr></table></td> {if $user.attacks!=0} <td><table class="box" cellspacing="0"><tr> <td width="60" height="20" align="center"><a href="game.php?village={$village.id}&screen=overview_villages&mode=incomings"><img src="graphic/unit/att.png" alt="" /> ({$user.attacks})</a></td> </tr></table></td> {/if} </tr></table></td> </tr></table> <!--[if IE ]> <script type="text/javascript">initMenuList("menu_row");</script> <script type="text/javascript">initMenuList("menu_row2");</script> <![endif]--> {else} <table align="center"> <tr><td> <a href="game.php?village={$village.id}&screen=&action=logout&h={$hkey}" target="_top">{$lang->grab("menu", "logout")}</a> - <a href="http://dslan.gfx-dose.de" target="_blank">{$lang->grab("menu", "forum")}</a> - <a href="help.php" target="_blank">Hilfe</a> - <a href="game.php?village={$village.id}&screen=settings">{$lang->grab("menu", "settings")}</a> - <a href="game.php?village={$village.id}&screen=ranking">{$lang->grab("menu", "ranking")}</a> ({$user.rang}.|{$user.points|format_number} P) - <a href="game.php?village={$village.id}&screen=ally">{$lang->grab("menu", "ally")}</a> - <a href="game.php?village={$village.id}&screen=report">{if $user.new_report==1}<img src="graphic/new_report.png" title="Neuer Bericht" alt="" />{/if} {$lang->grab("menu", "report")}</a> - <a id="menu_mail" href="game.php?village={$village.id}&screen=mail">{if $user.new_mail==1}<img src="graphic/new_mail.png" title="Neue Nachricht" alt="" /> {/if} {$lang->grab("menu", "mail")}</a> - <a href="game.php?village={$village.id}&screen=memo">{$lang->grab("menu", "memo")}</a> </td></tr></table> {if $user.show_toolbar==1} <br /> <table id="quickbar" class="menu nowrap" align="center"> <tr> <td><a href="game.php?village={$village.id}&screen=main" ><img src="graphic/buildings/main.png" alt="" />{$lang->grab("menu", "main")}</a></td> <td><a href="game.php?village={$village.id}&screen=barracks" ><img src="graphic/buildings/barracks.png" alt="" />{$lang->grab("menu", "barracks")}</a></td> <td><a href="game.php?village={$village.id}&screen=stable" ><img src="graphic/buildings/stable.png" alt="" />{$lang->grab("menu", "stable")}</a></td> <td><a href="game.php?village={$village.id}&screen=garage" ><img src="graphic/buildings/garage.png" alt="" />{$lang->grab("menu", "garage")}</a></td> <td><a href="game.php?village={$village.id}&screen=snob" ><img src="graphic/buildings/snob.png" alt="" />{$lang->grab("menu", "snob")}</a></td> <td><a href="game.php?village={$village.id}&screen=smith" ><img src="graphic/buildings/smith.png" alt="" />{$lang->grab("menu", "smith")}</a></td> <td><a href="game.php?village={$village.id}&screen=place" ><img src="graphic/buildings/place.png" alt="" />{$lang->grab("menu", "place")}</a></td> <td><a href="game.php?village={$village.id}&screen=market" ><img src="graphic/buildings/market.png" alt="" />{$lang->grab("menu", "market")}</a></td> </tr> </table> {/if} <hr width="{$user.window_width}" size="2" /> <table align="center" width="{$user.window_width}" cellspacing="0" style="padding:0px;margin-bottom:4px"> <tr> <td> {if $user.villages>1} {if !empty($village_array.last)} <a href="{$village_array.last_link}" accesskey="a"><img src="graphic/links.png" alt="" /></a> {else} <img src="graphic/links2.png" alt="" /> {/if} {if !empty($village_array.next)} <a href="{$village_array.next_link}" accesskey="d"><img src="graphic/rechts.png" alt="" /></a> {else} <img src="graphic/rechts2.png" alt="" /> {/if} {/if} <a href="game.php?village={$village.id}&screen=overview_villages" accesskey="s">{$village.name}</a> <b>({$village.x}|{$village.y}) K{$village.continent}</b> - <a href="game.php?village={$village.id}&screen=map">{$lang->grab("menu", "map")}</a> - <a href="game.php?village={$village.id}&screen=overview">{$lang->grab("menu", "overview")}</a> </td> <td align="right"><table cellspacing="0"><tr> <td><table class="box" cellspacing="0"><tr> <td><a href="game.php?village={$village.id}&screen=wood"><img src="graphic/holz.png" title="Holz" alt="" /></a></td> <td><span id="wood" title="{$wood_per_hour}" {if $village.r_wood==$max_storage}class="warn"{/if}>{$village.r_wood}</span> </td> <td><a href="game.php?village={$village.id}&screen=stone"><img src="graphic/lehm.png" title="Lehm" alt="" /></a></td> <td><span id="stone" title="{$stone_per_hour}" {if $village.r_stone==$max_storage}class="warn"{/if}>{$village.r_stone}</span> </td> <td><a href="game.php?village={$village.id}&screen=iron"><img src="graphic/eisen.png" title="Eisen" alt="" /></a></td> <td><span id="iron" title="{$iron_per_hour}" {if $village.r_iron==$max_storage}class="warn"{/if}>{$village.r_iron}</span></td> <td style="border-left: dotted 1px;"> <a href="game.php?village={$village.id}&screen=storage"><img src="graphic/res.png" title="Speicherkapazität" alt="" /></a> </td><td id="storage">{$max_storage} </td> </tr></table></td> <td><table class="box" cellspacing="0"><tr> <td width="18" height="20" align="center"><a href="game.php?village={$village.id}&screen=farm"><img src="graphic/face.png" title="Arbeiter" alt="" /></a></td> <td align="center">{$village.r_bh}/{$max_bh}</td> </tr></table></td> {if $user.attacks!=0} <td><table class="box" cellspacing="0"><tr> <td width="60" height="20" align="center"><img src="graphic/unit/att.png" alt="" /> ({$user.attacks})</td> </tr></table></td> {/if} </tr></table></td> </tr></table> {/if} {if $config.no_actions} <table class="main" width="{$user.window_width}" align="center"> <tr> <td style="padding:2px;"> {$lang->grab("menu", "no_actions")} </td> </tr> </table> <br /> {/if} <table class="main" width="{$user.window_width}" align="center"> <tr> <td style="padding:2px;"> {if in_array($screen,$allow_screens)} {include file="game_$screen.tpl"} {/if} {if $screen=='katalog'} {include file="game_katalog.tpl"} {/if} {if $screen == 'statue'} {include_php file="statue.php"} {/if} <p align="right" style="font-size: 7pt; margin-top:0px; margin-bottom:0px">{$lang->grab("game", "generated")} {$load_msec}ms Serverzeit: <span id="serverTime">{$servertime}</span></p> </td> </tr> </table> <script type="text/javascript">startTimer();</script> </body> </html>
RE: Stämme-Katalog - "kleiner Onlineshop" - Yannici - 14.05.2011
Stimmt, da haste Recht
ok... b2t & so
so far
Yannici
RE: Stämme-Katalog - "kleiner Onlineshop" - ON21 - 14.05.2011
also soll ichg es so umändern, wie molt es geschrieben hat?
RE: Stämme-Katalog - "kleiner Onlineshop" - Yannici - 14.05.2011
Müssen tuhst du gar nichts, aber du kannst es, ja
so far
Yannici
RE: Stämme-Katalog - "kleiner Onlineshop" - Gast12 - 24.06.2011
Wie wäre es mit 'ne Paladingegenstand der die Preise Halbiert? oder die Preise hängen mit der Marktplatzstufe zusammen...
und dann bitte noch in die AiO1.9 intigrieren...
PS: Wie wäre es mit Truppen verschenken? die laufen dann zum anderen ort und gehören dem dann wenn sie da sind... (alle die wegen Bauernhofmangel nicht reinpassen, kommen zurück...
PS²: Tool zum einfachen einfügen von selbsterfundenen Waren=)
RE: Stämme-Katalog - "kleiner Onlineshop" - ON21 - 24.06.2011
paladin gegenstände gibt es (noch) garnicht.
das zweite kannst du ja auch manuell machen, das muss ja nicht in den OS. :-)