-
Posts
572 -
Joined
-
Last visited
-
Days Won
7
Content Type
Profiles
Forums
Events
Everything posted by NonStopCoding
-
so you want all the information from iteminfo to show up when they hover the item in there inventory instead of going to the file for it?
-
php code check no errors found??
NonStopCoding replied to boionfire81's topic in Modification Support
i hated mccodes gangs why i made my own -
mccode-v2 City Tax (Gang Addon)
NonStopCoding replied to NonStopCoding's topic in Free Modifications
ok thanks :P -
mccode-v2 City Tax (Gang Addon)
NonStopCoding replied to NonStopCoding's topic in Free Modifications
try this CREATE TABLE `citypayments` ( `id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, `cityid` int(11) NOT NULL, `userid` int(11) NOT NULL, `earnings` int(11) NOT NULL default 0, `gang` int(11) NOT NULL, `cowner` int(11) NOT NULL ) ENGINE = MYISAM; use this docrime.php http://pastie.org/10875551 -
mccode-v2 City Tax (Gang Addon)
NonStopCoding replied to NonStopCoding's topic in Free Modifications
what page is showing these errors could help me faster but updated the location to cityid so fixes that I have fully updated the table above give it a try ? -
mccode-v2 City Tax (Gang Addon)
NonStopCoding replied to NonStopCoding's topic in Free Modifications
CREATE TABLE `citypayments` ( `id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, `cityid` int(11) NOT NULL, `userid` int(11) NOT NULL, `earnings` int(11) NOT NULL default 0, `gang` int(11) NOT NULL, `cowner` int(11) NOT NULL ) ENGINE = MYISAM; i dunno if that matches where it shows this info i just rebuilt it from the query -
well you need to add a where statement into your query $db->query("UPDATE `table` SET `column`=rand(100,900) WHERE `someid` = ".$somevariable['someid']); Edit: the someid is usually the auto increment key value which for items is itmid
-
Still coding looking for work and working on my game always checking around forums helping where i can if i can
-
screenshots added instead of having to sign up :P
-
totally forgot to post this was created for GRPG but can be converted to V1-2 if requested no extra cost.
-
Ok so i created this auction module for a client but its been weeks and no response so i am going to put it up for sale Module Details This mod will allow your users to sell items for points or money at there price there is also a buy now price users can bid once the timer runs out (auctioneer sets time limit 1,5,24 hours) Cost $10.00 Support will be supplied in a quickly as possible but my mails come through my mobile. I dont actually have any screenshots you can visit it on a test site i have set up Removed the link and added screenshots below. https://snag.gy/PIwsMU.jpg - main auction page https://snag.gy/gCiVAU.jpg - add auction page https://snag.gy/jqMW2c.jpg - add auction page 2 https://snag.gy/eau8sd.jpg - adding auction completed https://snag.gy/pMJm1C.jpg - main auction page with item listed.
-
ah ok never really used it being honest
-
Paid Mod Request - Pawn Shop
NonStopCoding replied to boionfire81's topic in Requests & In Production
i have a free player personal shops mod on here if you mean that users can sell there own items for money/crystals had to dig through the free mods section to find it but heres link http://makewebgames.io/forum/ga...4-player-shops if this is still not what your looking for and your looking for a "Real life" pawn shop idea then yes it can be done but don't know if it will be useful So lets say you are on about real life pawn shops the user owns the shop and another user can give you a item you price it and etc they buy it back with interest? if they fail to pay after x days then they lose item and its yours. Example : Knife worth: $1,000 offer: $250 buyback: 15% buyback cost: $287 to buy the item back profit: $37 -
i thought v2.05b had a parser :S
-
ill start at $20 and cant you download them again from marketplace?
-
Paid Mod Request - Pawn Shop
NonStopCoding replied to boionfire81's topic in Requests & In Production
Sorry in advance if anyone has requested this job also sorry if i have picked you up wrong. i did a full paste for you if its easier. - http://pastie.org/10860439 look for in itemsell.php if ($_POST['qty'] > $r['inv_qty']) { echo 'You are trying to sell more than you have!'; } change the else statement to this else { $price = $r['itmsellprice'] * $_POST['qty']; if($price > 5) { item_remove($userid, $r['itmid'], $_POST['qty']); $db->query("UPDATE `users`SET `money` = `money` + {$price}WHERE `userid` = $userid"); $priceh = money_formatter($price); echo 'You sold ' . $_POST['qty'] . ' ' . $r['itmname']. '(s) for ' . $priceh; $is_log = $db->escape("{$ir['username']} sold {$_POST['qty']} {$r['itmname']}(s) for {$priceh}"); $db->query("INSERT INTO `itemselllogs`VALUES (NULL, $userid, {$r['itmid']}, $price,{$_POST['qty']}, " . time() . ", '{$is_log}')"); } else echo "The value of the item must be greater than 5"; } -
haha so it is. Guess i am so used to $db-escape :P
-
$_POST['name'] = isset($_POST['name']) && is_string($_POST['name']) ? strip_tags(stripslashes($_POST['name'])) : false; upon that you would need to do some checks to make sure that the data is correct for example lets say you have name in the database with a varchar of 75 you would use the strlen() function you would also need checks in place to make sure (if your going to allow spaces numbers and letters) so users cant put whatever preg_match and escape the data on input to the database $esname = $db->escape($_POST['name']); if you look through some of the files on the game you will see security check preferences page or any staff page
-
mccode-v2 Currency Exchange *Tested*
NonStopCoding replied to boionfire81's topic in Free Modifications
also when using global you don't need to global the variable unless its going to be used for example in the index function you have global the $ir,$db,$h but the only two you used are $ir and $h its not much of a biggy but not needed unless its going to be used :p function getcredits() { global $ir, $db, $userid, $h; and also i do mine like this $_POST['credits'] = isset($_POST['credits']) && ctype_digit($_POST['credits']) ? abs(intval($_POST['credits'])) : 0; -
mccode-v2 Updated Travel System
NonStopCoding replied to NonStopCoding's topic in Free Modifications
yes this module could cause strain on the server not my best idea -
http://makewebgames.io/forum/game-engines/mccode-development-support/free-modifications/27134-player-shops this is my module for free that does playershops
-
quote fail read below lol
-
Let me start by saying if you purchased my Daily Missions Module from the market place then please download the new 1.03 version. I have just released a update for my Daily Missions module updated applied. Converted all sql files into one file. You can now create single task missions (Had to use all 8 tasks before). Cleaned up the staff file and removed code that was needed also added some extra security i missed. Fixed up a issue in the text files which was causing task 8 to fail. Fixed a issue where user would leave page and come back and there mission was completed. All old code from 1.02 that was left over from the 1.01 update has been removed in the 1.03 so please correct issues. If you don't have the module and would like to purchase here is link http://mccodes.com/viewmod.php?id=168
-
your boss mod looks alot like mine just edited some
-
that's what he used but he wants to allow numbers this only allows letters Zettieee is the right way or you could do a preg_replace