Exemple #1
0
<?php

if (verif_connect()) {
    if (verif_town()) {
        menu_town();
        if (request_confirm('Rest')) {
            if (user_data('Account_Golds') >= $information_Town['Town_Price_INN']) {
                echo LanguageValidation::iMsg("used.map.inn");
                echo 'Vous avez récupéré toutes vos forces<br />';
                echo '<form method="POST" action="' . get_link("Map", "Game") . '">';
                //echo '<input type="submit" name="Inn" value="Retourner en ville">';
                echo '<input type="submit" name="Inn" value="' . LanguageValidation::nMsg("btn.inn.return") . '"/>' . LanguageValidation::eMsg("btn.inn.return");
                echo '</form>';
            } else {
                echo LanguageValidation::iMsg("unusable.map.inn");
            }
        } else {
            $cout = render_money($information_Town['Town_Price_INN']);
            echo LanguageValidation::iMsg("intro.map.inn");
            echo '<br /><br />';
            echo LanguageValidation::iMsg("label.map.inn", $cout);
            echo '<form method="POST" action="' . get_link("Inn", "Game") . '">';
            //echo '<input type="submit" name="Rest" value="Accepter">';
            echo '<input type="submit" name="Rest" value="' . LanguageValidation::nMsg("btn.inn.accept") . '"/>' . LanguageValidation::eMsg("btn.inn.accept");
            echo '<input type="submit" name="Inn" value="' . LanguageValidation::nMsg("btn.inn.return") . '"/>' . LanguageValidation::eMsg("btn.inn.return");
            echo '</form>';
        }
    }
}
Exemple #2
0
    function get_perso_card()
    {
        global $already_call_perso_card, $installing, $secteur_module, $Next_Level, $array_character_stats;
        if (!$already_call_perso_card) {
            if (!$installing) {
                if (verif_connect(true) && ($secteur_module !== 'Admin' && $secteur_module !== 'Moderator' && $secteur_module !== 'Forum')) {
                    if (isset($Next_Level)) {
                        $hp_purcent = user_data('Account_HP_Remaining') / perso_data('HP_Total') * 100;
                        $mp_purcent = user_data('Account_MP_Remaining') / perso_data('MP_Total') * 100;
                        $xp_purcent = user_data('Account_Experience') / user_data('Level_Experience_Required') * 100;
                        ?>
			<div class="important"><?php 
                        echo LanguageValidation::iMsg("label.pseudo.card");
                        ?>
 :</div> <?php 
                        echo user_data('Account_Pseudo');
                        ?>
 <br />
			<div class="important"><?php 
                        echo LanguageValidation::iMsg("label.guild.card");
                        ?>
 :</div> <?php 
                        echo guild_data('Guild_Name');
                        ?>
 <br />
			<div class="important"><?php 
                        echo LanguageValidation::iMsg("label.order.card");
                        ?>
 :</div> <?php 
                        echo user_data('Order_Name');
                        ?>
 <br /><br />
			
			<div class="important"><?php 
                        echo LanguageValidation::iMsg("label.level.card");
                        ?>
</div> : <?php 
                        echo user_data('Level_Number');
                        ?>
 <br />
			
			<div class="important"><?php 
                        echo LanguageValidation::iMsg("label.hp.card");
                        ?>
</div> : <div title='<?php 
                        echo user_data('Account_HP_Remaining') . "/" . perso_data('HP_Total');
                        ?>
' class='barre' id='hp' >
												<div style='width:<?php 
                        echo $hp_purcent;
                        ?>
px;' ></div>
											</div> <br />
			<div class="important"><?php 
                        echo LanguageValidation::iMsg("label.mp.card");
                        ?>
</div> : <div title='<?php 
                        echo user_data('Account_MP_Remaining') . "/" . perso_data('MP_Total');
                        ?>
' class='barre' id='mp' >
												<div style='width:<?php 
                        echo $mp_purcent;
                        ?>
px;' ></div>
											</div>  <br />

			<div class="important"><?php 
                        echo LanguageValidation::iMsg("label.xp.card");
                        ?>
</div> : <div title='<?php 
                        echo user_data('Account_Experience') . "/" . user_data('Level_Experience_Required');
                        ?>
' class='barre' id='xp' >
												<div style='width:<?php 
                        echo $xp_purcent;
                        ?>
px;' >&nbsp;</div> 
												<em style='width:<?php 
                        echo 100 - $xp_purcent;
                        ?>
px;' class="restant"><?php 
                        echo $Next_Level;
                        ?>
</em>
											</div> <br /><br />
											
			<?php 
                        foreach ($array_character_stats as $char) {
                            ?>
				<div class="important"><?php 
                            echo LanguageValidation::iMsg("label." . strtolower($char) . ".card");
                            ?>
</div> : <?php 
                            echo perso_data(ucfirst($char) . '_Total');
                            ?>
 <br />
			<?php 
                        }
                        ?>
			
			<br />
			
		
			
			<div class="important"><?php 
                        echo LanguageValidation::iMsg("label.gold.card");
                        ?>
</div> : 	<?php 
                        echo render_money();
                        ?>
	<br/>
			<div class="important"><?php 
                        echo LanguageValidation::iMsg("label.notoriety.card");
                        ?>
</div> : <div class="gain notoriety"><?php 
                        echo user_data('Account_Notoriety');
                        ?>
</div><br /><br />
<?php 
                    }
                }
            }
            $already_call_perso_card = true;
        }
    }
