Re: Brave refill
he means crystaltemple.php
find:
[url='crystaltemple.php?spend=refill']Energy Refill - {$set['ct_refillprice']} Crystals[/url]
add below:
[url='crystaltemple.php?spend=brefill']Brave Refill - 50 Crystals[/url]
find:
if($_GET['spend'] == 'refill')
{
if($ir['crystals'] <$set['ct_refillprice'])
{
print "You don't have enough crystals!";
}
else if($ir['energy'] == $ir['maxenergy'])
{
print "You already have full energy.";
}
else
{
$db->query("UPDATE users SET energy=maxenergy,crystals=crystals-{$set['ct_refillprice']} WHERE userid=$userid");
print "You have paid {$set['ct_refillprice']} crystals to refill your energy bar.";
}
}
add below:
else if($_GET['spend'] == 'brefill')
{
if($ir['crystals'] < 50)
{
print "You don't have enough crystals!";
}
else if($ir['brave'] == $ir['maxbrave'])
{
print "You already have full brave.";
}
else
{
$sql=sprintf('UPDATE `users` SET brave=maxbrave, crystals=crystals-50 WHERE userid = %u', $userid);
$db->query
print "You have paid 50 crystals to refill your brave bar.";
}
}
thats a example it may not work :-P
Oh yeah I forgot lol, I meant crystal temple :-o
Sorry lol never mind Zero-Affect beat me to it