Jessecar96 / SteamBot

Automated bot software for interacting with Steam Trade
http://scrap.tf
MIT License
1.33k stars 911 forks source link

'SteamKit2.EPersonaState' does not contain a definition for 'Trade' @ ScrapUserHandler.cs #199

Closed the-sharp-shooter closed 11 years ago

the-sharp-shooter commented 11 years ago

I'm trying to compile a bot with the ScrapUserHandler.cs that waylaidwanderer released (thank you so much for that btw) and I'm getting the error

'SteamKit2.EPersonaState' does not contain a definition for 'Trade'
    in C:\Users\User\Documents\GitHub\DonationBot\SteamBot\ScrapUserHandler.cs  

I get 5 of these, in the lines with: Bot.SteamFriends.SetPersonaState(EPersonaState.Trade);

I started my C# experience with SteamBot and I already know how to do some things but I don't know how to solve this one... Please give me a little help ;)

teliosdev commented 11 years ago

EPersonaState.Trade doesn't exist. What are you trying to write?

the-sharp-shooter commented 11 years ago

It's from ScrapUserHandler.cs > here https://gist.github.com/waylaidwanderer/5126244

teliosdev commented 11 years ago

Maybe you're looking for EPersonaState.LookingToTrade?

the-sharp-shooter commented 11 years ago

Well, to start I just tried to compile the ScrapUserHandler.cs that waylaidwanderer provided without making any change to it, so maybe he could give a hand here.

I'll try to change it to what you said, to see what happens.

(Also, for developing SteamBot is it benefical to use either Xamarin (since MonoDevelop is apparently gone) or Visual Studio or its just the same to use one or another ?, i've been trying with both, without much sucess)

the-sharp-shooter commented 11 years ago

It worked. Thanks ;)