Exemple #3
0
                }
                echo '<tr>';
                $desc = isset($sell_description) ? stripslashes(nl2br($Armor[$sell_description])) : '';
                $desc .= '<br/><br/>';
                $desc .= '' . LanguageValidation::iMsg("label.level.required") . ' : ' . (isset($sell_level_requiered) ? stripslashes($Armor[$sell_level_requiered]) : 1) . '<br/><br/>';
                $desc .= isset($sell_HP) ? sprintf($term_HP, stripslashes($Armor[$sell_HP]), strtolower($page) == "magic" ? $Armor[$sell_type] == "Attack" ? "Damage" : "Soin" : null) : '';
                $desc .= isset($sell_MP) ? sprintf($term_MP, stripslashes($Armor[$sell_MP])) : '';
                $desc .= isset($sell_strength) ? sprintf($term_strength, stripslashes($Armor[$sell_strength])) : '';
                $desc .= isset($sell_magic) ? sprintf($term_magic, stripslashes($Armor[$sell_magic])) : '';
                $desc .= isset($sell_agility) ? sprintf($term_agility, stripslashes($Armor[$sell_agility])) : '';
                $desc .= isset($sell_defense) ? sprintf($term_defense, stripslashes($Armor[$sell_defense])) : '';
                echo "<td><a class='infobulle' href='#'>";
                echo "<img title='" . $Armor['Image_Name'] . "' height='50px' src='data:" . $Armor['Image_Type'] . ";base64," . $Armor['Image_Base64'] . "' />";
                echo '<span>' . nl2br($desc) . '</span></a>';
                echo "</td>";
                echo '<td>' . (isset($sell_name) ? stripslashes($Armor[$sell_name]) : '') . '</td>';
                echo '<td>' . (isset($sell_price) ? render_money($Armor[$sell_price]) : '') . '</td>';
                echo '<td>';
                echo '<form method="POST" action="' . get_link($page, 'Game') . '">';
                echo "<input type=\"hidden\" name=\"" . $sell_id . "\" value=\"" . $Armor[$sell_id] . "\">";
                echo "<input type=\"hidden\" name=\"" . $sell_price . "\" value=\"" . $Armor[$sell_price] . "\">";
                echo '<input type="submit" name="Buy" value="' . LanguageValidation::nMsg("btn.shop.buy") . '"/>' . LanguageValidation::eMsg("btn.shop.buy");
                echo '<input type="hidden" name="token" value="' . generer_token("buy-" . strtolower($page) . "-" . $Armor[$sell_id]) . '"/>';
                echo '</form><br />';
                echo '</td>';
                echo '</tr>';
            }
            echo '</table></p>';
        }
    }
}
Exemple #4
0
                					$desc .= '+' .$Fragment_HP_Effect. ' HP'."\r\n";//<br />';
                					$desc .= '+' .$Fragment_MP_Effect. ' MP'."\r\n";//<br />';
                					$desc .= '+' .$Fragment_Strength_Effect. ' Force'."\r\n";//<br />';
                					$desc .= '+' .$Fragment_Magic_Effect. ' Magie'."\r\n";//<br />';
                					$desc .= '+' .$Fragment_Agility_Effect. ' Agilité'."\r\n";//<br />';
                					$desc .= '+' .$Fragment_Defense_Effect. ' Defense'."\r\n";//';
                **/
                echo "<tr>";
                echo '<td>' . $Fragment_Name . '</td>';
                // title=""
                echo "<td><a class='infobulle' href='#'>";
                echo "<img title='" . $Fragment['Image_Name'] . "' height='50px' src='data:" . $Fragment['Image_Type'] . ";base64," . $Fragment['Image_Base64'] . "' />";
                echo '<span>' . nl2br($desc) . '</span></a>';
                echo "</td>";
                echo '<td>' . $Inventory_Fragment_Quantity . '</td>';
                echo '<td>' . render_money($Fragment_Sale_Price) . '</td>';
                echo '<td>';
                echo '<form method="POST" action="' . get_link('Inventory', 'Game') . '">';
                echo "<input type=\"hidden\" name=\"Inventory_ID\" value=\"{$Inventory_ID}\">";
                echo "<input type=\"hidden\" name=\"Item_ID\" value=\"{$Item_ID}\">";
                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>';
    }
    inventory_menu_2();
}
Exemple #5
0
                        </div>
                        <div class="entry">
                        	<div class="left">Mana</div>
							<div class="right"><div title='<?php 
            echo user_data('Account_MP_Remaining') . "/" . perso_data('MP_Total');
            ?>
' class='barre' id='mp' >
												<div style='width:<?php 
            echo $mp_purcent;
            ?>
px;' ></div>
											</div></div>
                        </div>
                        <div class="entry">
							<div class="left">Or</div> : <?php 
            echo render_money();
            ?>
                        </div>
                        <div class="entry">
							<div class="left">Réputation</div> : <div class="gain notoriety"><?php 
            echo user_data('Account_Notoriety');
            ?>
</div>
                        </div>
                    </div>                    
                    
                    <div class="bottom"></div>
                </div>
<?php 
        }
    }