CJ - Twitch Posted August 24, 2010 Posted August 24, 2010 This is the dump mod I made but as it doesn't seem to be selling as planned, I'm giving it out for free... Well now that I think about it is quite a small mod. :pinch: Those who bought this mod will not receive a refund but will get 10% of my next mod £10 or under. Here it is. :D (Forget about the crap at the bottom. :P) This mod allows your users to dump there old crap items for other users to find, It takes 5 energy off the searcher. Run this query in your data base. :thumbup: [mysql] CREATE TABLE IF NOT EXISTS `dump` ( `dumpID` int(11) NOT NULL AUTO_INCREMENT, `itmID` int(11) NOT NULL, `dumperID` int(11) NOT NULL, PRIMARY KEY (`dumpID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; [/mysql] Make a new file called dump.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You're welcome. :love: Criticism welcome. 8o Quote
DELETE-ME-NOW- Posted August 24, 2010 Posted August 24, 2010 Isnt there a part you need to add to inventory? Quote
CJ - Twitch Posted August 24, 2010 Author Posted August 24, 2010 Nope just add a link in explore.php Quote
Paul Evans Posted August 24, 2010 Posted August 24, 2010 I personally dislike the use of *'s but looks like a nice mod. Quote
Wazam Posted August 26, 2010 Posted August 26, 2010 Nice job. You might want to secure the $_GET & $_POST. Also, I think $_SESSION needs securing, not too sure about that. Any who, nice work! :D Quote
srachit Posted August 26, 2010 Posted August 26, 2010 Interesting mod, but not one I would pay for, good thinking in releasing it for free :) Quote
raynard Posted September 4, 2010 Posted September 4, 2010 i liked this mod but was getting a few complaints from players that the high levels were clearing the dump before the noobs got a shot at looking so i have added a few things to rectify it, thought i would post my changes so others could do the same if they wanted. Run SQL Query [mysql]ALTER TABLE `users` ADD `look` int(11) NOT NULL ;[/mysql] Add In your daily Crons You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find in Dump.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. replace with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then Find; You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Replace with; You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Later find again; You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. replace again with; You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. It should allow your users to only look in the dump 10 times per day, i took the no refreshing page out as i dont mind them refreshing it 10 times a day. you can change the amount of times a user looks through the dump by editing this part to whatever you want You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
CJ - Twitch Posted September 4, 2010 Author Posted September 4, 2010 Ermm.. Why did you change every query and get rid of the anti-refresh script? The query's were fine and more readable than yours. Also why would you limit your users to the amount of searches they can do? It's there energy so they should be allowed to use it. You sir, Fail. :) ...Other than that good work bud. xD Quote
Dayo Posted September 4, 2010 Posted September 4, 2010 what he means is people with higher levels have more energy so they can refresh more where as new people refresh sloer as they have fewer energy, what if you just took the energy out as a %age ir 5% a search Quote
raynard Posted September 4, 2010 Posted September 4, 2010 I changed the queries because its what im used to working with personally and i removed the refresh script because it wasn't needed since i added a limit to the amount of times it can be searched. i added limits because i have players in different time zones some don't get to find items because they log on at different times and the dump has been cleared by 1 high level player by adding a limit i have given my players a fair chance at finding items. the original mod was good but i changed a few things to suit my preference. no fail in my eyes Quote
CJ - Twitch Posted September 4, 2010 Author Posted September 4, 2010 Oh right of course. I forgot that peoples energy changes, On my game everyone has the same energy. :P Quote
Richard Posted February 3, 2011 Posted February 3, 2011 First of all, Great mod... As many know i have a habit of Making TC Mods so well done.. 2. This modification has a small bug, When you dump an item if you refresh when it says ( You have dumped a (Bleh) so on) it will still dump another one even if you do not have that amount. But like i said good mod, Hopefully you will repair it for the many users of MWG. Quote
rulerofzu Posted February 3, 2011 Posted February 3, 2011 Richard im sure you could have fixed this yourself :P Replace the dump2 function with this one and your done. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Also secured the post value :rolleyes: Quote
Richard Posted February 3, 2011 Posted February 3, 2011 Richard im sure you could have fixed this yourself :P Replace the dump2 function with this one and your done. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Also secured the post value :rolleyes: Haha you are correct there i could of fixed myself, But there was no request for me to fix :P But good work Zu :love: xD Quote
Oo-Savage-oO Posted February 6, 2011 Posted February 6, 2011 Oh right of course. I forgot that peoples energy changes, On my game everyone has the same energy. :P Mine too but u can increase it Quote
mr_shuu Posted February 7, 2011 Posted February 7, 2011 now how can this be modified so that the dumps are in associated to a certain gang and only members of the gang attached to that "dump" can Borrow garbage.. okay okay I know I've have to eventually buy the armory mod.. hahaha Quote
mr_shuu Posted February 7, 2011 Posted February 7, 2011 Hummmmm on a serious note... maybe per item dumped could result in an event... like a point and add trade points for turns in pointstrader - thats what I did... so they get a certain number of points a month... and can use em at Either the dumps OR streets... when they level up they can get a points bonus... a new city opens and has its own version of streets / it can be a lake to swim / mountain to climb... whatever ... they can search it Quote
fuzzyDCR Posted April 15, 2011 Posted April 15, 2011 I would love to have this mod but I can't seem to get it to work. All the links to pages give me errors saying they need a , or ; and if I add them they still have the same error... Quote
iseeyou94056 Posted April 16, 2011 Posted April 16, 2011 Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/iseeyou9/public_html/dump.php on line 23 Quote
Artemis Posted April 16, 2011 Posted April 16, 2011 (edited) And this is why people dont try to help, because we get criticised for posting a code that works for us.... People need to remember they were all newbies once upon a time. Lets help others, not take the p*** out of them when they obvious want/need some help. Explaining things for them, discussing why it does not work is alot more helpful than standing , pointing and laughing at them. FuzzyDCR, If you are still having the same issue feel free to PC... my copy works. Edited April 17, 2011 by Artemis error Quote
rulerofzu Posted April 17, 2011 Posted April 17, 2011 (edited) Why have you re-posted the code not in tags? solution removed due to people cannot be bothered to look for themselves. Im not against helping people but it does seem that you copy n paste the code. Enter the url it doesnt work and then post a reply without actually looking to see if you can resolve it yourself. Which means your never going to learn. Edited April 17, 2011 by rulerofzu Quote
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.