Jump to content
McKay Development

How to send only selected items


korvin

Recommended Posts

Hi,

I need to know, how to send in offer items that user selected on website. I found only code that selects all items:

for(i=0; i<itemsArray.length; i++){
                     
                    const item = theirInv.find((item) => item.assetid ==''+itemsArray[i]);
                    console.log("got item number" + i);
                    offer.addTheirItem(item);    
                    
                    }

Also I don't understand how to make a webpage where user can select items for trade. User just need to click on his (or bot's) items, then press button for trade. Then somehow nodejs bot must to get trade url, items ids and start trade function.

I know that I probably need to use ajax and curl, but just don't understand HOW

Thanks 

Link to comment
Share on other sites

  • 1 month later...

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