Esempio n. 1
0
function display_ad()
{
    force();
    prepare_ad();
    prepare_response();
    print_ad();
    //echo "Displaying ad..."; global $display_ad; print_r($display_ad); global $request_settings; print_r($request_settings); global $zone_detail; print_r($zone_detail);  exit;
    exit;
}
Esempio n. 2
0
         if ($addon1[looktype] == true) {
             $finaddon = $addon1[looktype] + $addon1[lookaddons] * 300;
             $playerOutfit .= '<img src="images/addons/' . $finaddon . '.gif"/>';
         }
     }
 }
 // Experience
 $currentlevelexp = (50 * ($player->getLevel() - 1) * ($player->getLevel() - 1) * ($player->getLevel() - 1) - 150 * ($player->getLevel() - 1) * ($player->getLevel() - 1) + 400 * ($player->getLevel() - 1)) / 3;
 $nextlevel = $player->getLevel() + 1;
 $nextLevelExp = (50 * $player->getLevel() * $player->getLevel() * $player->getLevel() - 150 * $player->getLevel() * $player->getLevel() + 400 * $player->getLevel()) / 3;
 $leveldifference = $nextLevelExp - $currentlevelexp;
 $partofcurrentexp = $player->getExperience() - $currentlevelexp;
 $expBarPercentage = $partofcurrentexp / $leveldifference * 100;
 // Spent Mana
 $constantMana = $vocationConstantMana[$player->getWorld()][$player->getVocation()];
 $spentMana = 1600 * force($constantMana, $player->getMagLevel());
 $spentManaPer = $player->getManaSpent() / $spentMana * 100;
 // Equip
 $number_of_items = 1;
 $contentEquipment .= '<table with=100% style="background-image:url(\'images/equipment/bg.gif\'); border: solid 1px #888888;" CELLSPACING="1"><TR>';
 $list = array('2', '1', '3', '6', '4', '5', '9', '7', '10', '8');
 foreach ($list as $pid => $name) {
     $top = $SQL->query('SELECT * FROM player_items WHERE player_id = ' . $player->getId() . ' AND pid = ' . $list[$pid] . ';')->fetch();
     if ($top[itemtype] == false) {
         if ($list[$pid] == '8') {
             $contentEquipment .= '<td></td>';
         }
         if (is_int($number_of_items / 3)) {
             $contentEquipment .= '<TD style="text-align: center;"><img src="images/equipment/' . $list[$pid] . '.gif" width="32" higth="32" ></TD></tr><tr>';
         } else {
             $contentEquipment .= '<TD style="text-align: center;"><img src="images/equipment/' . $list[$pid] . '.gif" width="32" higth="32"></TD>';