Jump to content
MakeWebGames

Brave refill


Fortitude

Recommended Posts

Re: Brave refill

 

crystalmarket.php

^^ That's the file you would have to edit if you wanted to spend crystals on brave refill, If you post the crystalmarket.php I can do it under 1 minute.

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

Link to comment
Share on other sites

Re: Brave refill

 

crystalmarket.php

^^ That's the file you would have to edit if you wanted to spend crystals on brave refill, If you post the crystalmarket.php I can do it under 1 minute.

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

Link to comment
Share on other sites

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...