示例#1
0
					<br />
					<p class="lead"><img src="//<?php 
        echo $row['locale'] . '.' . $domain;
        ?>
/inc/img/worlds/<?php 
        echo $row['world_name'];
        ?>
.png" /> <?php 
        echo $row['name'];
        ?>
<br />
					<small>Level <?php 
        echo $row['level'];
        ?>
 <?php 
        echo GetJobname($row['job']);
        ?>
</small>
					</p>
				</center>
			</div>

<?php 
    }
    ?>
		</div>
	</div>
</div>
<?php 
}
require_once __DIR__ . '/../inc/footer.php';
示例#2
0
		</div>


<?php 
    } elseif ($job_css_class == 'mechanic') {
        ?>
		<div id="inv_mechanic" style="display: none">
<?php 
        MakeHideToggleButton('job_equipment');
        ?>
			<span class="top-col lt"><?php 
        echo $character_info['name'];
        ?>
</span>
			<span class="top-col lb"><?php 
        echo GetJobname($character_info['job']);
        ?>
</span>
			<span class="top-col rt"><?php 
        echo $character_info['guildname'];
        ?>
</span>
			<span class="top-col rb"><?php 
        echo $character_info['fame'];
        ?>
</span>
			<div class="avatar-container" style="background-image: url('<?php 
        MakePlayerAvatar($character_info['name'], CURRENT_LOCALE, array('size' => 'big', 'tamingmob' => 1932016, 'onlyurl' => true));
        ?>
');"><span><?php 
        echo $character_info['name'];
示例#3
0
                    ?>
</a>'s character 
					<a href="//<?php 
                    echo $row['locale'];
                    ?>
.<?php 
                    echo $domain;
                    ?>
/character/<?php 
                    echo $content[0];
                    ?>
"><?php 
                    echo $content[0];
                    ?>
</a> advanced to a '<span style="font-size: 13px"><?php 
                    echo GetJobname($info);
                    ?>
' (<?php 
                    echo MakeOrdinalNumberSuffix(GetJobRank($info));
                    ?>
 job)!</span>
					<span status-post-time="<?php 
                    echo $timestamp;
                    ?>
" style="float:right;"><?php 
                    echo time_elapsed_string($seconds_since);
                    ?>
 ago - Auto</span>
				</p>
			</div>
