-
Posts
144 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by KiX
-
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 > [url="business_home.php?p=bankrupt&confirm=1"]Bankrupt the business[/url]'; and change it to [url="business_manage.php?p=bankrupt&confirm=1"]Bankrupt the business[/url]';
-
Re: Businesses Mod [Mccode V2] :) Thanks mate. I feel honoured. I have finished another little update, but i will post it in a few
-
Re: Businesses Mod [Mccode V2] thanks but not my mod. It is Richard's.. I am just adding to it, but he deserves all the credit.
-
Re: Businesses Mod [Mccode V2] One more thing on the upgrade I forgot to add. in the business_manage find this if(mysql_num_rows($rows) < $inf['classMembers']) and replace with if(mysql_num_rows($rows) < $inf['busEmployees']) This code checks your applications towards your max employees allowed instead of the default amount of employes you set.
-
Re: Businesses Mod [Mccode V2] lol. I will take a look. Yes I did a few things to it....let me just check it.
-
Re: Businesses Mod [Mccode V2] yes, as usual, me forgetting to add things... doh.. u need to add this sql ALTER TABLE businesses ADD busEmployees BIGINT( 32 ) NOT NULL DEFAULT '0'; Fixed
-
Re: Businesses Mod [Mccode V2] :) hehe np prob
-
Re: Businesses Mod [Mccode V2] hehe thanks mate. i am always forgetting to put something here :)
-
Re: Businesses Mod [Mccode V2] Thanks mate. I really love your mod. Reminds me of my Torncity days. Great work. I will be adding a lot of upgrades on it.
-
Re: Businesses Mod [Mccode V2] Ok there is a little fix that needs to be done as well. If you notice you are able to send money to everyone except yourself, here is the fix for it. in business_manage find <option value="0">None</option> <option value="'.$ir['memberId'].'">'.stripslashes($ir['memberName']).'</option>'; and replace it with <option value="0">None</option> <option value="'.$ir['userid'].'">'.stripslashes($ir['username']).'</option>';
-
Re: Businesses Mod [Mccode V2] Ok I didnt see this in the mod so I added the possibility of Upgrading your business. All this really means is that you can hire more employees once you reach the max amount. So lets start this shall we? open business_manage and look for case 'kick_out': kick_member(); break; add this under it case 'upgrade': upgrade_business(); break; at the end of the file before this $h->endpage(); ?> add this function upgrade_business() { global $ir, $inf; if(!$_GET['confirm']) { $price_upgrade = ($inf['classMembers']*100000); echo 'You are about to upgrade the '.stripslashes($inf['busName']).' business at a cost of $'.number_format($price_upgrade).' for an additional 5 slots. Please confirm this action. Once this has been confirmed there is no chance to go back. [url="business_manage.php?p=upgrade&confirm=1"]Upgrade the business[/url]'; } else { $price_upgrade = ($inf['classMembers']*100000); if ($inf['busMoney'] < $price_upgrade) { die('You do not have enough gold in the vault.'); }else{ mysql_query(sprintf("UPDATE `businesses` SET `busEmployees` = busEmployees+5, `busMoney` = busMoney - ".$price_upgrade." WHERE `busDirector` = ".$ir['userid']."")); business_alert($inf['busId'], "The Director has upgraded the business for 5 extra members."); echo 'You have decided to upgrade the business, you can now emploty an additional 5 members.'; } } }
-
Re: Businesses Mod [Mccode V2] I hope Richard doesnt mind, but I also the function for employees to donate to the business, and i am working on a couple more things. in the meantime, here is the to here is the donation part. open business_home.php and find case 'leave_business': leave_business(); break; case 'view_members': view_members(); break; add underneath case 'donate_money': donate_vault(); break; case 'view_donate': view_donate(); break; go to the end of the file before $h->endpage(); ?> and add function view_donate() { global $ir, $inf; echo '<form action="business_home.php?p=donate_money" method="post"> [b]Donate money:[/b] money amount: <input type="text" name="cash" /> <input type="submit" value="Donate money">'; } function donate_vault() { global $ir, $inf; if($_POST['cash'] > 0) { if($_POST['cash'] > $ir['money']) { echo 'You do not have enough cash to donate this much to the business.'; } else { mysql_query(sprintf("UPDATE `users` SET `money` = `money` - '%d' WHERE `userid` = '%u'", abs((int) $_POST['cash']), $ir['userid'])); mysql_query(sprintf("UPDATE `businesses` SET `busCash` = `busCash` + '%d' WHERE `busId` = '%u'", abs((int) $_POST['cash']), $inf['busId'])); echo 'You have donated $'.number_format($_POST['cash']).' to the business.'; business_alert($inf['busId'], "".$ir['username']." donated \$".number_format($_POST['cash'])." to the business."); } } else { echo 'You missed one or more of the required fields.'; } } finally find where it says echo '[url="business_home.php?p=leave_business"]Leave the business[/url] '; and substitute it with echo '[url="business_home.php?p=view_donate"]Donate to the Business[/url] '; echo '[url="business_home.php?p=leave_business"]Leave the business[/url] ';
-
Re: Businesses Mod [Mccode V2] Yes I got it up and running.
-
Re: Businesses Mod [Mccode V2] Great mod Richard +1
-
Well it is not really game, but a site dedicated to our main site. It will be packed with Tutorials, Tools, Articles and much more to help all the players in their overall experience. It is still under heavy construction, but fully usable The address for the time being is http://worldofue.underground-evolution.com
-
Re: [REVIEW] - TopRankinGames wow. Thank you so much for all your comments rainbow. I agree the banner is cr**py and i will change it in due time. As you well said at the moment i am trying to get more of a user base. More sites to join it. Although the speed of enlisting is not too speedy, it has been growing quite rapidly in the last couple of weeks. At least the word is getting out. We are investing time in advertising rather than moeny at the moment, due to obvious reasons (no money). We are contacting game owners directly, via email, or through forums like CE. The forum are not too active and we are not concentrating too much on them as we have a few more plans with it. Soon you will see how it all ties in. hopefully in a month or two. I really appreciate all your suggestions, and I will definitely take them all into consideration.
-
Re: [mccode v2] Donator and Non-Donator Lottery Thanks mate. I am truly honoured you check it out.
-
I know it has been there for 2 months, but I would like some input on how we can make it better. The url is http://www.toprankingames.com Any form of critiscm will be kindly appreciated. Good or bad, I can take it hehe :)
-
Re: [REVIEW] - Celtic Raids thanks. graphics are not the best, but i will concentrate on that later. Got a few things that im working at the moment.
-
Re: Take A Look !!!!!!!!!!!!!!!!!!!!!!!!!!!!1 lol +1 killah
-
Re: Airplanes [V2] Man, I just noticed that myself!!! wtf?! lol the mod is good mate. It wasnt working at first due to some spaces (i am having a lot of probs with that lately). its not checking for money so it just takes you to negative. i have added that, but u might want to recheck that.
-
Re: [REVIEW] - Celtic Raids still looking for reviews :)
-
Re: [mccode v2] Attack :) ffs, finally got it working lol It had a bunch of spaces and my php ver did not like that one bit. Great job on the mod. my users hate it, but we love it.. lol +1
-
Re: [mccode v2] Attack :) bah! still not working...thanx for all the help guys, but still nothing. It is really odd. Now I am getting another error. Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/******/public_html/attack.php on line 1
-
Re: [REVIEW]CHECK OUT MY GAME Hmm. Actually I think I would actually enjoy Zero smashing someone.... Please spam again. :)