replace your scout with this one.
- Code: Select all
<?
include("html.php");
// pinoywebdev add s
$id = cln($id);
$trn = cln($trn);
// pinoywebdev add e
$pmp = mysql_fetch_array(mysql_query("SELECT trn,whore,thug,weed,condom,crack,medicine,thappy,whappy,money,brothel1,brothel2,brothel3 FROM $tab[pimp] WHERE id='$id';"));
$turns = mysql_fetch_array(mysql_query("SELECT defturns FROM $tab[pimp] WHERE id='$id';"));
$status = mysql_fetch_array(mysql_query("SELECT status FROM users WHERE id='$id1';"));
if(isset($_POST['scout']))
{
if (($trn == "") || ($pmp[0] <= 0) || ($trn > $pmp[0]) || ($trn == 0) || (strstr($trn,".")) || (!preg_match ('/^[0-9][0-9]*$/i', $trn)))
{ $error="You dont have enough turns!"; }
elseif($trn >= 301){$error="you can only use up to 300 turns!";}
else {
srand ((double) microtime() * 1000000);
//WHORE SCOUT
$scouts=$trn;
while ($scouts>0)
{
if($scouts > 25){
if($pmp["brothel1"]==1){$hoe=round($hoe+(rand(10,27)));$thug=round($thug+(rand(13,15)));}
elseif($pmp["brothel2"]==1){$hoe=round($hoe+(rand(18,33)));$thug=round($thug+(rand(14,18)));}
elseif($pmp["brothel3"]==1){$hoe=round($hoe+(rand(20,39)));$thug=round($thug+(rand(16,20)));}
else{$hoe=round($hoe+(rand(14,24)));$thug=round($thug+(rand(0,$scouts)));}
$scouts=($scouts-30);
}
elseif($scouts >= 10){
if($pmp["brothel1"]==1){$hoe=round($hoe+(rand(7,11)));$thug=round($thug+(rand(5,7)));}
elseif($pmp["brothel2"]==1){$hoe=round($hoe+(rand(9,14)));$thug=round($thug+(rand(6,9)));}
elseif($pmp["brothel3"]==1){$hoe=round($hoe+(rand(11,16)));$thug=round($thug+(rand(7,10)));}
else{$hoe=round($hoe+(rand(5,9)));$thug=round($thug+(rand(3,6)));}
$scouts=($scouts-10);
}
elseif($scouts >= 5){
if($pmp["brothel1"]==1){$hoe=round($hoe+(rand(2,6)));$thug=round($thug+(rand(5,10)));}
elseif ($pmp["brothel2"]==1){$hoe=round($hoe+(rand(2,8)));$thug=round($thug+(rand(5,10)));}
elseif ($pmp["brothel3"]==1){$hoe=round($hoe+(rand(2,10)));$thug=round($thug+(rand(5,10)));}
else{$hoe=round($hoe+(rand(2,3)));$thug=round($thug+(rand(5,10)));}
$scouts=($scouts-5);
}
}
//ADD BONUSES
$bonus=(($pmp[2]/10000)+1);
$hoe=$hoe*$bonus; $hoe=round($hoe);
$thug=$thug*$bonus; $thug=round($thug);
include("game_engine.php");
//FINAL UPGRADE
$hoetl=fixinput($pmp[1]+$hoe-$killbystd-$hoeleft);
$thugtl=fixinput($pmp[2]+$thug-$thugleft);
$cashtl=fixinput($pmp[9]+$cash);
$turntl=$pmp[0]-$trn;
if($trn >= 60){$protect=60;}else{$protect=$trn;}
// pinoywebdev add s
$turntl = cln($turntl);
$cashtl = cln($cashtl);
$hoetl = cln($hoetl);
$thugtl = cln($thugtl);
$protect = cln($protect);
$time = cln($time);
// pinoywebdev add e
mysql_query("UPDATE $tab[pimp] SET trn='$turntl', money='$cashtl', whore='$hoetl', thug='$thugtl', protection='$protect', protectstarted='$time' WHERE id='$id'");
//UPGRADE THERE NETWORTH
$networth=net($id);$wappy=hoehappy($id);$tappy=thughappy($id);
// pinoywebdev add s
$time = cln($time);
$wappy = cln($wappy);
$tappy = cln($tappy);
$networth = cln($networth);
// pinoywebdev add e
mysql_query("UPDATE $tab[pimp] SET whappy='$wappy', thappy='$tappy',networth='$networth', online='$time' WHERE id='$id'");
}
}
GAMEHEADER("scout for hoes");
?>
<table width="100%" align="center" cellspacing="0" cellpadding="12" border="0">
<tr>
<td align="center" valign="top">
<form method=post action="scout.php?tru=<?=$tru?>">
<br><br><font size="+1"><b>Scout for hoes</b></font>
<br><b><font color="#7777CC">Find some bitches and make some cash!</font></b>
<br>
<div align="center">
<table border="0" width="100%">
<tr>
<td width="100%"><center>
</center>
</td>
<td><tr><br>
<br><br><font size="+1"><b><center>Search the <select name="location" class="text">
<option value="1" <?if($location==1){echo"selected";}?>>Streets</option>
<option value="2" <?if($location==2){echo"selected";}?>>Street level brothels</option>
<option value="3" <?if($location==3){echo"selected";}?>>City center brothels</option>
<option value="4" <?if($location==4){echo"selected";}?>>Strip clubs</option>
<option value="5" <?if($location==5){echo"selected";}?>>Strip club brothels</option>
</select> For more bitches!</b></font></center>
</td>
</tr>
</table>
</div>
<br>
<font color="#FFCC00"><?=$error?></font><br>
<?if(($keyboard==enter) && (!$error)){?>
<nobr>
<font color="#FFCC00">
<?
if(($thugleft > 0) && ($hoeleft > 0)){?></font><?=commas($thugleft)?> <font color="#FFCC00">thug<?if($thugleft != 1){echo"s";}?> and </font><?=commas($hoeleft)?> <font color="#FFCC00">hoe<?if($hoeleft != 1){echo"s";}?> got pissed and ditched you.<br><?}
elseif($thugleft > 0){?></font><?=commas($thugleft)?> <font color="#FFCC00">thug<?if($thugleft != 1){echo"s";}?> got pissed and ditched you.<br><?}
elseif($hoeleft > 0){?></font><?=commas($hoeleft)?> <font color="#FFCC00">hoe<?if($hoeleft != 1){echo"s";}?> got pissed and ditched you.<br><?}
if($killbystd > 0){?></font><?=commas($killbystd)?> <font color="#FFCC00">hoe<?if($killbystd != 1){echo"s";}?> died of multiple STD's.<br><?}
if($infected > 0){?>Your hoes used </font><?=commas($infected)?> <font color="#FFCC00">box<?if($infected != 1){echo"es";}?> of medicine.<br><?}
?>
</font>
<?if($event){?><br><font color="#B5CDE6"><?=$event?></font><?}?><br>
<b>using <font color="3366FF"><?=$trn?></font> turns, you found a total of <font color="#3366FF"><?=commas($hoe)?></font> hoes and found <font color="#3366FF"><?=commas($thug)?></font> thugs.
<br>your hoes returned with them <font color="#3366FF">$<?=commas($cash)?></font> in cash</b>
</nobr>
<br>
<?
report("$logpimp used $trn turns and found a total of " . commas($hoe) . " hoes and " . commas($thug) . " thugs");
}?>
<br>
use <input type="text" class="text" maxlength="3" size="5" name="trn" value="<?=$turns[0]?>"> turns pimp'n your hoes.</b>
<br>
<input type="hidden" name="keyboard" value="enter"><input type="submit" class="button" name="scout" value="scout">
</form>
<?php echo bar($id,$id1);?>
</td>
</tr>
</table>
<?php
GAMEFOOTER();
?>
