Jump to content
MakeWebGames

Recommended Posts

Posted

I Saw that kaolos had a food one So i qwickly done it to a fish and chip shop

it gives you energy and will

 

So Make a file called chippy.php put in

EDIT: Stolen source code; Originally by Karlos

Now You are done

Guest Sniko`
Posted

Re: [v2] Fish & Chippy mod

If it was me coding the MOD - i wouldnt do will as a result of buying things from the chippy becuase then people have no reason to donate to get the will potion. lOl - just a thought

Posted

Re: [v2] Fish & Chippy mod

Well Ummm... You did not code this!

Funny how this is a spaced out verison of my coding (When I was noobier :-P)

Still this is not you mod! You hardly editted it!

Original Coding:

<?php
/* 
Bar23 Mod
Made By Karlos
Made For Mccode V2
Date Made: 20 - Sep - 2008
Fixed Up By Kyle
*/
include("globals.php");
if(!$_GET['spend'])
{
  echo "
  Welcome To The Famous Bar23

  [i]Bar23 Was Established In 2008 For The Needy Population Of '.$set['game_name'].'[/i]

  [i]These Are Not Items, These Add On To Your Bars Sratight Away.[/i]
  [b]Lunches[/b]

  <table border='1'>
     <tr>
        <th>Lunch</th>
        <th>Cost</th>
        <th>Buy</th>
     </tr>
     <tr>
        <td>Curry</td>
        <td>$250</td>
        <td>[url='?spend=1']Buy[/url]</td>
     </tr>
     <tr>
        <td>Fish</td>
        <td>$400</td>
        <td>[url='?spend=2']Buy[/url]</td>
     </tr>
     <tr>
        <td>Pizza</td>
        <td>$700</td>
        <td>[url='?spend=3']Buy[/url]</td>
     </tr>
     <tr>
        <td>Roast Dinner</td>
        <td>$1000</td>
        <td>[url='?spend=4']Buy[/url]</td>
     </tr>
     <tr>
        <td>Salad</td>
        <td>$1500</td>
        <td>[url='?spend=5']Buy[/url]</td>
     </tr>
  <table>



  [b]Alcohol[/b]

  <table border='1'>
     <tr>
        <th>Lunch</th>
        <th>Cost</th>
        <th>Buy</th>
     </tr>
     <tr>
        <td>Carlsberg</td>
        <td>$250</td>
        <td>[url='?spend=6']Buy[/url]</td>
     </tr>
     <tr>
        <td>Jack Daniels</td>
        <td>$400</td>
        <td>[url='?spend=7']Buy[/url]</td>
     </tr>
     <tr>
        <td>Moonshine</td>
        <td>$700</td>
        <td>[url='?spend=8']Buy[/url]</td>
     </tr>
     <tr>
        <td>Southern Comfort</td>
        <td>$1000</td>
        <td>[url='?spend=9']Buy[/url]</td>
     </tr>
     <tr>
        <td>Vodka</td>
        <td>$1500</td>
        <td>[url='?spend=10']Buy[/url]</td>
     </tr>
  </table>";
}
else if($_GET['spend'] == 1)
{
  if($ir['money'] < 249)
  {
     echo "You don\'t have enough money to buy the Curry, you need $250!";
  }
  else
  {
     $sql = sprintf("UPDATE users SET money=money-250, energy=energy+3 WHERE userid=%s", $userid);
     mysql_query($sql);
     echo "Congratulations, you bought a Curry for $250!

     [url='bar23.php']Back to Shop[/url]
";
  }
}

else if($_GET['spend'] == 2)
{
  if($ir['money'] <399)
  {
     echo "You don\'t have enough money to buy the Fish, you need $400!";
  }
  else
  {
     $sql = sprintf("UPDATE users SET money=money-400, energy=energy+5 WHERE userid=%s", $userid);
     mysql_query($sql);
     echo "Congratulations, you bought a Fish for $400!

     [url='bar23.php']Back to Shop[/url]
";
  }
}

else if($_GET['spend'] == 3)
{
  if($ir['money'] <699)
  {
     echo "You don\'t have enough money to buy the Pizza, you need $700!";
  }
  else
  {
     $sql = sprintf("UPDATE users SET money=money-700, energy=energy+10 WHERE userid=%s", $userid);
     mysql_query($sql);
     echo "Congratulations, you bought a Pizza for $700!

     [url='bar23.php']Back to Shop[/url]
";
  }
}

else if($_GET['spend'] == 4)
{
  if($ir['money'] < 999)
  {
     echo "You don\'t have enough money to buy the Roast Dinner, you need $1000!";
  }
  else
  {
     $sql = sprintf("UPDATE users SET money=money-1000, energy=energy+13 WHERE userid=%s", $userid);
     mysql_query($sql);
     echo "Congratulations, you bought a Roast Dinner for $1000!

     [url='bar23.php']Back to Shop[/url]
";
  }
}
else if($_GET['spend'] == 5)
{
  if($ir['money'] < 1499)
  {
     echo "You don\'t have enough money to buy the Salad, you need $1500!";
  }
  else
  {
     $sql = sprintf("UPDATE users SET money=money-250, energy=energy+18 WHERE userid=%s", $userid);
     mysql_query($sql);
     echo "Congratulations, you bought a Salad for $1500!

     [url='bar23.php']Back to Shop[/url]
";
  }
}
else if($_GET['spend'] == 6)
{
  if($ir['money'] < 249)
  {
     echo "You don\'t have enough money to buy the Carlsberg, you need $250!";
  }
  else
  {
     $sql = sprintf("UPDATE users SET money=money-250, brave=brave+3 WHERE userid=%s", $userid);
     mysql_query($sql);
     echo "Congratulations, you bought a Carlsberg for $250!

     [url='bar23.php']Back to Shop[/url]
";
  }
}
else if($_GET['spend'] == 7)
{
  if($ir['money'] <399)
  {
     echo "You don\'t have enough money to buy the Jack Daniels, you need $400!";
  }
  else
  {
     $sql = sprintf("UPDATE users SET money=money-400, brave=brave+5 WHERE userid=%s", $userid);
     mysql_query($sql);
     echo "Congratulations, you bought a Jack Daniels for $400!

     [url='bar23.php']Back to Shop[/url]
";
  }
}
else if($_GET['spend'] == 8)
{
  if($ir['money'] <699)
  {
     echo "You don\'t have enough money to buy the Moonshine, you need $700!";
  }
  else
  {
     $sql = sprintf("UPDATE users SET money=money-700, brave=brave+10 WHERE userid=%s", $userid);
     mysql_query($sql);
     echo "Congratulations, you bought a Moonshine for $700!

     [url='bar23.php']Back to Shop[/url]
";
  }
}

else if($_GET['spend'] == 9)
{
  if($ir['money'] < 999)
  {
     echo "You don\'t have enough money to buy the Southern Comfort, you need $1000!";
  }
  else
  {
     $sql = sprintf("UPDATE users SET money=money-1000, brave=brave+13 WHERE userid=%s", $userid);
     mysql_query($sql);
     echo "Congratulations, you bought a Southern Comfort for $1000!

     [url='bar23.php']Back to Shop[/url]
";
  }
}
else if($_GET['spend'] == 10)
{
  if($ir['money'] < 1499)
  {
     echo "You don\'t have enough money to buy the Vodka, you need $1500!";
  }
  else
  {
     $sql = sprintf("UPDATE users SET money=money-250, brave=brave+18 WHERE userid=%s", $userid);
     mysql_query($sql);
     echo "Congratulations, you bought a Vodka for $1500!

     [url='bar23.php']Back to Shop[/url]
";
  }
}
$h->endpage();
?>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...