Matii Posted February 19, 2019 Report Posted February 19, 2019 Hello, i have a question do anyone have idea how to make a diffrent texts after trade is accepted by person who write command i have in mind something line when buyer use !buytf > get offer > accept it > get a message with other bot who sell tf keys etc if he use !buycs he get message with bot who sell csgo keys and thats my question idk who to make it in 100% i know i can make 1 message if (TradeOfferManager.ETradeOfferState[OFFER.state] == 3) { client.chatMessage(OFFER.partner, " Thanks for trading with me!") } Quote
Dr. McKay Posted February 19, 2019 Report Posted February 19, 2019 Your call to chatMessage is correct (although deprecated; you should check out the docs for the new SteamChatRoomClient), but your comparison is wrong. It should be: if (OFFER.state == TradeOfferManager.ETradeOfferState.Accepted) Quote
Matii Posted February 19, 2019 Author Report Posted February 19, 2019 Ok but its possible to make chatmessage when trade is accepted and check what command was used by user? Quote
Matii Posted February 19, 2019 Author Report Posted February 19, 2019 Would you give me a tip how please Quote
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.