コード例 #1
0
ファイル: index.php プロジェクト: galadie/Caranille-RPG
 function get_ocedar()
 {
     echo "<h2>equipment</h2>";
     echo "Casque : " . (isEquiped("Helmet") ? equipement('Helmet') : "") . "<br/>";
     echo "Arme : " . (isEquiped("Weapon") ? equipement('Weapon') : "") . "<br/>";
     echo "Protection : " . (isEquiped("Armor") ? equipement('Armor') : "") . "<br/>";
     echo "Gants: " . (isEquiped("Gloves") ? equipement('Gloves') : "") . "<br/>";
     echo "Pantalons : " . (isEquiped("Pants") ? equipement('Pants') : "") . "<br/>";
     echo "Bottes : " . (isEquiped("Boots") ? equipement('Boots') : "") . "<br/>";
 }
コード例 #2
0
ファイル: Functions.php プロジェクト: galadie/Caranille-RPG
    function get_ocedar()
    {
        global $already_call_ocedar;
        if (!$already_call_ocedar) {
            ?>
		<table id="corps" class="<?php 
            echo user_data('Account_Sexe');
            ?>
 account" align="center" valign="middle" >
			<tr>
				<td></td>
				<td colspan="2">
					<div id="tete" class="<?php 
            echo isEquiped("Helmet") ? 'equiped' : '';
            ?>
" title="Casque : <?php 
            echo equipement('Helmet');
            ?>
" >
						<div id="visage">
						&bullet;&nbsp;&nbsp;&nbsp;&nbsp;&bullet;<br/>
						&nbsp;&dharl;&nbsp;&dharr;&nbsp;<br/>
						&nbsp;&smile;&nbsp;
						</div>
					</div>
				</td>
				<td></td>
				<td rowspan="10"><?php 
            get_arme_ocedar();
            ?>
</td>
			</tr>
			
			<tr>
				<td ></td>
				<td colspan="2" ><div id="neck" class=""></div></td>
			</tr>

			<tr>
				<td class="epaule" ><div class=" Droit <?php 
            echo isEquiped("Armor") ? 'equiped' : '';
            ?>
" title="Protection : <?php 
            echo equipement('Armor');
            ?>
"></div></td>
				<td colspan="2" ><div id="buste" class="<?php 
            echo isEquiped("Armor") ? 'equiped' : '';
            ?>
" title="Protection : <?php 
            echo equipement('Armor');
            ?>
"></div></td>
				<td class="epaule" ><div class=" Gauche <?php 
            echo isEquiped("Armor") ? 'equiped' : '';
            ?>
" title="Protection : <?php 
            echo equipement('Armor');
            ?>
"></div></td>
			</tr>
			
			<tr valign='top' >
				<td rowspan="2"><div class="bras Droit" ></div></td>
				<td colspan="2" ><div id="poitrine" class="<?php 
            echo isEquiped("Armor") ? 'equiped' : '';
            ?>
" ></div></td>
				<td rowspan="2" ><div class="bras Gauche" ></div></td>
			</tr>
			
			<tr valign='top' >
				<td colspan="2" ><div id="abdomen" class="<?php 
            echo isEquiped("Armor") ? 'equiped' : '';
            ?>
" ></div></td>
			</tr>
			
			<tr valign='top'>
				<td rowspan="2">
					<div class="avant bras Droit <?php 
            echo isEquiped("Gloves") ? 'equiped' : '';
            ?>
" title="Gants: <?php 
            echo equipement('Gloves');
            ?>
"></div>
					<div class="poing Droit"></div>
				</td>
				<td colspan="2"><div id="ceinture" class="<?php 
            echo isEquiped("Pants") ? 'equiped' : '';
            ?>
" title="Pantalons : <?php 
            echo equipement('Pants');
            ?>
" ></div></td>
				<td rowspan="2">
					<div class="avant bras Gauche <?php 
            echo isEquiped("Gloves") ? 'equiped' : '';
            ?>
" title="Gants : <?php 
            echo equipement('Gloves');
            ?>
"></div>
					<div class="poing Gauche"></div>
				</td>
			</tr>
			<tr >
				<td ><div id="cuisse-droite" class="cuisse Droit <?php 
            echo isEquiped("Pants") ? 'equiped' : '';
            ?>
" title="Pantalons : <?php 
            echo equipement('Pants');
            ?>
" ></div></td>
				<td ><div id="cuisse-gauche" class="cuisse Gauche <?php 
            echo isEquiped("Pants") ? 'equiped' : '';
            ?>
" title="Pantalons : <?php 
            echo equipement('Pants');
            ?>
" ></div></td>
			</tr>
			<tr >
				<td ></td>
				<td><div class="jambes Droit <?php 
            echo isEquiped("Boots") ? 'equiped' : '';
            ?>
" title="Bottes : <?php 
            echo equipement('Boots');
            ?>
"></div></td>
				<td><div class="jambes Gauche <?php 
            echo isEquiped("Boots") ? 'equiped' : '';
            ?>
" title="Bottes : <?php 
            echo equipement('Boots');
            ?>
"></div></td>
				<td></td>
			</tr>
			<tr >
				<td colspan="2"><div class="pieds Droit <?php 
            echo isEquiped("Boots") ? 'equiped' : '';
            ?>
" title="Bottes : <?php 
            echo equipement('Boots');
            ?>
"></div></td>
				<td colspan="2"><div class="pieds Gauche <?php 
            echo isEquiped("Boots") ? 'equiped' : '';
            ?>
" title="Bottes : <?php 
            echo equipement('Boots');
            ?>
"></div></td>
			</tr>
		</table>
		<?php 
            $already_call_ocedar = true;
        }
    }
