Richard Posted June 21, 2008 Share Posted June 21, 2008 This is a pretty long modification, but a nice simple add-on to jobs. Run SQL: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. In job.php (add below job table): You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Create specials.php: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add into staff_jobs.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add into global_func.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find in cron_hour.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Replace with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Run SQL: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. In staff_jobs.php Replace: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. In smenu.php add: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Finally, in job.php find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. replace with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. That should be all :) Last Tested: 21st June 2008 13:26pm Quote Link to comment Share on other sites More sharing options...
Tezza` Posted June 21, 2008 Share Posted June 21, 2008 Re: Simple Job Specials [V2] Wow, this looks technical, good job ;p :) Quote Link to comment Share on other sites More sharing options...
Halo Posted June 21, 2008 Share Posted June 21, 2008 Re: Simple Job Specials [V2] Nice work Richard, great mod :) Quote Link to comment Share on other sites More sharing options...
ishmell Posted June 22, 2008 Share Posted June 22, 2008 Re: Simple Job Specials [V2] What exactly does this addon to jobs mate? just wondering.. :mrgreen: Quote Link to comment Share on other sites More sharing options...
radio_active Posted June 22, 2008 Share Posted June 22, 2008 Re: Simple Job Specials [V2] Haha yeah, im feeling lazy and dont feel like reading the code... So could you tell me what the add on is? or some screenshots? lol :-) Quote Link to comment Share on other sites More sharing options...
Vyp3r2oo9 Posted June 22, 2008 Share Posted June 22, 2008 Re: Simple Job Specials [V2] Awesome mod! :) Nice work Richard, If any of you have ever played Torn City - It is a bit like the specials on there.. e.g. trade jobpoints for money/crystals/specified item/str/iq/labour/agility etc. Installing it now! :) Quote Link to comment Share on other sites More sharing options...
Richard Posted June 22, 2008 Author Share Posted June 22, 2008 Re: Simple Job Specials [V2] Screenshots: http://i263.photobucket.com/albums/ii133/Convict-Nation/screen1.png http://i263.photobucket.com/albums/ii133/Convict-Nation/screen2.png http://i263.photobucket.com/albums/ii133/Convict-Nation/screen3.png http://i263.photobucket.com/albums/ii133/Convict-Nation/screen4.png http://i263.photobucket.com/albums/ii133/Convict-Nation/screen5.png Quote Link to comment Share on other sites More sharing options...
Aaron724 Posted June 23, 2008 Share Posted June 23, 2008 Re: Simple Job Specials [V2] hehe, the word simple has been used very loosely here, great mod though works like a dream Quote Link to comment Share on other sites More sharing options...
Joel Posted June 24, 2008 Share Posted June 24, 2008 Re: Simple Job Specials [V2] Nice Work :) Quote Link to comment Share on other sites More sharing options...
dbledeez Posted June 26, 2008 Share Posted June 26, 2008 Re: Simple Job Specials [V2] Hey there, tried installing and when i try and input this into the sql i get an error.. Requested SQL to run: case 'newjobspec': newjobspec(); break; case 'jobspecedit': jobspecedit(); break; case 'jobspecdele': jobspecdele(); break; Error given Back: SQL query: CASE 'newjobspec' : newjobspec( )break; MySQL said: Documentation #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'case 'newjobspec': newjobspec() break' at line 1 Please Help? Everything else installed just perfectly except for this, and obviously it wont work without it, lol. Any help would be much appreciated. Thanks! :wink: Quote Link to comment Share on other sites More sharing options...
Richard Posted June 26, 2008 Author Share Posted June 26, 2008 Re: Simple Job Specials [V2] That piece of code goes into staff_jobs.php Quote Link to comment Share on other sites More sharing options...
dbledeez Posted June 26, 2008 Share Posted June 26, 2008 Re: Simple Job Specials [V2] Oh! I feel very dumb, :oops: Thanks for humouring me, sorry to bother. Quote Link to comment Share on other sites More sharing options...
jamboy1 Posted July 16, 2008 Share Posted July 16, 2008 Re: Simple Job Specials [V2] I can't add the points to the job rank table! it will then not let me add job ranks :( Quote Link to comment Share on other sites More sharing options...
iR00T Posted July 22, 2008 Share Posted July 22, 2008 Re: Simple Job Specials [V2] Fatal error: Cannot redeclare jobrankedit() (previously declared in /home/liam/public_html/staff_jobs.php:117) in /home/***********/public_html/staff_jobs.php on line 236 k umm i added juyst like u said and yeah i got that error when i click on jobrank edit to give it some points Quote Link to comment Share on other sites More sharing options...
Richard Posted July 22, 2008 Author Share Posted July 22, 2008 Re: Simple Job Specials [V2] did you replace the jobrankedit function? or just add it in Quote Link to comment Share on other sites More sharing options...
hurra Posted July 23, 2008 Share Posted July 23, 2008 Re: Simple Job Specials [V2] Error: This script requires an action. staff_jobs Quote Link to comment Share on other sites More sharing options...
iR00T Posted July 23, 2008 Share Posted July 23, 2008 Re: Simple Job Specials [V2] added it in why..? Quote Link to comment Share on other sites More sharing options...
Richard Posted July 23, 2008 Author Share Posted July 23, 2008 Re: Simple Job Specials [V2] Well, as far as I can see, it sounds like you have two jobrank edit functions in your staff_jobs.php Quote Link to comment Share on other sites More sharing options...
iR00T Posted July 23, 2008 Share Posted July 23, 2008 Re: Simple Job Specials [V2] coudl someone fix that up for me ^^ replys case 'newjob': newjob(); break; case 'jobedit': jobedit(); break; case 'newjobrank': newjobrank(); break; case 'jobrankedit': jobrankedit(); break; case 'jobdele': jobdele(); break; case 'jobrankdele': jobrankdele(); break; case 'newjobspec': newjobspec(); break; case 'jobspecedit': jobspecedit(); break; case 'jobspecdele': jobspecdele(); break; default: print "Error: This script requires an action."; break; You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
Richard Posted July 23, 2008 Author Share Posted July 23, 2008 Re: Simple Job Specials [V2] Try this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
iR00T Posted July 23, 2008 Share Posted July 23, 2008 Re: Simple Job Specials [V2] i get this when i ry to edit a job or job speical or even make one Fatal error: Cannot redeclare jobrankdele() (previously declared in /home/******/public_html/staff_jobs.php:162) in /home/liam/public_html/staff_jobs.php on line 225 Quote Link to comment Share on other sites More sharing options...
Richard Posted July 23, 2008 Author Share Posted July 23, 2008 Re: Simple Job Specials [V2] Try the above post again, ive updated Quote Link to comment Share on other sites More sharing options...
iR00T Posted July 23, 2008 Share Posted July 23, 2008 Re: Simple Job Specials [V2] Thanks alot it worked. Quote Link to comment Share on other sites More sharing options...
Jameoo Posted July 24, 2008 Share Posted July 24, 2008 Re: Simple Job Specials [V2] umm u havnt done 3 cases where u create a new job with a rank u get an error because ders nothing extra and in the main tables its requesting 1 more colloum Quote Link to comment Share on other sites More sharing options...
jamboy1 Posted July 24, 2008 Share Posted July 24, 2008 Re: Simple Job Specials [V2] I put in the cron, but players don't get stats, wages nor points, can someone tell me whats going wrong? 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.