Fortitude Posted September 23, 2008 Share Posted September 23, 2008 I've tried searching and wasn't able to find what I was looking for, can somebody tell me what file it is I will need to edit in order for me to have a brave refill like the energy refill that requires crystals. Thanks..... Quote Link to comment Share on other sites More sharing options...
-Matt- Posted September 23, 2008 Share Posted September 23, 2008 Re: Brave refill if v1, copy the energy and change to brave. Quote Link to comment Share on other sites More sharing options...
Fortitude Posted September 23, 2008 Author Share Posted September 23, 2008 Re: Brave refill I'm sorry for not mentioning the version, it's version 2 Quote Link to comment Share on other sites More sharing options...
Joel Posted September 23, 2008 Share Posted September 23, 2008 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. Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted September 24, 2008 Share Posted September 24, 2008 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 Quote Link to comment Share on other sites More sharing options...
Joel Posted September 24, 2008 Share Posted September 24, 2008 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 Quote Link to comment Share on other sites More sharing options...
Fortitude Posted September 24, 2008 Author Share Posted September 24, 2008 Re: Brave refill I get just a blank page, thank you for trying though. :) Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted September 24, 2008 Share Posted September 24, 2008 Re: Brave refill it was 6am lol Quote Link to comment Share on other sites More sharing options...
Fortitude Posted September 24, 2008 Author Share Posted September 24, 2008 Re: Brave refill I figured it out :D, thanks again for trying though :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.