- <?php
- //******IT.PRO.inc******//
- //Immortal Thug Security//
- //////////////////////////
- require_once("globals.php");
- $_GET['action'] = isset($_GET['action']) && is_string($_GET['action']) ? strtolower(trim($_GET['action'])) : false;
- if($ir['village2'] ==10)
- {
- $db->query(sprintf("UPDATE `users` SET `village3`=`village3`+1 WHERE (`userid`=%d)", $userid));
- $db->query(sprintf("UPDATE `users` SET `fishing_aloud`=`fishing_aloud`+`village3` WHERE (`userid`=%d)", $userid));
- $db->query(sprintf("UPDATE `users` SET `village2`=`village2`-10 WHERE (`userid`=%d)", $userid));
- }
- switch($_GET['action'])
- {
- case 'fish': fish_1(); break;
- case 'fishsub': fish_1_sub(); break;
- default: fish_index(); break;
- }
- /**
- ** Calls the cases so kill.php?fish
- **/
- function fish_index()
- {
- global $ir,$userid;
- echo "<center><h2>Welcome to the entrance of human village number ".$ir['village']."</h2>
- </center>";
- echo "<center><br /><u>--------------------Human Village--------------------</u><br /><br />
- <a href='kill.php?action=fish'>----------<font color=red>K</font color>i<font color=red>l</font color>l <font color=red>H</font color>u<font color=red>m</font color>a<font color=red>n</font color>----------</u></a><br /><br />You Have ".$ir['fishing_aloud']." humans left to kill<br />You Have Killed a Total Of ".$ir['humanskilled']." Humans<br />
- </center>";
- }
- /**
- ** This is the main part you see when you come into the php page
- **/
- if ($ir['jailtime'] > 0){
- echo "<center>You cannot Kill when you're in hells jail!</center>";
- exit;
- }
- if ($ir['hospital'] > 0){
- echo "<center>You cannot kill when you're in hells hospital!</center>";
- exit;
- }
- /**
- ** That makes sure you are not in jail or hospital
- **/
- function fish_1()
- {
- global $ir,$userid,$db,$h;
- if($ir['fishing_aloud'] < 1){
- echo sprintf("You have %u humans to kill", $ir['fishing_aloud']);
- exit;
- }
- if ($ir['fishing_aloud'] ==1){
- $db->query(sprintf("UPDATE `users` SET `village`=`village`+1 WHERE (`userid`=%d)", $userid));
- $db->query(sprintf("UPDATE `users` SET `village2`=`village2`+1 WHERE (`userid`=%d)", $userid));
- }
- $db->query(sprintf("UPDATE `users` SET `fishing_aloud`=`fishing_aloud`-1 WHERE (`userid`=%d)", $userid));
- $db->query(sprintf("UPDATE `users` SET `humanskilled`=`humanskilled`+1 WHERE (`userid`=%d)", $userid));
- $rand_fish = rand(1,1);
- $rand_money = rand(100,500);
- $rand_exp = rand(1,100);
- echo sprintf("<center>You begin to look through the village when you spot a human, you sold sold it for %u money!</center><br />
- There are %u Humans Left to find in This village", abs((int) $rand_money), number_format($ir['fishing_aloud']));
- $db->query(sprintf("UPDATE `users` SET `money`=`money`+%u WHERE (`userid`=%d)", abs((int) $rand_money), $userid));
- echo "<center><br />[<a href='kill.php?action=fish'>Kill again</a>]</center><br />";
- echo "<center>[<a href='kill.php'>Back</a>]</center><br />";
- }
- ?>
