Jump to content
McKay Development

Recommended Posts

Posted

How can I select an item from someone's inventory(for example select an eyelander from their inventory) and make a tradeoffer for it? How can I ask them for a specific item and give them a specific item? for example : [Ask] 2x Eyelander, [Give] 1x Scrap.

Posted
15 hours ago, Dr. McKay said:

You would retrieve the other user's inventory and use addTheirItem to add their items to the offer.

I know that but my problem is that I do not know how to add a specific item, could you give me an example? I know I can add an item with addTheirItem(item as const for example) but how can I specify an item to add?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.

Loading...
×
×
  • Create New...