Jump to content
MakeWebGames

NonStopCoding

Members
  • Posts

    572
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by NonStopCoding

  1. the forum has screwed up the code a little (added spaces where it should not be) better to use the pastebins or download the zip   edit: Was thinking of making a feature for it where a user can try steal one or something out of the shop and shop owner can buy security for it what do you guys/girls think?
  2. Module Version: 1.00 Module Creator: NonStopCoding Players will be able to buy a shop and sell items crystals or donatordays from there shop. Download Links JumpShare: https://jumpshare.com/v/QQ261069ORHy3e6CiX7h?b=Aa4pgfZetx6fpv92yNnx DropBox: https://www.dropbox.com/home/Player%20Shops?preview=Player+Shops+v1.zip Mega: https://mega.co.nz/#!KQslRAxK!XVeZRQhkRZuVhR8CXpMU_6bWcyK73dbw7TpmqI9pdxM Pastebin - player_shops_install.php - http://pastebin.com/b4Jrjpyi Pastebin - myshop.php - http://pastebin.com/0kzBusU1 Pastebin - shoplist.php - http://pastebin.com/v5faU11A SQL CREATE TABLE IF NOT EXISTS `user_shopitems` ( `id` int(11) NOT NULL AUTO_INCREMENT, `stype` enum('item','crystals','donatordays') NOT NULL, `selling` int(20) NOT NULL DEFAULT '0', `sqty` int(20) NOT NULL, `tprice` int(20) NOT NULL, `sID` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; CREATE TABLE IF NOT EXISTS `usershops` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(20) NOT NULL, `desc` varchar(100) NOT NULL, `pic` varchar(120) NOT NULL DEFAULT 'images/noimg.png', `status` int(1) NOT NULL DEFAULT '1', `owner` int(11) NOT NULL DEFAULT '0', `cdate` int(20) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; player_shops_install.php (Skip step above if you'r going to use this file.) <?php require(__DIR__.'/globals.php'); $tb1 = $db->num_rows($db->query("SHOW TABLES LIKE 'user_shopitems'")); $tb2 = $db->num_rows($db->query("SHOW TABLES LIKE 'usershops'")); if($tb1 && $tb2) echo "<span style='color:red;font-weight:bold;font-size:10px;'>Installer has detected that you have both installer files.</span>"; else if($tb1 && !$tb2) echo "<span style='color:red;font-weight:bold;font-size:10px;'>Intaller detected that you already have a table called shopitems</span>"; else if(!$tb1 && $tb2) echo "<span style='color:red;font-weight:bold;font-size:10px;'>Installer detected that you already have a table called usershops</span>"; else { echo "Attempting to install first table..<br /><br />"; $insert = $db->query(" CREATE TABLE IF NOT EXISTS `user_shopitems` ( `id` int(11) NOT NULL AUTO_INCREMENT, `stype` enum('item','crystals','donatordays') NOT NULL, `selling` int(20) NOT NULL DEFAULT '0', `sqty` int(20) NOT NULL, `tprice` int(20) NOT NULL, `sID` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;"); if(!$insert) echo "There was a issue with install.<br />".$db->error(); else { echo "Table one installed successfully.<br />"; echo "Attempting to install the second table..<br /><br />"; $insert = $db->query(" CREATE TABLE IF NOT EXISTS `usershops` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(20) NOT NULL, `desc` varchar(100) NOT NULL, `pic` varchar(120) NOT NULL DEFAULT 'images/noimg.png', `status` int(1) NOT NULL DEFAULT '1', `owner` int(11) NOT NULL DEFAULT '0', `cdate` int(20) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;"); if(!$insert) echo "There was a issue with install.<br />".$db->error(); else { echo "Table two installed successfully.<br /><br />"; echo "Intall complete attempting to remove intaller.."; unlink('./player_shops_install.php'); $success = !file_exists('./player_shops_install.php'); echo "<span style='color: ". ($success ? "green;'>Succeeded" : "red;'>Failed"). "</span><br />"; echo '<meta http-equiv="refresh" content="8; url=myshop.php">'; $h->endpage(); exit; if(!$success) echo " <span style='color:red;font-weight:bold;font-size:10px;'> Since the auto deletion of the instaltion file failed i strongly suggest you delete it manually. </span>"; } } } $h->endpage(); myshop.php <?php /* * User Shops v1.00 * This module is a free * addon for mccodes v2 */ require(__DIR__.'/globals.php'); $user_shop = $db->query("SELECT * FROM `usershops` WHERE `owner` = {$ir['userid']}"); if(!$db->num_rows($user_shop)) { $shop_cost = 250000; if($ir['userid'] == 1) $shop_cost = 1; if(isset($_POST['create'])) { if (!isset($_POST['verf']) || !verify_csrf_code('us_buyshop',stripslashes($_POST['verf']))) csrf_error('buyshop'); if($ir['money'] < $shop_cost) { echo "You don't have enough money. You need ".money_formatter($shop_cost - $ir['money'])." more."; $h->endpage(); exit; } $sn = isset($_POST['sname']) && preg_match("/^[a-z0-9_]+([\\s]{1}[a-z0-9_]|[a-z0-9_])+$/i",$_POST['sname']) ? $db->escape(strip_tags(stripslashes($_POST['sname']))) : ''; $sdesc = isset($_POST['sdesc']) ? $db->escape(strip_tags(stripslashes($_POST['sdesc']))) : ''; $status = isset($_POST['status']) && ctype_digit($_POST['status']) ? abs(intval($_POST['status'])) : 0; $pic = isset($_POST['spic']) && is_string($_POST['spic']) ? stripslashes($_POST['spic']) : ''; if(!empty($pic)) { if(strlen($pic) < 8 || !(substr($pic, 0, 7) == 'http://' || substr($pic, 0, 8 == 'https://'))) { echo "Invalid Image.<br />> <a href='myshop.php'>Go Back</a>"; $h->endpage(); exit; } $sz = get_filesize_remote($pic); if($sz <= 0 || $sz >= 1048576) { echo "Invalid new pic entered.<br />> <a href='myshop.php'>Back</a>"; $h->endpage(); exit; } $image = (@getimagesize($pic)); if(!is_array($image)) { echo "Invalid Image.<br />> <a href='myshop.php'>Go Back</a>"; $h->endpage(); exit; } } if(empty($sn) || empty($sdesc) || empty($status)) { echo "You have missed a required feild.<br />> <a href='myshop.php'>Go Back</a>"; $h->endpage(); exit; } else { $db->query("UPDATE `users` SET `money` = `money` - {$shop_cost} WHERE `userid` = {$ir['userid']}"); $db->query("INSERT INTO `usershops` (`name`,`desc`,`pic`,`status`,`owner`,`cdate`) "." VALUES('{$sn}','{$sdesc}','{$pic}','{$status}',{$ir['userid']},".time().")"); echo "You have paid ".money_formatter($shop_cost)." to buy a shop."; } } else { $code = request_csrf_code('us_buyshop'); echo "<h3>Create Shop</h3> <i>If you wish to create a shop it will cost you ".money_formatter($shop_cost)."</i><br /><br /> <form method='post'> Shop Name: <input type='text' name='sname' /><br /><br /> Shop Desc: <input type='text' name='sdesc' /><br /><br /> Shop Pic: <input type='text' name='spic' /><br /><br /> Shop Closed: <input type='radio' name='status' value='1' checked='checked' />Yes <input type='radio' name='status' value='2' />No<br /><br /> <input type='hidden' name='verf' value='{$code}' /> <input type='submit' name='create' value='Create Shop' /> </form>"; } } else { $us = $db->fetch_row($user_shop); if(isset($_POST['addtoshop'])) { $wts = isset($_POST['wts']) && in_array($_POST['wts'], array('item','donatordays','crystals'),true) ? $_POST['wts'] : 'item'; $itmid = isset($_POST['itmid']) && ctype_digit($_POST['itmid']) ? abs(intval($_POST['itmid'])) : 0; $qty = isset($_POST['qty']) && ctype_digit($_POST['qty']) ? abs(intval($_POST['qty'])) : 0; $tcost = isset($_POST['tcost']) && ctype_digit($_POST['tcost']) ? abs(intval($_POST['tcost'])) : 0; if($_POST['wts'] == 'item') { if(empty($itmid) || empty($wts) || empty($qty) || empty($tcost)) { echo "Invalid."; $h->endpage(); exit; } else { $q = $db->query("SELECT `inv_qty`,`inv_itemid`,`inv_id`,`itmname` FROM `inventory` AS `iv` INNER JOIN `items` AS `i` ON `iv`.`inv_itemid` = `i`.`itmid` = {$_POST['itmid']} AND `inv_userid` = $userid"); if($db->num_rows($q) == 0) { $db->free_result($q); echo "Invalid Item ID. or you don't have any of those."; } else { $r = $db->fetch_row($q); $db->free_result($q); if($r['inv_qty'] < $_POST['qty']) { echo 'You do not have enough of this item.'; $h->endpage(); exit; } $checkq = sprintf( 'SELECT `id`,`sID` FROM `user_shopitems` WHERE `selling` = %u AND `tprice` = %u AND `sID` = %u', $r['inv_itemid'], $tcost, $us['id'] ); $checkq = $db->query($checkq); if($db->num_rows($checkq) > 0) { $cqty = $db->fetch_row($checkq); $query = sprintf('UPDATE `user_shopitems` SET `sqty` = `sqty` + %u WHERE `sID` = %u AND `id` = %u', $qty,$cqty['sID'],$cqty['id']); $db->query($query); } else $db->query("INSERT INTO `user_shopitems` VALUES (NULL,'{$wts}','{$r['inv_itemid']}',{$qty},{$tcost},{$us['id']})"); $db->free_result($checkq); item_remove($userid, $r['inv_itemid'], $qty); echo "Item added to shop."; } } } else if($_POST['wts'] == 'crystals') { if(!empty($itmid)) echo "Item id slot must be empty when no item selected.."; else if(empty($wts) || empty($qty) || empty($tcost)) echo "Invalid missed required feild.."; else { if($ir['crystals'] < $_POST['qty']) { echo 'You do not have enough crystals you need '.number_format($_POST['qty'] - $ir['crystals']).' more.'; $h->endpage(); exit; } $checkq = sprintf( 'SELECT `id`,`sID` FROM `user_shopitems` WHERE `tprice` = %u AND `sID` = %u',$tcost, $us['id'] ); $checkq = $db->query($checkq); if($db->num_rows($checkq) > 0) { $cqty = $db->fetch_row($checkq); $query = sprintf('UPDATE `user_shopitems` SET `sqty` = `sqty` + %u WHERE `sID` = %u AND `id` = %u', $qty,$cqty['sID'],$cqty['id']); $db->query($query); } else $db->query("INSERT INTO `user_shopitems` (`stype`,`sqty`,`tprice`,`sID`) "." VALUES ('{$wts}',{$qty},{$tcost},{$us['id']})"); $db->free_result($checkq); $query = sprintf( 'UPDATE `users` SET `crystals` = `crystals` - %u WHERE `userid` = %u', $qty,$ir['userid'] ); $query = $db->query($query); $qty = number_format($qty); echo "[{$qty}] Crystals added to shop."; } } else { if(!empty($itmid)) echo "Item id slot must be empty when no item selected.."; else if(empty($wts) || empty($qty) || empty($tcost)) echo "Invalid missed required feild.."; else { if($ir['donatordays'] < $_POST['qty']) { echo 'You do not have enough donator days you need '.number_format($_POST['qty'] - $ir['donatordays']).' more.'; $h->endpage(); exit; } $checkq = sprintf( 'SELECT `id`,`stype`,`tprice` FROM `user_shopitems` WHERE `stype` = "%s" AND `tprice` = %u AND `sID` = %u',$_POST['wts'], $tcost, $us['id'] ); $checkq = $db->query($checkq); if($db->num_rows($checkq) > 0) { $cqty = $db->fetch_row($checkq); $query = sprintf('UPDATE `user_shopitems` SET `sqty` = `sqty` + %u WHERE `sID` = %u AND `id` = %u', $qty,$cqty['sID'],$cqty['id']); $db->query($query); } else $db->query("INSERT INTO `user_shopitems` (`stype`,`sqty`,`tprice`,`sID`) "." VALUES ('{$wts}',{$qty},{$tcost},{$us['id']})"); $db->free_result($checkq); $query = sprintf( 'UPDATE `users` SET `donatordays` = `donatordays` - %u WHERE `userid` = %u', $qty,$ir['userid'] ); $query = $db->query($query); $qty = number_format($qty); echo "[{$qty}] Donator Days added to shop."; } } } else { if(isset($_GET['remove'])) { $_GET['remove'] = isset($_GET['remove']) && ctype_digit($_GET['remove']) ? abs(intval($_GET['remove'])) : 0; if(empty($_GET['remove'])) { echo "Invalid Format.."; $h->endpage(); exit; } $check = $db->query("SELECT `owner` FROM `usershops` WHERE `owner` = {$ir['userid']}"); if(!$db->num_rows($check)) echo "You don't have a shop.."; else { $check_item = $db->query("SELECT * FROM `user_shopitems` WHERE `id` = {$_GET['remove']} AND `sID` = {$us['id']}"); if(!$db->num_rows($check_item)) echo "You don't have this item in your shop.."; else { $itm = $db->fetch_row($check_item); if($itm['stype'] == 'item') { $itmname = $db->fetch_single($db->query("SELECT `itmname` FROM `items` WHERE `itmid` = {$itm['selling']}")); item_add($itm['selling'],$us['owner'],$itm['sqty']); $db->query("DELETE FROM `user_shopitems` WHERE `id` = {$_GET['remove']} AND `sID` = {$us['id']}"); echo "You have removed the [x ".number_format($itm['sqty'])."] of {$itmname} from the shop."; } else if($itm['stype'] == 'crystals') { $db->query("UPDATE `users` SET `crystals` = `crystals` + {$itm['sqty']} WHERE `userid` = {$ir['userid']}"); $db->query("DELETE FROM `user_shopitems` WHERE `id` = {$_GET['remove']} AND `sID` = {$us['id']}"); echo "You have removed the [x ".number_format($itm['sqty'])."] Crystals from the shop."; } else { $db->query("UPDATE `users` SET `donatordays` = `donatordays` + {$itm['sqty']} WHERE `userid` = {$ir['userid']}"); $db->query("DELETE FROM `user_shopitems` WHERE `id` = {$_GET['remove']} AND `sID` = {$us['id']}"); echo "You have removed the [x ".number_format($itm['sqty'])."] Donator Days from the shop."; } } } } echo "<h3>Your Shop</h3>"; $user_items = $db->query("SELECT * FROM `user_shopitems` WHERE `sID` = {$us['id']}"); if(!$db->num_rows($user_items)) echo "You don't have any items.<br /><br />"; echo " <table width='90%' class='table' style='text-align:center;'> <tr> <th>Item</th> <th>Qty</th> <th>Total Cost</th> <th>Action</th> </tr>"; while($si = $db->fetch_row($user_items)) { if($si['stype'] == 'item') { $itm = $db->fetch_row($db->query("SELECT `itmid`,`itmname` FROM `items` WHERE `itmid` = {$si['selling']}")); $si['stype'] = $itm['itmname']; } else if($si['stype'] == 'crystals') $si['stype'] = "".number_format($si['sqty'])." Crystals"; else $si['stype'] = "".number_format($si['sqty'])." Donator Days"; echo " <tr> <td>{$si['stype']}</td> <td>".number_format($si['sqty'])."</td> <td>".money_formatter($si['tprice'])."</td> <td><a href='myshop.php?remove={$si['id']}'>[Remove]</td> </tr>"; } echo "</table><br /><hr> <h3>Add to shop</h3> <script> $(document).ready(function () { $('#state').change(function() { // foo is the id of the other select box if ($(this).val() != 'item') { $('#foo').hide(); } else { $('#foo').show(); } }); }); </script> <form method='post'> What you selling: <select id='state' name='wts' type='dropdown'> <option value='item' selected>Item</option> <option value='donatordays'>Donator Days</option> <option value='crystals'>Crystals</option> </select><br /> <div id='foo'><br />Item Id: <input type='text' name='itmid' value='0' /></div><br /> Qty: <input type='text' name='qty' value='1' /><br /><br /> Total Cost: <input type='text' name='tcost' value='0' /><br /><br /> <input type='submit' name='addtoshop' value='Add To your Shop' /> </form>"; } } $h->endpage(); shoplist.php <?php /* * User Shops v1.00 * This module is a free * addon for mccodes v2 */ require(__DIR__.'/globals.php'); $getshops = $db->query("SELECT `id`,`name`,`desc`,`pic`,`status`,`owner` FROM `usershops` ORDER BY `cdate` DESC"); if(!$db->num_rows($getshops)) echo "There are no player shops."; else { if(isset($_GET['enter'])) { $_GET['enter'] = isset($_GET['enter']) && ctype_digit($_GET['enter']) ? abs(intval($_GET['enter'])) : 0; if(empty($_GET['enter'])) echo "Invalid."; else { $usershop = $db->query("SELECT `id`,`name`,`status`,`owner` FROM `usershops` WHERE `id` = {$_GET['enter']}"); if(!$db->num_rows($usershop)) echo "That's not a real shop."; else { $us = $db->fetch_row($usershop); if($us['status'] == 1) { echo "This users shop is closed for business right now come back when they are open."; $h->endpage(); exit; } $useritems = $db->query("SELECT * FROM `user_shopitems` WHERE `sID` = {$us['id']}"); if(!$db->num_rows($useritems)) echo "This user has nothing in there store."; else { echo "<h3>Viewing Stock of {$us['name']}</h3>"; while($ui = $db->fetch_row($useritems)) { echo " <table width='75%' class='table' style='text-align:center'> <tr>"; if($ui['stype'] == 'item') { echo " <th>Item</th> <th>Qty</th> <th>Total Price</th> <th>Action</th>"; } else { echo " <th>Qty</th> <th>Total Price</th> <th>Action</th>"; } echo " </tr>"; if($ui['stype'] == 'item') $selling = $db->fetch_single( $db->query("SELECT `itmname` FROM `items` WHERE `itmid` = {$ui['selling']}")); echo " <tr>"; if($ui['stype'] == 'item') { echo " <td>{$selling}</td> <td>".number_format($ui['sqty'])."</td> <td>".money_formatter($ui['tprice'])."</td> <td><a href='shoplist.php?buy={$ui['id']}'>[buy {$selling}</a></td><br />"; } else { echo " <td>".number_format($ui['sqty'])." {$ui['stype']}</td> <td>".money_formatter($ui['tprice'])."</td> <td><a href='shoplist.php?buy={$ui['id']}'>[buy]</a></td><br />"; } echo " </tr>"; } echo "</table>"; } } } } else if(isset($_GET['buy'])) { $_GET['buy'] = isset($_GET['buy']) && ctype_digit($_GET['buy']) ? abs(intval($_GET['buy'])) : 0; if(empty($_GET['buy'])) echo "Invalid."; else { $itm_check = $db->query("SELECT * FROM `user_shopitems` WHERE `id` = {$_GET['buy']}"); if(!$db->num_rows($itm_check)) echo "Invalid Item."; else { $itm_ret = $db->fetch_row($itm_check); $select = $db->query("SELECT `owner` FROM `usershops` WHERE `id` = {$itm_ret['sID']}"); $owner = $db->fetch_row($select); $cost = $itm_ret['tprice']; if($ir['money'] < $cost) echo "You don't have enough money you need ".money_formatter($cost - $ir['money'])." more"; else { if($itm_ret['stype'] == 'item') { $itmname = $db->fetch_single($db->query("SELECT `itmname` FROM `items` WHERE `itmid` = {$itm_ret['selling']}")); item_add($itm_ret['selling'], $ir['userid'], $itm_ret['sqty']); $db->query("UPDATE `users` SET `money` = `money` - {$cost} WHERE `userid` = {$ir['userid']}"); $db->query("UPDATE `users` SET `money` = `money` + {$cost} WHERE `userid` = {$owner['owner']}"); echo "You purchased ".number_format($itm_ret['sqty'])." of {$itmname} for ".money_formatter($itm_ret['tprice']); $db->query("DELETE FROM `user_shopitems` WHERE `id` = {$itm_ret['id']}"); } else if($itm_ret['stype'] == 'crystals') { $db->query("UPDATE `users` SET `money` = `money` - {$cost} WHERE `userid` = {$ir['userid']}"); $db->query("UPDATE `users` SET `money` = `money` + {$cost} WHERE `userid` = {$owner['owner']}"); $db->query("UPDATE `users` SET `crystals` = `crystals` + {$itm_ret['sqty']} WHERE `userid` = {$ir['userid']}"); echo "You purchased ".number_format($itm_ret['sqty'])." Crystal's for ".money_formatter($itm_ret['tprice']); $db->query("DELETE FROM `user_shopitems` WHERE `id` = {$itm_ret['id']}"); } else { $db->query("UPDATE `users` SET `money` = `money` - {$cost} WHERE `userid` = {$ir['userid']}"); $db->query("UPDATE `users` SET `money` = `money` + {$cost} WHERE `userid` = {$owner['owner']}"); $db->query("UPDATE `users` SET `donatordays` = `donatordays` + {$itm_ret['sqty']} WHERE `userid` = {$ir['userid']}"); echo "You purchased ".number_format($itm_ret['sqty'])." Donator Days for ".money_formatter($itm_ret['tprice']); $db->query("DELETE FROM `user_shopitems` WHERE `id` = {$itm_ret['id']}"); } } } } } else { echo " <table width='75%' class='table' style='text-align:center'> <tr> <th>Pic</th> <th>Shop Name</th> <th>Status</th> <th>Action</th> </tr>"; while($shop = $db->fetch_row($getshops)) { if($shop['status'] == 1) $status = "<span style='color:red'>Closed</span>"; else $status = "<span style='color:green'>Open</span>"; echo " <tr> <td><img src='{$shop['pic']}' width='200px' height='70px' /></td> <td>{$shop['name']}</td> <td>{$status}</td> <td><a href='shoplist.php?enter={$shop['id']}'>[Enter Shop]</a></td> </tr>"; } echo "</table>"; } } $h->endpage(); Upload the noimg.png to your images folder. [ATTACH=CONFIG]1896[/ATTACH] Player Shops v1.zip
  3. yea there ant much of a difference accept what kyle said. If you get stuck ill be happy to help.
  4. looks good look into textures and noise i am not that good at photoshop myself but that does help make it look better
  5. mccodes offer a free version its not as much as the v2 version but its good enough to play around with
  6. Yea i like the mysqli class i pretty much use it for all my projects if needed
  7. I have known mtg for over a year now and done work with him in the past many times with no problems at all. As for sticking his name in the code and claiming the game as his own this is bull mtg did work for my mobsters online which he added his db wrapper and class_functions and other stuff and not once has he ever tried claiming my game as his own.
  8. Hi sorry was offline got a late lie in for a change :D ill be free all day if you want to hit me up :)
  9. Hello i have a Hit List for sale if you are interested then more info below If you wish to make a purchase while i am offline you can send payment to pp email below and email me your Paypal email and the email address you wish me to send the files to. This process is temporary while i get things in place to upload it to the mccodes marketplace (takes up to 3 days to get it checked) Paypal Email: [email protected] Marketplace: http://mccodes.com/viewmod.php?id=164 My Site: http://nonstopcoding.com/?download=hitlist-v1-00 You can reach me on [email protected] or skype dundeeboy09 Features Option to add a player to hit list (Payouts can be Money or Crystals) Option to pay of someones hit for extra fee Option to hide yourself from showing as the hit poster for a fee   Latest Version - v1.00 [ATTACH=CONFIG]1887[/ATTACH] [ATTACH=CONFIG]1888[/ATTACH] [ATTACH=CONFIG]1889[/ATTACH] [ATTACH=CONFIG]1890[/ATTACH] [ATTACH=CONFIG]1891[/ATTACH]
  10. hehe should of stuck with it you might of learnt a bit more
  11. its because 0s are passed as empty as kyle says it needs tweaks here and there :p
  12. An attack system that is auto turn based as well as p2p turn based option where both have to be online such as a dueling system. Not that i know of An attack system that uses a group or team to fight another group or team for either team arena style battles or single player battles where players have multiple characters in their group or party. I have seen systems similar to this but not exactly sadly don't know anyone who has it for sale Mini games or events such as a card matching game, game like candy crush, scratchcards or lottery system. not quite sure on the others but there are a few lottery systems on here they might be buggy or you could have a custom one coded there not that hard A prize wheel or slots type of game/event. I believe that [MENTION=67703]adamhull[/MENTION] has a Wheel of Fortune for sale An item or card collection feature where players collect certain things to trade in for prizes. This again is very easy to add would not be a big job for developer A garden or farming feature. There is a farming module out there not entirely sure if its free or not but its for mccodes World boss battles. I have only ever seen 2 boss modules one that i created its on makewebgames store and some other game had another one   I believe the NWE is medieval fantasy engine that might have some mods related to what you are looking for Hope this helps EDIT: As for the farming mod i just been notified that its free and was created by sniko you can find that here with other stuff Http://harrydenley.com/everything-is-free
  13. looks good but could all be done via 1 function i believe untested but should work http://pastie.org/10094029
  14. check out this http://makewebgames.io/showthread.php/42196-Organised-Crimes-Not-showing-in-Gangs?highlight=gang+crimes might be useful i dunno
  15. Hello i have another module for mccodes i originally did this module for grpg but someone contacted me and wanted it for mccodes and not replying now so i decided to add it to the marketplace for purchase. http://mccodes.com/viewmod.php?id=163 With this module installed and set to active users will be able to complete every month for top 3 of each contest for prizes Top Leveler (This group has 3 sub groups 3 winners from each group) Level 10-34 Level 35-99 Level 100+ Top Stats Top Referrals You can set different prizes for each group if you wish the prizes can consist of Cash Crystals Exp Item   If you want to purchase the module and don't like the groups i would be happy to change there on your copy to what you wish.
  16. Hello Stevie i believe he used a separate file for the cron there is 2 ways you can do it 1. Open up your cron_day.php and go to the last line before the ?> and add this code if ($set['competition'] == "Active") { if ($set['competition_type'] == "Crimes") { $type = "crimes"; } elseif ($set['competition_type'] == "Jail Busts") { $type = "jail_busts"; } $get_top3 = $db->query("SELECT userid, $type, competition_starting FROM users WHERE competition='1' ORDER BY $type-competition_starting DESC LIMIT 3"); $n = 1; while ($top3 = mysql_fetch_object($get_top3)) { switch ($n) { case 1: $prize = $set['competition_prize_1']; break; case 2: $prize = $set['competition_prize_2']; break; case 3: $prize = $set['competition_prize_3']; break; } $db->query("UPDATE users SET money=money+$prize WHERE userid='$top3->userid'"); $n++; } $db->query("UPDATE users SET competition='0' WHERE competition='1'"); $db->query("UPDATE settings SET conf_value='Inactive' WHERE conf_name='competition'"); $db->query("UPDATE settings SET conf_value='' WHERE conf_name='competition_type'"); $db->query("UPDATE settings SET conf_value='' WHERE conf_name='competition_prize_1'"); $db->query("UPDATE settings SET conf_value='' WHERE conf_name='competition_prize_2'"); $db->query("UPDATE settings SET conf_value='' WHERE conf_name='competition_prize_3'"); }   or you can create the new file as he has done and link it manually via the cronjob manager in your cpanel Edit: if you are going to use a separate file then i found the cron on page 2
  17. is it a big job for converting?
  18. whoop free art :p I have yet to do any items for my game as my game is based on mafia i will most likely need all items you mentioned. Oh wait coming to think of it i have not even added any items to my game hehe but yea basicly everything on your list plus misc items ,collectibles
  19. yea Richards and the one from ruthless city engine is the only business mod's i have seen. if i remember correctly ravens script had a copy of the business mod that worked.
  20. iv yet to begin mine (starts crying) EDIT: oops forgot i fixed a few but only a few
  21. You think that is bad try turn error report on using grpg now there is a fun job :P
  22. i am pretty sure i seen a int with 200 lol only had a quick look at sql
  23. yea alot of mods are screwed here as adam said the forum did a move a while ago and some old code from the forums got left in some of the mods. if you post links to where you got them i might be able to help fix some of them
  24. i coded this not that long ago before he sold it maybe you did another for him?
×
×
  • Create New...