Sindikit Posted May 12, 2009 Posted May 12, 2009 Re: [MCCODES V2] 100% Working Copy Enhanced Schooling Thanks illusions, it works just fine now! Awesome mod! Quote
Uridium Posted May 12, 2009 Author Posted May 12, 2009 Re: [MCCODES V2] 100% Working Copy Enhanced Schooling ooops i made an error on the User sqls sorry i must have not been paying attention You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. How the above Works cpercent is the whole percentage the user has to achieve course_clicks is the amount of daily clicks they are allowed per day minus_clicks is the amount of clicks per session before the come back in an hour message is displayed endclicks works with minus_clicks so users dont exceed their hourly allowance. Quote
Sindikit Posted May 12, 2009 Posted May 12, 2009 Re: [MCCODES V2] 100% Working Copy Enhanced Schooling I had that part already correct for some reason. I am running into a cron problem..I can add a class, start it, do all the clicks allowed, and it disappears, but doesn't return within the hour. Would this be a problem with the two lines of code I added to cron_day with the minus clicks, or is this a school_cron problem? Quote
Uridium Posted May 13, 2009 Author Posted May 13, 2009 Re: [MCCODES V2] 100% Working Copy Enhanced Schooling Add this to your hourly cron You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And this to your daily cron You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
inferno564 Posted May 15, 2009 Posted May 15, 2009 Re: [MCCODES V2] 100% Working Copy Enhanced Schooling i found 1 exploit that I don't know how to fix. If you study and you use up all your turns for that hour you can just go back and keep refreshing until you have used up all the turns for the day. Quote
Uridium Posted May 15, 2009 Author Posted May 15, 2009 Re: [MCCODES V2] 100% Working Copy Enhanced Schooling Yeah i noticed that this morning i'll work on a fix for it... Quote
Uridium Posted May 15, 2009 Author Posted May 15, 2009 Re: [MCCODES V2] 100% Working Copy Enhanced Schooling Thanks to furn355's script from here FURNS SCRIPT We can fix the refreshing error.. open your education.php and imediatley underneath include"globals.php"; add print"<META HTTP-EQUIV=Refresh CONTENT='100;url=index.php'>"; That should cure it... Quote
inferno564 Posted May 15, 2009 Posted May 15, 2009 Re: [MCCODES V2] 100% Working Copy Enhanced Schooling Thanks to furn355's script from here FURNS SCRIPT We can fix the refreshing error.. open your education.php and imediatley underneath include"globals.php"; add print"<META HTTP-EQUIV=Refresh CONTENT='100;url=index.php'>"; That should cure it... that didn't work but i think this will. it is just edited version of one of your lines of code. open your education.php and underneath include"globals.php"; put this code You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
joker313 Posted May 15, 2009 Posted May 15, 2009 Re: [MCCODES V2] 100% Working Copy Enhanced Schooling i have tryed everything thats has been posted and i keep getting this Error QUERY ERROR: Column count doesn't match value count at row 1 Query was INSERT INTO courses VALUES(NULL, 'Cooking 101', 'Learn How To Cook', 'You Take A Few Cooking Classes', 'You Completed This Course', '100', '10000', '1', '1', '2', '', '', '', '', '1', '1', '1', '1', '1') Any clues how to fix this and it dont show the drop down for the item to give like in the screen shot :mrgreen: Quote
inferno564 Posted May 15, 2009 Posted May 15, 2009 Re: [MCCODES V2] 100% Working Copy Enhanced Schooling i have tryed everything thats has been posted and i keep getting this Error QUERY ERROR: Column count doesn't match value count at row 1 Query was INSERT INTO courses VALUES(NULL, 'Cooking 101', 'Learn How To Cook', 'You Take A Few Cooking Classes', 'You Completed This Course', '100', '10000', '1', '1', '2', '', '', '', '', '1', '1', '1', '1', '1') Any clues how to fix this and it dont show the drop down for the item to give like in the screen shot :mrgreen: you have to remove the Courses table in sql first then enter this code You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
joker313 Posted May 16, 2009 Posted May 16, 2009 Re: [MCCODES V2] 100% Working Copy Enhanced Schooling i am still gettin the same error Quote
Uridium Posted May 21, 2009 Author Posted May 21, 2009 Re: [MCCODES V2] 100% Working Copy Enhanced Schooling Seems i made a mistake on the staff_courses so back itup and overwrite with this one. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Sindikit Posted May 21, 2009 Posted May 21, 2009 Re: [MCCODES V2] 100% Working Copy Enhanced Schooling Trying to get this to work..the course shows up and when I click "take" the course, it tells me I need to come back in an hour to continue the course. The I click back on the link for the course and the clicks say "0". I never even got to do my 3 clicks, it just automatically told me I got the 1% allocated without doing any clicks. Any ideas? Quote
Sindikit Posted May 21, 2009 Posted May 21, 2009 Re: [MCCODES V2] 100% Working Copy Enhanced Schooling Ok, I just dropped my users SQLS and reran it and my clicks updated to 18 and I was able to do my 3 clicks..let's see if it comes back in an hour. :) Quote
gurpreet Posted May 21, 2009 Posted May 21, 2009 Re: [MCCODES V2] 100% Working Copy Enhanced Schooling Why drop your users table? Quote
Sindikit Posted May 21, 2009 Posted May 21, 2009 Re: [MCCODES V2] 100% Working Copy Enhanced Schooling Not the whole users table, just the 4 that affect the mod ie course_clicks, cpercent, etc. Quote
Sindikit Posted May 21, 2009 Posted May 21, 2009 Re: [MCCODES V2] 100% Working Copy Enhanced Schooling Ok, my continue learning link should have reappeared by now with my cron_hour...so then it's a cron problem? Quote
Uridium Posted May 21, 2009 Author Posted May 21, 2009 Re: [MCCODES V2] 100% Working Copy Enhanced Schooling for those having issues with the updating of the hourly cron add $db->query("UPDATE users SET minus_clicks=0"); $db->query("UPDATE users SET clickend=0"); Quote
Dukky Posted May 24, 2009 Posted May 24, 2009 Re: [MCCODES V2] 100% Working Copy Enhanced Schooling done everything and im getting You have used up your daily clicks come back tomorrow. here is my course You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Uridium Posted May 25, 2009 Author Posted May 25, 2009 Re: [MCCODES V2] 100% Working Copy Enhanced Schooling When you create a new Education are all the Parts you added avilable. goto EDIT the education youve just made and see if any are set to zero and not like the ones you created... Quote
Joshua Posted June 3, 2009 Posted June 3, 2009 Re: [MCCODES V2] 100% Working Copy Enhanced Schooling I just wanted to give a Shout Out to all you guys posting these free mods. I've just recently gotten into learining PhP and mySQL and you guys have been a terrific help. It took me forever but I finally managed to get this app to work right on my game. I'm not 100% sure of the crons just of yet, but we shall see. Great job guys, I'm envious of your talents :) Quote
iR00T Posted June 3, 2009 Posted June 3, 2009 Re: [MCCODES V2] 100% Working Copy Enhanced Schooling I still don't get the % complete thing why 10,000. And does like say there is a course for 5 days and has %5000 Each day it will go up 1000% Is that what it is. Instead of showing cost show that. Nice mod btw. Quote
Joshua Posted June 3, 2009 Posted June 3, 2009 Re: [MCCODES V2] 100% Working Copy Enhanced Schooling I'm not 100% i'm still working on it myself. For whatever reason my Crons do NOT want to work, really frustrating to having to wait an hour to find this out >< hehe Quote
Uridium Posted June 3, 2009 Author Posted June 3, 2009 Re: [MCCODES V2] 100% Working Copy Enhanced Schooling You dont have to add them to the cron_hour if your just testing just create a new cron say for 5 mins and add the cron scripts to that if your just testing just call the cron schooling_cron.php Quote
Famikon Posted February 24, 2010 Posted February 24, 2010 Sorry to bump a semi old topic.but I was wondering if anyone had ever figured out how to fix the problem with it saying you have used all your daily clicks come back tomorrow.it happens when trying to start a course. Thanx for any help with this issue. 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.