Jump to content
MakeWebGames

Recommended Posts

Posted

Re: Businesses Mod [Mccode V2]

Crazy-T thanks for renforcing my statement. yep, what i am doing is not a mod. I am just adding to the mod Richard made :)

k guys another fix that needs to be done.

in business_manage.php find

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

and change it to

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

  • Replies 231
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Re: Businesses Mod [Mccode V2]

Ok another update to Richard's mod.

The option to change Directors of the company. I think I have added everything this time.

Add this to your sql

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

open business_manage and look for

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

add underneath

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

find this in the same file

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

add just after that

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

find this in the same file

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

add just before that

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

If you added all of my updates to Richard's mods. Then you will need this new business_crons.php file. So open your existing business_crons.php file and replace everything with this

 

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

Re: Businesses Mod [Mccode V2]

I also changed a bit the business_home.php file. So when u go into ur business you can see most of the information you see in the Business Listing. I also limited the log to show only the last 25 events.

open business_home.php and look for

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

replace it with this code

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

Re: Businesses Mod [Mccode V2]

thanks to richard and kix for all the hard work on this script. Just one small thing I noticed when testing this out... as company owner, I'm allowed to own the company and have a normal v2 job. Thus having 2 jobs. I am assuming employees will also be able to do so. I think we need to have that where you have to quit your job before obtaining company status.

Posted

Re: Businesses Mod [Mccode V2]

dont forget to change cron file modify profits.... if you are using Richards standard cron file, you own a car dealer ship with around 5 members you will be able to get $50,000,000 a day!

Posted

Re: Businesses Mod [Mccode V2]

 

thanks to richard and kix for all the hard work on this script. Just one small thing I noticed when testing this out... as company owner, I'm allowed to own the company and have a normal v2 job. Thus having 2 jobs. I am assuming employees will also be able to do so. I think we need to have that where you have to quit your job before obtaining company status.

That is correct. I am currently letting that slide on my site until ppl get used to the businesses, but i i will soon only allow them to have either a job or business. If you want I can post it here once i finish it.

Posted

Re: Businesses Mod [Mccode V2]

 

dont forget to change cron file modify profits.... if you are using Richards standard cron file, you own a car dealer ship with around 5 members you will be able to get $50,000,000 a day!

hehe yeah, on my cron i lowered it significantly to control the economy a bit more.

Posted

Re: Businesses Mod [Mccode V2]

I agree, keep it open untill adjustment period, and all bugs worked out, but yes, would like the rest of the code when you get it complete. If you get really bored, you can even add company specials in ;p

Posted

Re: Businesses Mod [Mccode V2]

got this when trying to accept someone's application to the business:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

line 384 is:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

Re: Businesses Mod [Mccode V2]

 

got this when trying to accept someone's application to the business:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

line 384 is:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

did you add the lines to global_func.php as stated in Richards original post?

Posted

Re: Businesses Mod [Mccode V2]

 

I agree, keep it open untill adjustment period, and all bugs worked out, but yes, would like the rest of the code when you get it complete. If you get really bored, you can even add company specials in ;p

I am working on company specials and also on company staff menu. They will be out soon. Finishing other stuff 1st. :)

Posted

Re: Businesses Mod [Mccode V2]

I've done a little investigating. It seems that the 'busEmployees' database field does not update. It stands as 0 all the time, even when i try to upgrade member capacity. Can anyone help?

And is there any special reason why we can't add businesscron to the daycron?

Plus, thanks to Richard and KiX, great mod!

Posted

Re: Businesses Mod [Mccode V2]

 

I've done a little investigating. It seems that the 'busEmployees' database field does not update. It stands as 0 all the time, even when i try to upgrade member capacity. Can anyone help?

And is there any special reason why we can't add businesscron to the daycron?

Plus, thanks to Richard and KiX, great mod!

1) Nope there is no reason, I presume Richard did it like that to keep it a bit more organised.

2) It is working quite well on my side. could u give us a bit more information please.

Posted

Re: Businesses Mod [Mccode V2]

ok you can't choose the director as a member so i don't know how thier supposed to get money. also when i click bankrupt business it just returns to the business section and deosn't delete the business

Posted

Re: Businesses Mod [Mccode V2]

 

ok you can't choose the director as a member so i don't know how thier supposed to get money. also when i click bankrupt business it just returns to the business section and deosn't delete the business

Well it is very simple, the director owns the business, so all the money in the vault is at his/her disposal. Hence, no need for him or her to be a member.

Does the bankrupt show you any error, as it works fine on my site.

Posted

Re: Businesses Mod [Mccode V2]

well how can the director take the money out of the vualt and put it intohis pocket? also it doesn't show any error it just redirects me to the page taht shows my business.

ALSO i'm testing it. i have a car dealership and i'm the only member. i put 900,000,000 into the vualt as test money. after rollover theirs 29k left. whats up with this? i slightly edited the business_cron thing. heres what it is now.

$new_profit = (($new_customers + rand(-4, 8)) * ((($bs['classCost'] / 10000) * rand(2, 4)) / 50) * ($amount + 1));

Posted

Re: Businesses Mod [Mccode V2]

 

well how can the director take the money out of the vualt and put it intohis pocket? also it doesn't show any error it just redirects me to the page taht shows my business.

ALSO i'm testing it. i have a car dealership and i'm the only member. i put 900,000,000 into the vualt as test money. after rollover theirs 29k left. whats up with this? i slightly edited the business_cron thing. heres what it is now.

$new_profit = (($new_customers + rand(-4, 8)) * ((($bs['classCost'] / 10000) * rand(2, 4)) / 50) * ($amount + 1));

Dont you just love those that complain. Any mod that deals with cash on large basis which im sure this one does is bound to have a few snags. So it would be a decent gesture to explain the problem rather than making it a public spectacle....

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