vampireduff Posted November 4, 2009 Posted November 4, 2009 [Mccodes V2] Jobs With Work Exp, I took this from the forum, it was done by Karlos, I just added the Work Exp things to it so it gives others something else to work on instead of just the Strength, IQ and Labour. Also this way you can only get work exp from having a job, there for players can't just start a job and them keep getting promoted to the best job of the game. however, I am finding two problems with this, 1) if you click on get a promotion, nothing happens. 2) if you click on quit job, nothing happens. I would like some advise on this, is there something I have missed out, or overlooked. Please Help I am still learning and this is my second mod.....well update, since I didn't write this, just added things to it. Anyway here it is, hope you like it if it gets fixed.... it does work, just those two things don't. Replace your job.php with this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. replace staff_jobs.php with this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. In cron_hour.php find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and replace with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. this cron only allows your players to get paid and gain the extra work exp and other stuff, if there login, if there don't play then they don't get paid. but if you want to let your players get paid all time then just remove the timestamp or change it to what ever you would like it to be. INSERT INTO jobsrank jrWORK_EXPG (int) 11 not null default '0' INSERT INTO jobsrank jrWORK EXPN (int) 11 not null default '0' INSERT INTO userstats Work_Exp (int) 11 not null default '0' and thats it. But Remember to always back up your files before adding or editing new ones. Quote
Joshua Posted November 5, 2009 Posted November 5, 2009 havent had a chance to go over it, but looks like a nice addition to karlos mod. bare in mind a lot of users on these boards are just starting off, so helps to post the actual SQLS needed for ease ;-) ie INSERT INTO jobsrank jrWORK_EXPG (int)11 ?? not null? default 0 ? :P n your jobrank.sql find: jrSTRG add below: jrWORK_EXPG Quote
vampireduff Posted November 5, 2009 Author Posted November 5, 2009 sorry about that :) I will edit straight away, I just learning too, so yes I see what you mean. Quote
vampireduff Posted November 9, 2009 Author Posted November 9, 2009 OK I could not get Karlos job.php to work, I messaged him asking for his help on this but got no reply so I have edited another job.php and tried it and this one works. so if you like the idea of having jobs with Work Exp making it harder for players to get the good jobs (because they have to wait longer lol) then use all the code I posted in the first part except for the job.php. use this better one. replace job.php with this working copy You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Like I said this one works, I am using it on my site and I have now got no problems with it, hope you all like it. Quote
Joshua Posted November 9, 2009 Posted November 9, 2009 Np, looks good, i'll have a look at it when i'm finished up with this mod for a client :) Quote
ngeinc Posted November 21, 2010 Posted November 21, 2010 are there any cronjobs for this working copy? im using this copy but currently everytime its 5 pm my users dont get the pay or anything. no stats increase. can anyone help me? Quote
vampireduff Posted December 18, 2010 Author Posted December 18, 2010 If you look at the first post and follow the instruction you will what needs to be added in the cron hour cronjob. this all works because I am using it on my game and have been since I made it. however I have requested this post be removed be it is still here at the moment. hope this helps you if not message me and I will go through it all again with you. :) Quote
Curt Posted December 18, 2010 Posted December 18, 2010 Nice mod. Im sure plenty of people can make use of this addition :) Also why delete this post ?... don't be an Indian giver :P Quote
Curt Posted December 18, 2010 Posted December 18, 2010 Indian giver is slang for someone who gives away something then wants it back...lol Quote
Danny696 Posted December 18, 2010 Posted December 18, 2010 Vampire whats wrong with the post, why do you want it deleted? Quote
vampireduff Posted December 19, 2010 Author Posted December 19, 2010 I did want it removed not long after I put it up because it looked like no one was interested in it, look at the date on the replies you will see what I mean. but now it looks like it is gaining some interest so I would be happy to keep it on here. so I am not just given some out just to take it back I did put this up in 2009 and well it is almost the end of 2010. it is a good mod though it slows down players from buying there way to the top of the jobs and things this way every player has the same chances :) Quote
vvvyyyooo Posted March 2, 2011 Posted March 2, 2011 Hello, my name is David. I have a problem...i read this article and install this...but give me 1 error....:( You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I attach a photo of error, screenshot. SORRY FOR MY BAD ENGLISH! Quote
vampireduff Posted March 4, 2011 Author Posted March 4, 2011 I had no probs with the code, when I added it I had no errors, did you follow the instructions fully? did you use the first post of the job.php? there was a problem with the first one which is why I post another job.php to use instead. when did you get this error? while adding a new job? maybe you are setting the rewards to high???? also I noticed you didn't enter nothing for the work expn, try adding something in that field and lowering the others a little. Quote
Paul Evans Posted April 23, 2012 Posted April 23, 2012 (edited) may wanna consider recoding this if you use it :) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Edited April 23, 2012 by Paul Evans Quote
Paul Evans Posted May 21, 2012 Posted May 21, 2012 You could if you use this http://makewebgames.io/showthread.php/39502-Tutorial-v2-0-3-v2-5-convertion?highlight=redux+convert 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.