Jump to content
MakeWebGames

Inventory Merge


Recommended Posts

Hi currently my inventory has single items, i do have a merge link which merges all of the items into one.

However i want eliminate the reason to merge and have items automatically add up if you buy items from market get sent etc.

can anyone help me out to get the inventory re-coded?

Link to comment
Share on other sites

yep item_add() will fix your problem no need for the quantifier. and also the automatic one that has been coded updates the inventory everytime a player clicks the inventory link,and the item numbers soar to the billions....

Edited by lucky3809
Link to comment
Share on other sites

  • 8 months later...
What version are you using? If v2 use the item_add() function. If not recreate it. Basic idea is to check if the item exists, if so simply add to the amount currently there, otherwise add the new item normally (so with an insert).

i also need a merger for my inventory but im not a coder so how would i do that?

Link to comment
Share on other sites

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