This Is My First Attempt On Making A Mod Please Try It Out
Basiclly you buy a sweet and you eat it straight away and your energy will go up by a bit.
Create A file called energysweetshop.php
<?php
/*-----------------------------------------------------
-- Energysweetshop V.2
-- A product of Lost-Warzone
-- [url]http://www.lost-warzone.net[/url]
-- energysweetshop.php
-- Free Mod
-- not to be sold and please keep this part
-----------------------------------------------------*/
include "globals.php";
print "<h2>Energy Sweet Store</h2>
[i]Walking in to the Energy Sweet Shop..you decide whether or not to buy a Energy Sweet..
<table width="70% border=1>
<th height=8%>Energy Sweet</th><th height=8%>Cost</th>
<tr>
<td>Energy Sweet Shop</td>
<td>$10 [url='energysweetshop.php?spend=1']Buy Energy Sweet[/url]</td>
</tr>
</table>
$money_take=10;//Enter how much money you would want to be taken
if ($_GET['spend'] == '1')
{
if ($ir['money'] < 10)
{
print "You don't have enough money to buy the energy sweet..Best leave now..";
}
else
{
if ($ir ['money'] >10)
{
print "You Bought A energy sweet And You Feel Some of your will coming to you after you ate it
[url='explore.php']Back to Explore[/url]
";
$db->("UPDATE users SET money=".$money_take.", energy=energy+5 WHERE userid=$userid",$c);
}
}
}
$h=>endpage();
?>
Please Tell Me If theres anything wrong or any errors because i want to fix it myself i need to learn if i still cant fix it then i will ask for help and you can post the right one.
You Can change the energy to anything you want even the name of the shop and the price.