Jump to content
McKay Development

Converting Items into Gems?


Meshi8
 Share

Recommended Posts

Hi,

 

is it possible to convert background/emotes into gems with a bot?

 

Basically, I want the bot to scan it's inventory once a trade is completed, find Backgrounds/Emotes worth 20+ Gems and turn them into Gems.

 

Is it possible to do?

Link to comment
Share on other sites

Thanks! I wasn't aware these existed!

 

However, I'm pretty new to this and really not sure how to use these methods..

 

Say I have an array called "Selected_Items" with items I filtered myself

 

I go through it with a for loop and try to convert each item to gems.

 

 I'm supposed to get gemValue first so that I can pass that variable to turnItemIntoGems() method right? I'm not sure how to use getGemValue() method.  Could you give me a simple example by any chance?  :) 

Link to comment
Share on other sites

You have to use getGemValue first because turnItemIntoGems needs the expected value.

That's what I figured.

 However, I'm not sure I'm doing this right.

 

Here's my attempt:

// I'm going through my steam inv with a for loop

let MyItem = MySteamInventory[i];

community.getGemValue(MyItem.appid,MyItem.assetid, (res) => {
console.log("This Item is worth: "+res.gemValue);
});

Am I supposed to use community.getGemValue since getGemValue belongs to node-SteamCommunity? 

 

The Error: This Item is worth: undefined

Edited by Meshi8
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.
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...
 Share

×
×
  • Create New...