Jump to content
MakeWebGames

Recommended Posts

Posted

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

 

ixtjxj.jpg

(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

  • 2 weeks later...
Posted

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.

Posted

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

Posted

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

Posted

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

  • 4 months later...
Posted

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.

Posted

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:

Posted
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

Posted

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

Posted

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

  • 2 months later...
Posted

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...

Posted (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 by Artemis
error
Posted (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 by rulerofzu

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...