PlanZed Posted May 11, 2020 Report Share Posted May 11, 2020 Title says it all. I am currently trying to setup sending trading offers but I don't know how to get the Steam ID that it asks for. Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted May 11, 2020 Report Share Posted May 11, 2020 How to get a user's SteamID depends on how you know what user you want to trade with. Quote Link to comment Share on other sites More sharing options...
PlanZed Posted May 11, 2020 Author Report Share Posted May 11, 2020 1 hour ago, Dr. McKay said: How to get a user's SteamID depends on how you know what user you want to trade with. I am using Steam chat commands. So when someone says "!buy x" it will send them a trade offer for the specific items on both parties. Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted May 11, 2020 Report Share Posted May 11, 2020 The chatter's SteamID is available in the event that delivers you the chat message. Quote Link to comment Share on other sites More sharing options...
PlanZed Posted May 11, 2020 Author Report Share Posted May 11, 2020 1 hour ago, Dr. McKay said: The chatter's SteamID is available in the event that delivers you the chat message. I know this is a dumb question but how would I call the SteamID from the chat message? I have the code client.chatMessage(steamID, "Setting up the trade offer for Test Item"); const offer = manager.createOffer(steamID); Is this the correct way to call it? Quote Link to comment Share on other sites More sharing options...
Perport Posted May 11, 2020 Report Share Posted May 11, 2020 6 minutes ago, PlanZed said: I know this is a dumb question but how would I call the SteamID from the chat message? I have the code client.chatMessage(steamID, "Setting up the trade offer for Test Item"); const offer = manager.createOffer(steamID); Is this the correct way to call it? That should work but don't make the offer variable constant use var or let instead. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.