Jump to content
MakeWebGames

Recommended Posts

Posted

[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.

Posted

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

Posted

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.

  • 1 year later...
Posted

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?

  • 4 weeks later...
Posted

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. :)

Posted

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 :)

  • 2 months later...
Posted

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!

Posted

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.

  • 1 year later...
  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...