Jameoo Posted May 19, 2008 Posted May 19, 2008 Hey Im Posting This Cause All The Item Mergers Dont Work On Here So Here It Is You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Guest Anonymous Posted May 19, 2008 Posted May 19, 2008 Re: Merge Item's [V2] Slightly OT, but why on earth do you need to merge items? A swift read of the MySQL manual under INSERT syntax is all you need. Quote
Jameoo Posted May 19, 2008 Author Posted May 19, 2008 Re: Merge Item's [V2] What Do You Mean Nyna Quote
Zero-Affect Posted May 20, 2008 Posted May 20, 2008 Re: Merge Item's [V2] i think she means basically when u get/buy another item it auto add's has another on the one you have originally Quote
Reaper Posted July 16, 2008 Posted July 16, 2008 Re: Merge Item's [V2] for this code do i need to add a php file or something it dont say Quote
Tonka Posted July 16, 2008 Posted July 16, 2008 Re: Merge Item's [V2] just call it merge.php and put a link on your items page saying Click here to merge items Quote
Ragnar Posted July 18, 2008 Posted July 18, 2008 Re: Merge Item's [V2] but why on earth do you need to merge items? You should really think about buying the script some time. By default, when a player gets an item you already have, the dumb script doesn't merge them, but shows them twice on the item page, the new items and the ones you already had. Quote
blackcloudmafia Posted September 24, 2010 Posted September 24, 2010 i just added this and it helps alot nice job Quote
Gaara Ichimaru Posted October 8, 2010 Posted October 8, 2010 newb needs a hand Sorry I'm kinda new to this, I made the merge.php and I have that saved in place but what code do I need in the item.php page and where, to make it merge? Also How do I choose an item for it to change into. Thanks a bunch :) -Gaara x Quote
peterisgb Posted October 8, 2010 Posted October 8, 2010 open inventory, find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. after the </a>] add this [Merge] so it looks like this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. this should be easy, even for a n00b, i'm a n00b and that was easy, tbh i think you should try to learn it if your going to have a game Quote
Gaara Ichimaru Posted October 8, 2010 Posted October 8, 2010 this should be easy, even for a n00b, i'm a n00b and that was easy, tbh i think you should try to learn it if your going to have a game Awwwh, It's not really working. And the merge option is only on food. I'm not the coder thats my partner but he is not well today so he asked me to have a crack at it... Not much luck though... Thanks anyway. Quote
peterisgb Posted October 8, 2010 Posted October 8, 2010 ok, well i; sure some1 might help, tbh i aint that good either but learning, but ya should have a go at learning it Quote
Nicholas Posted October 8, 2010 Posted October 8, 2010 this should be easy, even for a n00b, i'm a n00b and that was easy, tbh i think you should try to learn it if your going to have a game Awwwh, It's not really working. And the merge option is only on food. I'm not the coder thats my partner but he is not well today so he asked me to have a crack at it... Not much luck though... Thanks anyway. after creating file "Merge.php" and uploaded it, open up "Inventory.php" and find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and replace it with You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. hopefully you get it idea where im coming at lol. OR open up "inventory.php" and find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and under it add this lol. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. NOTE: this way might slow game down lol. Quote
rulerofzu Posted January 11, 2011 Posted January 11, 2011 You can do this by doing a mysql query using count, group_concat and sum to check for duplicates, store the id's and the quantity. Add all the items into the inventory and delete all the duplicates. Which is how its done on zu. Worth looking into :D Quote
Paul Evans Posted January 11, 2011 Posted January 11, 2011 if the game is coded right you should never have mutiples ... Quote
morgan1122 Posted January 12, 2011 Posted January 12, 2011 Installed into my game its a NEED mod Thanks Quote
rulerofzu Posted January 12, 2011 Posted January 12, 2011 if the game is coded right you should never have mutiples ... Well yes you are correct there but on zu for example you can get a item from several different areas so the method I mention is to automatically arrange the items. The duplicate exists but the player never sees it. 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.