Jump to content
MakeWebGames

Organizations & Productions


ishmell

Recommended Posts

Script Has Been Tested Numerous Times!!!

Hello, I have been tweaking this mod for quite some time now. And im proud to release this for mccodes v2. I call this mod Organizations & Productions and this is version 2.0 of the mod. Earlier versions can be found if you search the forums. Although this script has been tested numerous times there still might be a chance an error occurs. Be sure to post it here if something does happen so I may correct it for future reference.

In this topic I have a link to the download of the mods zip below. I didnt post the mod on this thread because its far to big.

What does this script do?

This script allows your users to hire bodyguards, hustlers, bootleggers and whores. They can then get these hired people to do them production/business jobs allowing the user to make some money.

What version is this right now and what are the new features?

This is currently version 2.0 the version that has been ever so long awaited. After countless pm's/time/PAIN I have finally finished it. Its compatible with mccodes v2 you will probably just have to change colors...etc to suit your game. This version allows you to do everything the old ones did but more. It now has troop stats in which your users must keep up in order to be successful. Also the higher someones troops stats are the more successful they will be. And lots of bugs/errors were fixed and more security added.

Be sure to leave credits in the code and not claim my work as yours. If anyone asks who did it, just redirect them to iiistudios.com my indie company site.

This thread will be the support thread for the mod so be sure to post your problems here. Also comments on the mod would be most appreciated.

Links to Download:

http://www.iiistudios.com/orgpmod.rar (this download will only stay up for a few days)

http://rapidshare.com/files/175077172/orgp_mod.rar.html

more links coming

Screenshots:

261ovuu.png

noegpy.png

Tutorials:

tutorials will be added over time on customizing the content and adding content...

Link to comment
Share on other sites

Re: Organizations & Productions

What kind of file suits you then? You can always get winzip or winrar to unzip the zip/rar file. I would like to post the mod here but its really big code wise so it wont fit on my posts that's why im offering it downloadable instead.

Link to comment
Share on other sites

Re: [mccode v2] Organizations & Productions

looks to me as if this will not work like this for most lol

 

$space = $s['tsspace'];

because it do's not know where to call it from

see you got it in the start of the page

<?php

//This script was made by illes ignath (a.k.a ishmell)

//Please do not delete this credit.

//Feel free to edit the script however you may please.

//This is just version 2.0 and ill be sure to add more features to it over time.

//Thats all for now, I hope you enjoy it.

require "globals.php";

global $db,$c,$ir, $set;

$totaltroops = $s['bodyguards']+$s['hustlers']+$s['bootleggers']+$s['whores'];

$space = $s['tsspace'];--------------here----------

$usersid= $ir['userid'];

 

so how are the player going to have space

Link to comment
Share on other sites

Re: [mccode v2] Organizations & Productions

No it works perfectly. I have installed it on a friends site as well. You just have to read all the code not just a few lines. A couple lines after you posted there is this little bit that makes $s work

line 52 I believe it was: while($s=$db->fetch_row($set))

and on line 12 $set is shown as fallows

$set=$db->query("SELECT * FROM orgp WHERE userid=$usersid");

Everything works fine, it all works together. This is compatible with anyone's game. :-)

Link to comment
Share on other sites

Re: [mccode v2] Organizations & Productions

I did:

 

ALTER TABLE `users` ADD `orpg` INT ( 11 ) NOT NULL DEFAULT '0';

And:

DROP TABLE IF EXISTS `orgp`;

CREATE TABLE `orgp` (

`id` int(11) NOT NULL auto_increment,

`userid` int(11) NOT NULL,

`bodyguards` int(11) NOT NULL default '0',

`hustlers` int(11) NOT NULL default '0',

`bootleggers` int(11) NOT NULL default '0',

`whores` int(11) NOT NULL default '0',

`tshapiness` int(11) NOT NULL default '10',

`tsbalance` int(11) NOT NULL default '1',

`tshangout` varchar(255) NOT NULL default 'Graveyard',

`tsexp` int(11) NOT NULL default '0',

`tshapinessmax` int(11) NOT NULL default '10',

`tsspace` int(11) NOT NULL default '25',

PRIMARY KEY (`id`)

) ENGINE=MyISAM AUTO_INCREMENT=79 DEFAULT CHARSET=latin1;

But I still get

You dont have an orginization. Would you like to purchase one for $1000000?

QUERY ERROR: Unknown column 'orgp' in 'field list'

Query was UPDATE users SET orgp=orgp+1 WHERE userid=1

Link to comment
Share on other sites

Re: [mccode v2] Organizations & Productions

 

lol you don't get it i did read all the code but i also tested and i see when you first go to it the table repeats itself 3 times and when you go to buy it will tell you you don't have enough space

So your having problems with buying space or just the whole thing all together not working for you?

 

I did:

 

ALTER TABLE `users` ADD `orpg` INT ( 11 ) NOT NULL DEFAULT '0';

And:

DROP TABLE IF EXISTS `orgp`;

CREATE TABLE `orgp` (

`id` int(11) NOT NULL auto_increment,

`userid` int(11) NOT NULL,

`bodyguards` int(11) NOT NULL default '0',

`hustlers` int(11) NOT NULL default '0',

`bootleggers` int(11) NOT NULL default '0',

`whores` int(11) NOT NULL default '0',

`tshapiness` int(11) NOT NULL default '10',

`tsbalance` int(11) NOT NULL default '1',

`tshangout` varchar(255) NOT NULL default 'Graveyard',

`tsexp` int(11) NOT NULL default '0',

`tshapinessmax` int(11) NOT NULL default '10',

`tsspace` int(11) NOT NULL default '25',

PRIMARY KEY (`id`)

) ENGINE=MyISAM AUTO_INCREMENT=79 DEFAULT CHARSET=latin1;

But I still get

You dont have an orginization. Would you like to purchase one for $1000000?

QUERY ERROR: Unknown column 'orgp' in 'field list'

Query was UPDATE users SET orgp=orgp+1 WHERE userid=1

Yes, make sure the orgp table was created so check your mysql. Also make sure the field orgp was added to the users table.

Link to comment
Share on other sites

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