Fortitude Posted September 23, 2008 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
-Matt- Posted September 23, 2008 Posted September 23, 2008 Re: Brave refill if v1, copy the energy and change to brave. Quote
Fortitude Posted September 23, 2008 Author Posted September 23, 2008 Re: Brave refill I'm sorry for not mentioning the version, it's version 2 Quote
Joel Posted September 23, 2008 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
Zero-Affect Posted September 24, 2008 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
Joel Posted September 24, 2008 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
Fortitude Posted September 24, 2008 Author Posted September 24, 2008 Re: Brave refill I get just a blank page, thank you for trying though. :) Quote
Zero-Affect Posted September 24, 2008 Posted September 24, 2008 Re: Brave refill it was 6am lol Quote
Fortitude Posted September 24, 2008 Author Posted September 24, 2008 Re: Brave refill I figured it out :D, thanks again for trying though :) Quote
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.