Jump to content
gatero

Java class to add item to inventory with decrypted Inventory

Recommended Posts

Hello guys, im here again.

What im needing atm is a Java function that if i send in a expression 

-the encrypted inventory 

-the item i want to add

as parameters, the result is the new inventory with this new item.

for example

result = com.InventoryParser.addItem(encryptedInventory, newItem);

So this function also has to decrypt the inventory string as sql does.

If it's possible, this funtion should check if the inventory has enough space to add this item before adding it.

I already did a funtion to build the inventory as an object, with the max size, type, items, etc.

Also a funtion to build the new items buy passing the itemId and item specs.

Edited by gatero

Share this post


Link to post
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.   Restore formatting

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