Simple trading bot

Asked by Ben

Hello everyone,

I'm working on a small project for a game I play called counter strike. It comes with a web application which essentially allows you to trade your own 'skins' (skins are the guns you see in this link https://i.gyazo.com/e2407660e5f7d207fa616648053f1aa9.png). Each skin comes at it's own price as you can see in the link above. What I would like sikuli to be able to do is identify the price of my one skin and then work out which is the best skin to trade with the other person.

For example, in the screenshot you can see my skin is valued at £0.05, the other person has a range of skins all of different values. I would like sikuli to be able to do more than just realise that trading my £0.05 for their £110.90 skin will make me money. The reason for this is that this isn't a fair trade at all and so the other person definitely won't accept my offer. What I want is Sikuli to work out what is a fair trade, but where I still profit. For example, it uses a formula such as ('price of my skin' x 1.05) and another ('price of my skin' x 1.15) so that I make anywhere between 5% and 15% profit.

The reason I am posting this question is because I have only owned this software for 48 hours and never coded before, so my ability for a complex process such as this is well out of my reach. I have spent the last 2 days learning all of the basics and feel comfortable with the software.

I would be so grateful if anyone could lead me in the right direction, let me know some scripts which will make this easier or even code some parts of this.

I think this would be a really fun project to work on with the talented coding community and can't wait for some replies:)

(This is non-profit as values are just an in-game value that cannot be exchanged for real money).

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

I do not want to crash your enthusiasm, but before thinking of any game related tactics (which in the end will be some calculations and decisions (if ... elif ... elif ... else)), you have to solve the visual challenge: identify the items (skin) and evaluate their type and prices.

Anything ready about this?

General comment on further support:
Why is it necessary, to trade with weapons?
Wouldn't it be sufficient to trade with goods of normal life or any gadgets?
I have decided for me personally to not support any war games, ego-shooters or similar trash.

What you do with your free time is yours, but I will not continue to help you with that.

Revision history for this message
Ben (benpersonal97) said :
#2

Can the visual challenge not be overcome by identifying the prices of each? As I only want to trade based on price.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

... and how do you think, you can "identify the price" ?

Revision history for this message
Ben (benpersonal97) said :
#4

Because each skin has a text price overlayed, is there no script that will search for text in a certain area?

Revision history for this message
RaiMan (raimund-hocke) said :
#5

Please read through the docs and look for relevant questions here on Sikuli's OCR feature Region.text().

Can you help with this problem?

Provide an answer of your own, or ask Ben for more information if necessary.

To post a message you must log in.