コード例 #3
0
ファイル: Inventory.php プロジェクト: galadie/Caranille-RPG
             echo "<img title='" . $Item['Image_Name'] . "' height='50px' src='data:" . $Item['Image_Type'] . ";base64," . $Item['Image_Base64'] . "' />";
             echo '<span>' . nl2br($desc) . '</span></a>';
             echo "</td>";
             echo '<td>' . $Inventory_Item_Quantity . '</td>';
             echo '<td>' . render_money($Item_Sale_Price) . '</td>';
             echo '<td>';
             echo '<form method="POST" action="' . get_link('Inventory', 'Game') . '">';
             echo '<input type="hidden" name="' . $Item_Type . '" value="' . $Item_Type . '">';
             echo "<input type=\"hidden\" name=\"Inventory_ID\" value=\"{$Inventory_ID}\">";
             echo "<input type=\"hidden\" name=\"Item_ID\" value=\"{$Item_ID}\">";
             if (user_data('Level_Number') >= $Item_Level_Required) {
                 if (!is_null($type_use) && $type_use != 'Item_Equip') {
                     echo '<input type="submit" name="' . $type_use . '" value="' . LanguageValidation::nMsg("btn.inventory.{$type_use}") . '"/>' . LanguageValidation::eMsg("btn.inventory.{$type_use}");
                 }
                 //'.$type_action.'">';
                 if ($type_use == 'Item_Equip' && equipement($Item['Item_Type']) === $Item_Name) {
                     echo '<input type="submit" name="Item_Desequip" value="' . LanguageValidation::nMsg("btn.inventory.Item_retire") . '"/>' . LanguageValidation::eMsg("btn.inventory.Item_retire");
                 } else {
                     echo '<input type="submit" name="' . $type_use . '" value="' . LanguageValidation::nMsg("btn.inventory.{$type_use}") . '"/>' . LanguageValidation::eMsg("btn.inventory.{$type_use}");
                 }
                 //'.$type_action.'">';
             }
             echo '<input type="submit" name="Sale" value="' . LanguageValidation::nMsg("btn.inventory.Item_sell") . '"/>' . LanguageValidation::eMsg("btn.inventory.Item_sell");
             //Vendre"><br /><br />';
             echo '</form>';
             echo '</td>';
             echo '</tr>';
         }
     }
     echo '</table>';
 }