-
Posts
205 -
Joined
-
Last visited
-
Days Won
4
Content Type
Profiles
Forums
Events
Everything posted by Mcfarlin
-
Looking for a business mod for version 2 Things i would like the mod to do. 1.) Players can start a business - they name it what they want and add a short description about the business. 2.) Business owners can hire other players to work for them. - they set the pay and have to pay them. If they dont pay they do not get paid. no cron to pay out for the job. 3.) Business can have 1 employees to start. - Owners will have to upgrade the business to hire more. 1, 5, 10, 20, 50, 100 employees. 4.) To Start a business the owner must have completed certain course to be able to start the business. 5.) In this business they can have a shop to sell things to players. (player shops inside the mod basically) 6.) A business page where they can start the business, and where all Businesses in the game are displayed. See below for items displayed on this page. 7.) Once hired to work for a business owner there will need to be something for the player to DO that will make the owner game money for each action. Work done is limited to once per hour. 8.) Players can only have one job. 9.) Once work is completed for the hour work shows in place of work. Owners name - Business owners name description - Owners description of the business apply for a job/quit your job - link for the users to apply for a job or quit the job at this business Employees - number of employees working for this business Go to work - place for employees to go to work Shop - link to the shop in this business. In this image you can see that i work for fred, and have worked this hour. Just a better example of the look i have in my head. http://s22.postimg.org/t5dcsr025/businessmod.jpg I understand this is a large mod, but i think it is a great idea that i have no clue how to code. If anyone is up to the task please let me know. Price commensurate to the quality of the finished mod and fully negotiable. Sooooo. . . . . Any takers ?
-
http://mccodes.com/viewmod.php?id=115 There is a mod for this already on the MCCODES site. I have not used this however and am not sure on the details. But it is by Sinko so if i had to guess i would say its is the best place to start.
-
Looking for thoughts on an idea. I most pages that are not to be accessed while in hospital or jail ect. . . or if they try navigating in the browser to go somewhere they are not supposed to be. MCCODES has already built in a message that tells the user "you cannot do such and such while in jail" what if any would be the issue i may be missing if you add to the Db `Naverror` (navigation error) and each time they go to one of these pages when they are not supposed to it goes up by one. say we add a little to those messages and tell them that this action is being tracked, continue down this road and you will be banned. $db->query("UPDATE `users` SET `Naverror` = `Naverror` +1 "); And in your cron files you add $db->query(UPDATE `users` SET `fedjail` = `fedjail` + (a number you decide) ") just a thought. Looking for input.
-
lol I only added it in the post. It is not in the code, but the error persists. Its nothing really other than an annoyance to know its there.
-
yeah i added the E when typing it out, its not in the code but that is the error given. its non critical and the page runs fine.
-
Looks amazing after that. PHP notice: Undefined Index : itmbuyable (8) on line 62 with error reporting on but it doesn't stop the page from working. tested and works great as is.
-
Thank you jcvenom. while you were doing that i got it to work by using the following thanks to you pointing out a silly error. I also had UDATE in place of UPDATE. in two places. tisk tisk. The announcement INSERT was wrong as well. But either way its all working now except for getting the usernames of the winners in the announcement. $humansalive=$db->query("SELECT COUNT(`userid`) AS humansalive FROM `users` WHERE `humanorzombie` = 0"); if ($humansalive = 1) { $db->query("UPDATE `users` SET `lma` = 1 WHERE `humanorzombie` = 0"); $z1=$db->fetch_row($db->query("SELECT `userid`,`username`,`zombiekills` FROM `users` WHERE `zombiekills` > 0 AND `humanorzombie` = 1 ORDER BY `zombiekills` DESC Limit 1")); $db->query("UPDATE `users` SET `mostzkills` = 1 WHERE `userid` = {$z1['userid']}"); $lma=$db->query("SELECT `userid` FROM `users` WHERE `lma` = 1"); $mzk=$db->query("SELECT `userid` FROM `users` WHERE `mostzkills` = 1"); $db->query("UPDATE `users` SET `money` = `money` = 10000, `exp` = `exp` + 10000, `crystals` = `crystals` + 5000 WHERE `lma` = 1"); $db->query("UPDATE `users` SET `money` = `money` = 10000, `exp` = `exp` + 10000, `crystals` = `crystals` + 5000 WHERE `mostzkills` = 1"); $db->query("INSERT INTO `announcements` (`a_text`, `a_time`) VALUES ('The Zombie invasion has ended The last man alive and the Zombie with the most kills have won 10000 in cash 10000 EXP and 5000 Gold Coins', '0')"); $db->query("UPDATE `users` SET `new_announcements` = `new_announcements` + 1"); $db->query("UPDATE `hvzstats` SET `hvz`= 0, `totzombies` = 0"); $db->query("UPDATE `users` SET `humanorzombie` = 0 , `zombiekills` = 0"); } Now all i have to do keep bots and staff from being counted in it. That is easy when event is started. again thx
-
Like the hall of fame in mccodes. I like the idea, will have to give it a try.
-
I made it more for me, not so much for the users. Wanted to be able to see a full list of items so that when adding a new item i could make sure to fit it into the game properly.
-
Probably a lot is the answer there i think. Okay i have installed a humans vs zombies mod from the forum, did not work, thanks to NonStopCoding it is now working. we were talking about adding to the mod and having it stop on its own when there was only one human left. We did not get that to work. I have been playing around with this idea today and here is what i have. But im not getting very far with it. I am sure i am going about this all wrong. Could anyone point me in the right direction or point out what i am doing wrong please. I have noted to indicate what i was trying to do at each step. I have tested the queries by themselves and they are all working fine. But together in the game is another story. //check to see how many humans are left $humansalive=$db->query("SELECT COUNT(`userid`) AS humansalive FROM `users` WHERE `humanorzombie` = 0"); //if there is only one left then find find out and set who the winners are if ($humansalive == 1){ //set the last user as a human as the last man alive $db->query("UDATE `users` SET `lma` = 1 WHERE `humanorzombie` = 0"); // pick out the player with the most kills as a zombie $z1=$db->fetch_row($db->query("SELECT `userid`,`username`,`zombiekills` FROM `users` WHERE `zombiekills` > 0 AND `humanorzombie` = 1 ORDER BY `zombiekills` DESC Limit 1")); //set the user who killed the most humans as a zombie $db->query("UDATE `users` SET `mostzkills` = 1 WHERE `userid` = {$z1}"); //define who they are $lma=$db->query("SELECT `userid` FROM `users` WHERE `lma` = 1"); $mzk=$db->query("SELECT `userid` FROM `users` WHERE `mostzkills` = 1"); //start giving out prizes and telling them they have won the event $db->query("UPDATE `users` SET `money` = `money` = 10000, `exp` = `exp` + 10000, `crystals` = `crystals` + 5000 WHERE `lma` = 1"); event_add($lma,"You were the last human alive. You have won $10,000 in cash, 10,000 Experience and 5,000 Gold Coins."); $db->query("UPDATE `users` SET `money` = `money` = 10000, `exp` = `exp` + 10000, `crystals` = `crystals` + 5000 WHERE `mostzkills` = 1"); event_add($mzk,"You killed the most humans. You have won $10,000 in cash, 10,000 Experience and 5,000 Gold Coins."); //tell everyone $db->query("INSERT INTO `announcements` VALUES('The Zombie invasion has ended. The last man alive was {$lma[`username`]}. As the last man alive {$lma[`username`]} recieved $10000, 10000 EXP and 5000 Gold Coins. The top Zombies was {$z1[`username`]}. {$z1[`username`]} has been awarded $7500, 7500 EXP and 3500 Gold Coins for gettign the most kills as a zombie. {$z2[`username`]} in First place. {$z2[`username`]} has been awarded $5000, 5000 EXP and 2000 Gold Coins.')"); $db->query("UPDATE `users` SET `new_announcements` = `new_announcements` + 1"); //reset event back to zero $db->query("UPDATE `hvzstats` SET `hvz`= 0, `totzombies` = 0"); $db->query("UPDATE `users` SET `humanorzombie` = 0 , `zombiekills` = 0"); }
-
I knew it could be dones a lot easier than my way. And yes it comes in handy once you have a few hundred items in a game to be able to just pull up this list and see where a gap may be, or where you want to add your new item to fit in with all the others. thx for adding that. I tested and it works fine, better actually with your additions.
-
When making a new item, would it be of any help to have this page to compare your new item to items already in your game? Not having to go back and look up info in the Db to see where a new item will fit into the game You can use this to look at all items and decide what values your new item should have so it fits in with the others already added. Simple little addon, not so sure i would even call it a mod. But hey its free. Call the file whatever you would like, and add link in your game where ever you would like it to go. You can add a user level restriction if you do not want members to see the page. <?php include "globals.php"; echo "<b><h1><font color=#DBE415>Welcome to the Items Glossary!</font></h></b>"; $weapons=$db->query(" SELECT * FROM items WHERE itmtype = 1 ORDER BY itmtype ASC" ); echo "<h2>Weapons</h>"; echo "<table width=93% border=1 hight=60% cellspacing=0 class='table'> <th>Name</th> <th>Description</th> <th>Price</th> <th>Attack Power</th> <th>Defence Power</th></tr>"; while ($r=$db->fetch_row($weapons)) { echo "<tr> <td valign=top >{$r['itmname']}</td> <td valign=top>{$r['itmdesc']}</td> <td valign=top>$ {$r['itmbuyprice']}</td> <td valign=top>{$r['weapon']}</td> <td valign=top>{$r['armor']}</td> </tr>"; } echo "</table>"; $armorss=$db->query(" SELECT * FROM items WHERE itmtype = 2 ORDER BY itmtype ASC" ); echo "<h2>Armours</h>"; echo "<table width=93% border=1 hight=60% cellspacing=0 class='table'> <th>Name</th> <th>Type</th> <th>Description</th> <th>Price</th> <th>Attack Power</th> <th>Defence Power</th></tr>"; while($r=$db->fetch_row($armorss)) { echo "<tr><td valign=top>{$r['itmname']}</td><td valign=top>Armor</td><td valign=top>{$r['itmdesc']}</td><td valign=top>$ {$r['itmbuyprice']}</td><td valign=top>{$r['weapon']}</td><td valign=top>{$r['armor']}</td></tr>"; } echo "</table>"; $boost=$db->query(" SELECT * FROM items WHERE itmtype = 2 ORDER BY itmtype ASC" ); echo "<h2>Boost Items</h>"; echo "<table width=93% border=1 hight=60% cellspacing=0 class='table'> <th>Name</th> <th>Type</th> <th>Description</th> <th>Price</th> <th>Attack Power</th> <th>Defence Power</th></tr>"; while($r=$db->fetch_row($boost)) { echo "<tr><td valign=top>{$r['itmname']}</td><td valign=top>Armor</td><td valign=top>{$r['itmdesc']}</td><td valign=top>$ {$r['itmbuyprice']}</td><td valign=top>{$r['weapon']}</td><td valign=top>{$r['armor']}</td></tr>"; } echo "</table>"; $crafting=$db->query(" SELECT * FROM items WHERE itmtype = 1000 ORDER BY itmtype ASC" ); echo "<h2>Crafting Items</h>"; echo "<table width=93% border=1 hight=60% cellspacing=0 class='table'> <th>Name</th> <th>Type</th> <th>Description</th> <th>Price</th> <th>Attack Power</th> <th>Defence Power</th></tr>"; while($r=$db->fetch_row($crafting)) { echo "<tr><td valign=top>{$r['itmname']}</td><td valign=top>Armor</td><td valign=top>{$r['itmdesc']}</td><td valign=top>$ {$r['itmbuyprice']}</td><td valign=top>{$r['weapon']}</td><td valign=top>{$r['armor']}</td></tr>"; } echo "</table>"; $crafted=$db->query(" SELECT * FROM items WHERE itmtype = 1001 ORDER BY itmtype ASC" ); echo "<h2>Crafted Items</h>"; echo "<table width=93% border=1 hight=60% cellspacing=0 class='table'> <th>Name</th> <th>Type</th> <th>Description</th> <th>Price</th> <th>Attack Power</th> <th>Defence Power</th></tr>"; while($r=$db->fetch_row($crafted)) { echo "<tr><td valign=top>{$r['itmname']}</td><td valign=top>Armor</td><td valign=top>{$r['itmdesc']}</td><td valign=top>$ {$r['itmbuyprice']}</td><td valign=top>{$r['weapon']}</td><td valign=top>{$r['armor']}</td></tr>"; } echo "</table>"; $h->endpage(); ?> Obviously you can edit to fit your item types. I am sure there is an easier way to do this, but . . . . this is how i have done it. Screenshot http://postimg.org/image/w9gaprjm1/
-
[uSER=69001]Zettieee[/uSER] was able to supply the services needed. Good work, I would recommend his services to others.
-
Looking for a designer for a game. Below is a list of what is needed. If you are interested and can prove your work, i am willing to pay. We can talk about Budget, would depend on the quality of the images really. 1.) Custom images for the main in game banner. 2.) additions to the CSS files for stock MCCODES v2 that add two images. one on either side of the game while playing. Need those images created. 3.) Custom login and register page in one with created banner image. (can be the same as ingame header image) 4.) Default user profile pic to match the game theme. In total 4 custom images If you have work on the web i would love to see it. Thanks.
-
KyleMassacre was able to get me sorted. thx
-
Yes i am using v2.05b There is no installer_error_handler.php
-
there is no error. Attempting DB connection... is all it says. by this i assume it is an issue with the Db connection. I have double and triple checked the Db name, user, pw ect. Not sure where else to look really, its been a while.
-
First are there even any Mccodes staff still logging into this forum? I have been away for a few years, i DO have a licenced copy of mccodes v2, and i am having an issue with the install. Everything worked as it should until the last click on the install process. Mccodes Version 2 Installer If you bought this from anywhere else but MCCodes.com please click here . Thank you for choosing MCCodes. 1. Diagnostics >> 2. Configuration >> 3. Installation & Extras Attempting DB connection... Simply stalls there stating Attempting DB connection...
-
lmao that was one of the first things i learned when i started with MCCraps but i have since moved on to bigger and better things. but i would not have learned as fast without this place. so thanks to all who helped , and a big FU to those who didnt. hehe
-
okay bob. with your last im for sure sold on getting it now. lol how can anyone pass up that deal.
-
sounds nice, can we see it working in a demo ?
-
if i dont want the nod can i give my discount to another ?
-
Editing or Removing ANNOUNCEMENTS?
Mcfarlin replied to GodLovesEcstasy's topic in General Discussion
why go to all the trouble when you can just alter it from the db. add edit delete all in one place. -
your sure there is an error in the file though ? what does it show you when you go to the file with the link ?
-
These are within 4 pixles of you requested size EDIT here they are on tp bg