Karlos Posted April 28, 2009 Posted April 28, 2009 This code is simple.... :wink: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add this SQL: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find the following in attack.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And add this under it.. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Miniman Posted April 28, 2009 Posted April 28, 2009 [mccode v2] Crystal Temple I like the way you've used "Start Configuration" I didn't think of that lol Look's good :) Quote
Karlos Posted April 28, 2009 Author Posted April 28, 2009 [mccode v2] Crystal Temple Thanks, It just draw's more attention to what should only be modified so the code can work still. Quote
wolfe Posted April 28, 2009 Posted April 28, 2009 Re: [mccode v2] Crystal Temple Should probably be over in the free mods. Quote
BlueDevil23 Posted April 28, 2009 Posted April 28, 2009 Re: [mccode v2] Crystal Temple My bad, I split it from a paid topic, and forgot to move it out of this thread, thanks wolfe Quote
wolfe Posted April 28, 2009 Posted April 28, 2009 Re: [mccode v2] Crystal Temple LoL. No problem. I must have caught it after the split. Quote
Zytraw Posted May 1, 2009 Posted May 1, 2009 Re: [mccode v2] Crystal Temple Nice!! Well done great mod +1 Quote
POG1 Posted May 1, 2009 Posted May 1, 2009 Re: [mccode v2] Crystal Temple For the config at the top you could put it all into an assoc array to save space, or at least take the single quotes away from around the number. array example You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Karlos Posted May 1, 2009 Author Posted May 1, 2009 Re: [mccode v2] Crystal Temple Hmm, that is an idea... But to be honest i'm not the best with You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. s. I still am learning where to use them but thanks for the tip POG1 :-) Quote
BlueDevil23 Posted May 1, 2009 Posted May 1, 2009 Re: [mccode v2] Crystal Temple You could basically copy and paste what he has there. $configs = array('EnergyRefill' => 10,'WillRefill' => 10, 'BraveRefill' => 10,'DonatorDays' => 10, 'Protection' => 10); To call it simply use... $configs['EnergyRefill'] etc etc Quote
Karlos Posted May 2, 2009 Author Posted May 2, 2009 Re: [mccode v2] Crystal Temple Here's an updated one (With the array();) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Note: Add this to cron_minute.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Addition to your crons is untested. Quote
Danny696 Posted May 2, 2009 Posted May 2, 2009 Re: [mccode v2] Crystal Temple i need help i edited this for a game but the thing is it wont wokr the error is Parse error: syntax error, unexpected T_ELSE in /home/darkstr1/public_html/ctemple.php on line 60 the code is You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Karlos Posted May 2, 2009 Author Posted May 2, 2009 Re: [mccode v2] Crystal Temple Sorry but I gave a working code out, however I do not provide support for my source being modified, maybe asking in the mccode/dbscode Game Engine board for help. Quote
Zero-Affect Posted May 2, 2009 Posted May 2, 2009 Re: [mccode v2] Crystal Temple Sorry but I gave a working code out, however I do not provide support for my source being modified, maybe asking in the mccode/dbscode Game Engine board for help. you don't offer support? bad choice, shame on you lol Quote
Karlos Posted May 2, 2009 Author Posted May 2, 2009 Re: [mccode v2] Crystal Temple I provide support if it was an error/bug on my half.. I just don't provide support for my code being modified as it is not at my error in the code. Quote
POG1 Posted May 3, 2009 Posted May 3, 2009 Re: [mccode v2] Crystal Temple With the updated version you have made a mistake in the array. Each number 10 is being converted into a string, but if you didn't have it enclosed in quotes it would be an integer ;) Quote
Karlos Posted May 3, 2009 Author Posted May 3, 2009 Re: [mccode v2] Crystal Temple However that is true... I prefer to encase numbers in single quotes, just preference, I would also add this script does still work with them being encased in numbers. :wink: Quote
POG1 Posted May 3, 2009 Posted May 3, 2009 Re: [mccode v2] Crystal Temple sticking to mccode level programming ;) Quote
Karlos Posted May 3, 2009 Author Posted May 3, 2009 Re: [mccode v2] Crystal Temple What do you mean by that? Quote
POG1 Posted May 3, 2009 Posted May 3, 2009 Re: [mccode v2] Crystal Temple You know how it should be but you choose not to do it correctly Quote
Karlos Posted May 3, 2009 Author Posted May 3, 2009 Re: [mccode v2] Crystal Temple So your basically saying to keep it an integer and don't convert it to a string? Quote
BlueDevil23 Posted May 3, 2009 Posted May 3, 2009 Re: [mccode v2] Crystal Temple Yes, you want the integer value, not the string representation of it. Quote
Karlos Posted May 3, 2009 Author Posted May 3, 2009 Re: [mccode v2] Crystal Temple I'll keep that in mind from now on :wink: Quote
Zero-Affect Posted May 6, 2009 Posted May 6, 2009 Re: [mccode v2] Crystal Temple lol @ mccodes level :roll: 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.