📄 bulletcalculator.php
字号:
<?php
include("_include-config.php");
?>
<html>
<head>
<title>[( Elite Avengers )]</title>
<link rel="stylesheet" type="text/css" href="css-v1.css">
</head>
<body>
<table width=60% align=center>
<tr>
<td class=SubTitle>
<b>Bullet Calculator</b>
</td>
</tr>
<tr>
<td class=mainTxt>
<table width=100%><form method=post>
<tr><td width="8%">Your rank</td><td width=100>Target's rank</td><td>Your weapon</td><td>Target's Weapon</td></tr>
<tr><td width="8%">
<select name=yrank>
<option value=x>Your rank</option>
<option value=1>Private - Scum - Constable</option>
<option value=2>Private First Class - Pee Wee - Senior Constable</option>
<option value=3>Specialist - Thug - Incremental Senior Constable </option>
<option value=4>Corporal - Gangster - Sergeant</option>
<option value=5>Sergeant - Hitman - Incremental Sergeant</option>
<option value=6>Staff Sergeant - Assassin - Inspector</option>
<option value=7>Sergeant First Class - Boss - Chief Inspector</option>
<option value=8>Master Sergeant - Godfather - Superintendent</option>
<option value=9>First Sergeant - Legendary Godfather - Chief Superintendent</option>
<option value=10>Sergeant Major - Don - Assistant Commissioner</option>
<option value=11>Command Sergeant Major - Respectable Don - Deputy Commissioner</option>
<option value=12>Sergeant Major Of The Army - Legendary Don - Commissioner Of Police</option>
</select>
</td><td width=100>
<select name=hrank>
<option value=x>Target's Rank</option>
<option value=1>Private - Scum - Constable</option>
<option value=2>Private First Class - Pee Wee - Senior Constable</option>
<option value=3>Specialist - Thug - Incremental Senior Constable </option>
<option value=4>Corporal - Gangster - Sergeant</option>
<option value=5>Sergeant - Hitman - Incremental Sergeant</option>
<option value=6>Staff Sergeant - Assassin - Inspector</option>
<option value=7>Sergeant First Class - Boss - Chief Inspector</option>
<option value=8>Master Sergeant - Godfather - Superintendent</option>
<option value=9>First Sergeant - Legendary Godfather - Chief Superintendent</option>
<option value=10>Sergeant Major - Don - Assistant Commissioner</option>
<option value=11>Command Sergeant Major - Respectable Don - Deputy Commissioner</option>
<option value=12>Sergeant Major Of The Army - Legendary Don - Commissioner Of Police</option>
</select>
</td><td>
<select name=weapon>
<option value=x>Your weapon</option>
<option value=1>1</option>
<option value=2>2</option>
<option value=3>3</option>
<option value=4>4</option>
<option value=5>5</option>
</select>
</td><td>
<select name=protection>
<option value=x>Target's Protection</option>
<option value=0>None</option>
<option value=1>1</option>
<option value=2>2</option>
<option value=3>3</option>
<option value=4>4</option>
<option value=5>5</option>
</select>
</td>
</tr>
<tr>
<td colspan=99 align=right><input type="submit" name="cal" value="Calculate!"></td>
</tr>
</form></table>
</td>
</tr>
<?php
if(isset($_POST['cal'])) {
if($_POST['protection'] == x OR $_POST['weapon'] == x OR $_POST['hrank'] == x Or $_POST['yrank'] == x)
echo "<font color=red>* You didn't select everything!</font>";
elseif($_POST['protection'] > 5 OR $_POST['protection'] < 0)
echo "<font color=red>* Invalid protection!</font>";
elseif($_POST['weapon'] > 5 OR $_POST['weapon'] < 1)
echo "<font color=red>* Invalid weapon!</font>";
elseif($_POST['hrank'] > 12 OR $_POST['hrank'] < 1)
echo "<font color=red>* Invalid rank of your target!</font>";
elseif($_POST['yrank'] > 12 OR $_POST['yrank'] < 1)
echo "<font color=red>* Invalid rank of yourself!</font>";
else {
$rank1 = round($_POST['yrank']*$_POST['yrank']);
$vrank1 = round($_POST['hrank']*$_POST['hrank']);
$protection = round($_POST['protection']+1);
$weapon = round($_POST['weapon']+1);
$bulletsneeded2 = round(((((125000/$rank1)/$weapon)*$vrank1)*$protection)/10);
$bulletsneeded1 = round($bulletsneeded2*10);
$bulletsneeded = number_format($bulletsneeded1);
$bulletsneeded12 = round(((((150000/$rank1)/$weapon)*$vrank1)*$protection)/10);
$bulletsneeded11 = round($bulletsneeded12*10);
$bulletsneeded1 = number_format($bulletsneeded11);
$bulletsneeded22 = round(((((100000/$rank1)/$weapon)*$vrank1)*$protection)/10);
$bulletsneeded21 = round($bulletsneeded22*10);
$bulletsneeded2 = number_format($bulletsneeded21);
echo "<tr><td class=mainTxt>Sure Kill: $bulletsneeded1 bullets!</td></tr>";
echo "<tr><td class=mainTxt>Posible Kill: $bulletsneeded bullets!</td></tr>";
echo "<tr><td class=mainTxt>Reasonable Kill: $bulletsneeded2 bullets!</td></tr>";
}
}
?>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -