ishmell Posted December 20, 2008 Share Posted December 20, 2008 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: Tutorials: tutorials will be added over time on customizing the content and adding content... Quote Link to comment Share on other sites More sharing options...
zbirc3 Posted December 20, 2008 Share Posted December 20, 2008 Re: Organizations & Productions It's actually looking pretty good. Nice work and looking forward to see those tutorials. ;) +1 Quote Link to comment Share on other sites More sharing options...
gurpreet Posted December 20, 2008 Share Posted December 20, 2008 Re: Organizations & Productions Great work...Going to edit a bit as my game is PG13, but awesome job. +1 Quote Link to comment Share on other sites More sharing options...
nedved Posted December 20, 2008 Share Posted December 20, 2008 Re: Organizations & Productions I get this error i did add the sqls aswell 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=2 Quote Link to comment Share on other sites More sharing options...
Karlos Posted December 20, 2008 Share Posted December 20, 2008 Re: Organizations & Productions 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...
nedved Posted December 20, 2008 Share Posted December 20, 2008 Re: Organizations & Productions ALTER TABLE `users` ADD `orgp` INT ( 11 ) NOT NULL DEFAULT '0'; Thats the right one ;) Quote Link to comment Share on other sites More sharing options...
Eternal Posted December 20, 2008 Share Posted December 20, 2008 Re: Organizations & Productions You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Thats the right one ;) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. hmm which one looks correct... Quote Link to comment Share on other sites More sharing options...
ishmell Posted December 20, 2008 Author Share Posted December 20, 2008 Re: Organizations & Productions Oh yeh I forgot all about that user field I better update it to the readme file. Thanks for posting it here. Edit: My sites zip was updated, here is the new rapid share one. http://rapidshare.com/files/175161713/orgpmod.rar.html Quote Link to comment Share on other sites More sharing options...
Dazza Posted December 20, 2008 Share Posted December 20, 2008 Re: Organizations & Productions Ish, I cant download .rar files so can you post it please Also, a mod will remove your links as they are outside this site. Looks nice though! Quote Link to comment Share on other sites More sharing options...
ishmell Posted December 20, 2008 Author Share Posted December 20, 2008 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. Quote Link to comment Share on other sites More sharing options...
Karlos Posted December 20, 2008 Share Posted December 20, 2008 Re: Organizations & Productions Why not do .zip files? Most if not all computers can extract them. Quote Link to comment Share on other sites More sharing options...
ishmell Posted December 20, 2008 Author Share Posted December 20, 2008 Re: Organizations & Productions Good point... http://www.iiistudios.com/orgpmod.zip (this download will only stay up for a few days) Quote Link to comment Share on other sites More sharing options...
Bubbl3z Posted December 21, 2008 Share Posted December 21, 2008 Re: Organizations & Productions +1 Quote Link to comment Share on other sites More sharing options...
ishmell Posted December 23, 2008 Author Share Posted December 23, 2008 Re: [mccode v2] Organizations & Productions Ty, hope no one mines me bumping this. BUMP!!! Quote Link to comment Share on other sites More sharing options...
bling Posted December 23, 2008 Share Posted December 23, 2008 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 Quote Link to comment Share on other sites More sharing options...
ishmell Posted December 23, 2008 Author Share Posted December 23, 2008 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. :-) Quote Link to comment Share on other sites More sharing options...
bling Posted December 23, 2008 Share Posted December 23, 2008 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 Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted December 23, 2008 Share Posted December 23, 2008 Re: [mccode v2] Organizations & Productions did anyone else notice on the screenshots where it says "donate" it looks like a very unusual white liquid dripping from it... lol Quote Link to comment Share on other sites More sharing options...
gurpreet Posted December 23, 2008 Share Posted December 23, 2008 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 Quote Link to comment Share on other sites More sharing options...
Mafia-Club Posted December 23, 2008 Share Posted December 23, 2008 Re: [mccode v2] Organizations & Productions That should work 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...
gurpreet Posted December 23, 2008 Share Posted December 23, 2008 Re: [mccode v2] Organizations & Productions Still doesn't work..But +1 for trying Quote Link to comment Share on other sites More sharing options...
ishmell Posted December 23, 2008 Author Share Posted December 23, 2008 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. Quote Link to comment Share on other sites More sharing options...
gurpreet Posted December 23, 2008 Share Posted December 23, 2008 Re: [mccode v2] Organizations & Productions Everything is in. Quote Link to comment Share on other sites More sharing options...
gurpreet Posted December 23, 2008 Share Posted December 23, 2008 Re: [mccode v2] Organizations & Productions The query you give says orpg but the query needed in the file says orgp Use this: ALTER TABLE `users` CHANGE `orpg` `orgp` INT( 11 ) NOT NULL DEFAULT '0' Quote Link to comment Share on other sites More sharing options...
ishmell Posted December 23, 2008 Author Share Posted December 23, 2008 Re: [mccode v2] Organizations & Productions Oh k I see thats our problem. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Should fix the problem. 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.