Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Szukam]Skrypt/Kod


TheBuster_PL

Rekomendowane odpowiedzi

Opublikowano

Witam Szukam Kodu aby się np od 9:00 Wieczorem do 5:00 rano Zmieniała się grafika na nocną w Silniku 7.1! Grafikę nocną MAM ale kodu nie ma :) Polecą Likeit

Annony_sygn_bySFG_01a.jpg

Syga by SofarGone

Opublikowano

Zaraz poszukam go u mnie w silniku bo u mnie się zmienia grafika na nocną :]

 

{php}
$time = date("H");
$visual = "visual";
if($time>=22 || $time<8)
{
$visual = "visual_night";
}
{/php}
<br>
<table>
<tr>
 <td width="600" valign="top" valign="top">
  <table class="vis" width="100%">
    <tr>
		    <th colspan="2">
	 Budynki
	 </th>
    </tr>
    {if $style == 'new'}
	 <tr>
	  <td width="60%">
	   <a href="game.php?village={$village.id}&screen=overview&akcja=o_labels"><span>{if $labels}Ukryj poziomy budynków{else}Pokaz poziomy budynków{/if}</span></a>
	  </td>
	  <td>
	  <a href="game.php?village={$village.id}&screen=overview&akcja=o_style"><span style="text-align:right;">Do klasycznego przegladu wioski</span></a>
	  </td>
	 </tr>
	 <tr>
	  <td colspan="2">
	   <table cellpadding="5">
		    <tr>
			 <td>
			  <div style="position: relative; width: 600px;height: 418px; background-image: url(/ds_graphic/{php}echo $visual{/php}/back_none.jpg);"/>
			   <img class="empty" src="/ds_graphic/map/empty.png" alt="" usemap="#mapa" />
			   <map name="mapa" id="mapa">
				    {foreach from=$cl_builds->get_array('dbname') item=dbname key=id}
					 {if $village.$dbname > 0}
					  {if $cl_builds->get_maxstage($dbname) == 1}
					   <area shape="poly" coords="{$builds_graphic_coords.$dbname}" href="game.php?village={$village.id}&screen={$dbname}" alt="{$cl_builds->get_name($dbname)}" title="{$cl_builds->get_name($dbname)}"/>
					   <img class="align_{$dbname}" src="/ds_graphic/{php}echo $visual{/php}/{$dbname}1.{if $anims}gif{else}png{/if}" alt=""/>
					   {if $labels}
						    <label class="stagetip label_{$dbname}"><a href="game.php?village={$village.id}&screen={$dbname}">{$village.$dbname}</a></label>
					   {/if}
					  {else}
					   {if $dbname == 'snob' || $dbname == 'hide'}
						    <area shape="poly" coords="{$builds_graphic_coords.$dbname}" href="game.php?village={$village.id}&screen={$dbname}" alt="{$cl_builds->get_name($dbname)}" title="{$cl_builds->get_name($dbname)}"/>
						    <img class="align_{$dbname}" src="/ds_graphic/{php}echo $visual{/php}/{$dbname}1.{if $anims}gif{else}png{/if}" alt=""/>
						    {if $labels}
							 <label class="stagetip label_{$dbname}"><a href="game.php?village={$village.id}&screen={$dbname}">{$village.$dbname}</a></label>
						    {/if}
					   {else}
						    {php}
							 $this->_tpl_vars['aktu_build_prc'] = $this->_tpl_vars['village'][$this->_tpl_vars['dbname']] / $this->_tpl_vars['cl_builds']->get_maxstage($this->_tpl_vars['dbname']);
						    {/php}
						    {if $aktu_build_prc > 0.5}
							 <area shape="poly" coords="{$builds_graphic_coords.$dbname}" href="game.php?village={$village.id}&screen={$dbname}" alt="{$cl_builds->get_name($dbname)}" title="{$cl_builds->get_name($dbname)}"/>
							 {if $dbname == 'main'}
							  <img class="align_mainflag" src="/ds_graphic/{php}echo $visual{/php}/mainflag3.gif" alt=""/>
							 {/if}
							 <img class="align_{$dbname}" src="/ds_graphic/{php}echo $visual{/php}/{$dbname}3.{if $anims}gif{else}png{/if}" alt=""/>
							 {if $labels}
							  <label class="stagetip label_{$dbname}"><a href="game.php?village={$village.id}&screen={$dbname}">{$village.$dbname}</a></label>
						    {/if}
						    {else}
							 {if $aktu_build_prc > 0.2}
							  <area shape="poly" coords="{$builds_graphic_coords.$dbname}" href="game.php?village={$village.id}&screen={$dbname}" alt="{$cl_builds->get_name($dbname)}" title="{$cl_builds->get_name($dbname)}"/>
							  {if $dbname == 'main'}
							   <img class="align_mainflag" src="/ds_graphic/{php}echo $visual{/php}/mainflag2.gif" alt=""/>
							  {/if}
							  <img class="align_{$dbname}" src="/ds_graphic/{php}echo $visual{/php}/{$dbname}2.{if $anims}gif{else}png{/if}" alt=""/>
							  {if $labels}
							   <label class="stagetip label_{$dbname}"><a href="game.php?village={$village.id}&screen={$dbname}">{$village.$dbname}</a></label>
							  {/if}
							 {else}
							  <area shape="poly" coords="{$builds_graphic_coords.$dbname}" href="game.php?village={$village.id}&screen={$dbname}" alt="{$cl_builds->get_name($dbname)}" title="{$cl_builds->get_name($dbname)}"/>
							  {if $dbname == 'main'}
							   <img class="align_mainflag" src="/ds_graphic/{php}echo $visual{/php}/mainflag1.gif" alt=""/>
							  {/if}
							  <img class="align_{$dbname}" src="/ds_graphic/{php}echo $visual{/php}/{$dbname}1.{if $anims}gif{else}png{/if}" alt=""/>
							  {if $labels}
							   <label class="stagetip label_{$dbname}"><a href="game.php?village={$village.id}&screen={$dbname}">{$village.$dbname}</a></label>
							  {/if}
							 {/if}
						    {/if}
					   {/if}
					  {/if}
					 {else}
					  {php}
					   if (get_counts_on_build($this->_tpl_vars['village']['id'],$this->_tpl_vars['dbname']) > 0):
					  {/php}
					  {if $anims}
					   <img class="align_{$dbname}" src="/ds_graphic/{php}echo $visual{/php}/{$dbname}0.gif" alt=""/>
					  {/if}
					  {php}
					   endif;
					  {/php}
					 {/if}
				    {/foreach}

				    {if $anims}
					 <img class="align_conversation" src="/ds_graphic/{php}echo $visual{/php}/conversation.gif" alt=""/>
					 <img class="align_farmer" src="/ds_graphic/{php}echo $visual{/php}/farmer.gif" alt=""/>
					 <img class="align_guard" src="/ds_graphic/{php}echo $visual{/php}/guard.gif" alt=""/>
					 <img class="align_juggler" src="/ds_graphic/{php}echo $visual{/php}/juggler.gif" alt=""/>
				    {/if}
			   </map>
			  </div>
			 </td>
		    </tr>
	   </table>
	  </td>
	 </tr>

    {elseif $style == 'classic'}
	 <tr>
	  <td>
	   <a href="game.php?village={$village.id}&screen=overview&akcja=o_style">
		    <span style="text-align:right;">
			 Do graficznego przegladu wioski
		    </span>
	   </a>
	  </td>
	 </tr>
	 {foreach from=$built_builds item=dbname key=id}
	  <tr>
	   <td>
		    <a href="game.php?village={$village.id}&screen={$dbname}"><img src="/ds_graphic/buildings/{$dbname}.png"> {$cl_builds->get_name($dbname)}</a>
			 (Poziom {$village.$dbname})
		    </td>
	  </tr>
	 {/foreach}
    {/if}

    <tr>
	 {* Andere Angriffe auf das aktuelle Dorf *}
	 {if count($other_movements)>0}
	  <td colspan="2">
	   <table class="vis" width="100%">
		    <tr>
			 <th>Inne rozkazy ({php}echo count($this->_tpl_vars['other_movements']);{/php})</th>
			 <th>Na miejscu</th>
			 <th>Na miejscu za</th>
		    </tr>
		    {foreach from=$other_movements item=array}
			 <tr>
			  <td>
			   <a href="game.php?village={$village.id}&screen=info_command&id={$array.id}&type=other">
				    <img src="/ds_graphic/command/{$array.type}.png"> {$array.message}
			   </a>
			  </td>
			  <td>
			   {$array.end_time}
			  </td>
			  {if $array.arrival_in<0}
			   <td>
				    {$array.arrival_in|format_time}
			   </td>
			  {else}
			   <td>
				    <span class="timer">
					 {$array.arrival_in|format_time}
				    </span>
			   </td>
			  {/if}
			 </tr>
		    {/foreach}
	   </table>
	  </td>
	 {/if}
    </tr>
    <tr>
	 {* Eigene losgeschickte Angriffe *}
	 {if count($my_movements)>0}
	  <td colspan="2">
	  <br>
	   <table class="vis" width="100%">
		    <tr>
			 <th>Wlasne rozkazy ({php}echo count($this->_tpl_vars['my_movements']);{/php})</th>
			 <th>Na miejscu</th>
			 <th>Na miejscu za</th>
		    </tr>
		    {foreach from=$my_movements item=array}
			 <tr>
			  <td>
			   <a href="game.php?village={$village.id}&screen=info_command&id={$array.id}&type=own">
				    <img src="/ds_graphic/command/{$array.type}.png"> {$array.message}
			   </a>
			  </td>
			  <td>
			   {$array.end_time}
			  </td>
			  {if $array.arrival_in<0}
			   <td>
				    {$array.arrival_in|format_time}
			   </td>
			  {else}
			   <td>
				    <span class="timer">
					 {$array.arrival_in|format_time}
				    </span>
			   </td>
			  {/if}
			  {if $array.can_cancel}
			   <td>
				    <a href="game.php?village={$village.id}&screen=place&action=cancel&id={$array.id}&h={$hkey}">
					 Przerwij
				    </a>
			   </td>
			  {/if}
			 </tr>
		    {/foreach}
	   </table>
	  </td>
	 {/if}
    </tr>
  </table>
 </td>

 <td valign="top" {if $style == 'new'}width="100%{/if}{if $style == 'classic'}width="40%{/if}">
  {if $noob}
    <table class="vis" width="100%">
	 <tr>
	  <th>
	   Ochrona poczatkowa
	  </th>
	 </tr>
	 <tr>
	  <td>
	   Konczy sie {$noob_end}
	  </td>
	 </tr>
    </table>
    <br />
  {/if}
  <table class="vis" width="100%">
    <tr>
	 <th colspan="2">
	  Produkcja
	 </th>
    </tr>
    <tr>
	 <td width="80">
	  <img src="/ds_graphic/holz.png" title="Drewno" alt="" />
	  Drewno
	 </td>
	 <td>
	  <strong>
	   {$wood_per_hour|format_number}
	  </strong>
	   na Godzine
	 </td>
    </tr>
    <tr>
	 <td width="80">
	  <img src="/ds_graphic/lehm.png" title="Cegly" alt="" />
	   Glina
	 </td>
	 <td>
	  <strong>
	   {$stone_per_hour|format_number}
	  </strong>
	   na Godzine
	 </td>
    </tr>
    <tr>
	 <td width="80">
	  <img src="/ds_graphic/eisen.png" title="Zelazo" alt="" />
	   Zelazo
	 </td>
	 <td>
	  <strong>
	   {$iron_per_hour|format_number}
	  </strong>
	   na Godzine
	 </td>
    </tr>
  </table>
  <br />
  <table class="vis" width="100%">
    <tr>
	 <th>
	  Jednostki
	 </th>
    </tr>
						    {foreach from=$in_village_units item=num key=dbname}
							 <tr>
	  <td>
	   <img src="/ds_graphic/unit/{$dbname}.png">
	   <b>
		    {$num|format_number}
	   </b>
	   {if $dbname === 'unit_paladin'}
		    {$pala_name}
	   {else}
		    {$cl_units->get_name($dbname)}
	   {/if}
	  </td>
	 </tr>
						    {/foreach}
    <tr>
	 <td><a href="game.php?village={$village.id}&screen=train&mode=train">ť rekrutowac</a></td>
    </tr>
  </table>
  <br />
  <table class="vis" width="100%">
    <tr>
	 <th>
	  Przynaleznosc do grupy:
	 </th>
    </tr>
    {if $village.group === 'all'}
	 <tr>
	  <td>
	   <a href="game.php?village={$village.id}&screen=overview_villages&mode=groups">ť opracuj</a>
	  </td>
	 </tr>
    {else}
	 <tr>
	  <td>
	   {$village.group}
	  </td>
	 </tr>
	 <tr>
	  <td>
	   <a href="game.php?village={$village.id}&screen=overview_villages&mode=groups">ť opracuj</a>
	  </td>
	 </tr>
    {/if}
  </table>
  <br />
  {if $village.agreement!="100"}
    <table class="vis" width="100%">
	 <tr>
	  <th>
	   Poparcie:
	  </th>
	  <th style="color: {$color}">
	   {$village.agreement}
	  </th>
	 </tr>
    </table>
    <br />
  {/if}
 </td>
</tr>
</table>

 

Proszę Bardzo :]

banner.png

 

Opublikowano

Supcio :D

Do jakiego pliku to wkleić lub jaki stworzyć I polecą Likei

P.s

Jaki maż folder z grafiką nocna (nazwa) I gdzie :)

Annony_sygn_bySFG_01a.jpg

Syga by SofarGone

Opublikowano

ja to mam w serwer_1/templates/game_overview.tpl

 

Tam masz godziny od której do której jest od 22 do 8 rano

if($time>=22 || $time<8)

 

htdocs/graphic/visual_night/

 

Napisz na gg 2295587

banner.png

 

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...