<?php 
示例#4
0
//$row['mhp'] = $row['mhp'].' ('.$before['mhp'].' + '.($row['mhp'] - $before['mhp']).')';
//$row['mmp'] = $row['mmp'].' ('.$before['mmp'].' + '.($row['mmp'] - $before['mmp']).')';
$nextlevelexp = GetNextLevelEXP($row['level']);
$nextlevelperc = $nextlevelexp == 0 ? 0 : round($row['exp'] / $nextlevelexp * 100);
$image = imagecreatetruecolor(192, 345);
imagealphablending($image, false);
imagesavealpha($image, true);
$bg_image = imagecreatefrompng("../inc/img/stat_window.png");
imagecopyresampled($image, $bg_image, 0, 0, 0, 0, 192, 345, 192, 345);
imagealphablending($image, true);
$base_x = 74;
$base_y = 38;
$step = 18;
$i = 0;
ImageTTFText($image, 9, 0, $base_x, $base_y + $step * $i++, imagecolorallocate($image, 0, 0, 0), $font, $row['name']);
ImageTTFText($image, 9, 0, $base_x, $base_y + $step * $i++, imagecolorallocate($image, 0, 0, 0), $font, GetJobname($row['job']));
ImageTTFText($image, 9, 0, $base_x, $base_y + $step * $i++, imagecolorallocate($image, 0, 0, 0), $font, $row['level']);
ImageTTFText($image, 9, 0, $base_x, $base_y + $step * $i++, imagecolorallocate($image, 0, 0, 0), $font, $row['exp'] . ' (' . $nextlevelperc . '%)');
ImageTTFText($image, 9, 0, $base_x, $base_y + $step * $i++, imagecolorallocate($image, 0, 0, 0), $font, $row['honourlevel']);
ImageTTFText($image, 9, 0, $base_x, $base_y + $step * $i++, imagecolorallocate($image, 0, 0, 0), $font, $row['honourexp']);
ImageTTFText($image, 9, 0, $base_x, $base_y + $step * $i++, imagecolorallocate($image, 0, 0, 0), $font, $row['guildname']);
ImageTTFText($image, 9, 0, $base_x, $base_y + $step * $i++, imagecolorallocate($image, 0, 0, 0), $font, $row['chp'] . " / " . $row['mhp']);
ImageTTFText($image, 9, 0, $base_x, $base_y + $step * $i++, imagecolorallocate($image, 0, 0, 0), $font, $row['cmp'] . " / " . $row['mmp']);
ImageTTFText($image, 9, 0, $base_x, $base_y + $step * $i++, imagecolorallocate($image, 0, 0, 0), $font, $row['fame']);
$base_y += 23;
ImageTTFText($image, 9, 0, $base_x, $base_y + $step * $i++, imagecolorallocate($image, 0, 0, 0), $font, $row['ap']);
$base_y += 10;
ImageTTFText($image, 9, 0, $base_x, $base_y + $step * $i++, imagecolorallocate($image, 0, 0, 0), $font, $row['str']);
ImageTTFText($image, 9, 0, $base_x, $base_y + $step * $i++, imagecolorallocate($image, 0, 0, 0), $font, $row['dex']);
ImageTTFText($image, 9, 0, $base_x, $base_y + $step * $i++, imagecolorallocate($image, 0, 0, 0), $font, $row['int']);
ImageTTFText($image, 9, 0, $base_x, $base_y + $step * $i++, imagecolorallocate($image, 0, 0, 0), $font, $row['luk']);
示例#5
0
if ($request_type == 'visibility') {
    if (!$_loggedin) {
        JSONDie('Not loggedin');
    }
    RetrieveInputGET('name', 'what', 'shown');
    $internalid = IsOwnCharacter($P['name'], CURRENT_LOCALE);
    if ($internalid === false) {
        JSONDie('No.');
    }
    $q = $_char_db->query("\nINSERT INTO\n\tcharacter_options\nVALUES\n\t(\n\t\t" . $internalid . ",\n\t\t'display_" . $_char_db->real_escape_string($P['what']) . "',\n\t\t" . ($P['shown'] == 'false' ? 0 : 1) . "\n\t)\nON DUPLICATE KEY UPDATE\n\t`option_value` = VALUES(`option_value`)");
    if ($_char_db->affected_rows != 0) {
        JSONAnswer(array('result' => 'okay'));
    } else {
        JSONAnswer(array('result' => 'failure'));
    }
} elseif ($request_type == 'statistics') {
    RetrieveInputGET('name');
    $q = $_char_db->query("\nSELECT \n\tchr.name,\n\tw.world_name,\n\tchr.channel_id AS channel,\n\tchr.level,\n\tchr.job,\n\tchr.fame,\n\tchr.str,\n\tchr.dex,\n\tchr.int,\n\tchr.luk,\n\tchr.exp,\n\tchr.map,\n\tchr.honourlevel AS honorlevel,\n\tchr.honourexp AS honorexp,\n\tmesos,\n\tTIMESTAMPDIFF(SECOND, last_update, NOW()) AS `seconds_since`\nFROM\n\t`characters` chr\nLEFT JOIN \n\tworld_data w\n\tON\n\t\tw.world_id = chr.world_id\nWHERE \n\tchr.name = '" . $_char_db->real_escape_string($P['name']) . "'");
    if ($q->num_rows == 0) {
        JSONDie('Character not found', 404);
    }
    $row = $q->fetch_assoc();
    $percenta = GetExpPercentage($row['level'], $row['exp']);
    $percentb = round($percenta * 100) / 100;
    $job = GetJobname($row['job']);
    $map = GetMapname($row['map'], CURRENT_LOCALE);
    $extra = array('percentage' => $percentb, 'job_name' => $job, 'map_name' => $map);
    $answer = $row + $extra;
    $q->free();
    JSONAnswer(array('result' => $answer));
}