On my server there is a Blackjack game where countrary to real casino you know what are the 2 cards of the croupier so....for people who knows how to play blackjack it means that the probability of winning is over 50%.
That's the reason why I'm trying to do a bot there but there are many things I want to know. Is this possible using an automacro to get 2 numbers that the NPC says to me (my score and his score)? I know it would be possible if the 2 numbers were on the same line using "console .........(\d+) ..... (\d+)" but they are on different lines, so I don't know how to do.
To give you some idea how it is, it appears more or less like that :
Code: Select all
You have this cards : 7 A 8
Your score is : 16
Croupier cards are : 9 8
Croupier score is : 17
Code: Select all
automacro detectscore {
console /Your score is : (\d+)/
console /Croupier score is : (\d+)/
delay 1
exclusive 1
if ($.lastMatch1>=$.lastMatch2) call .....
if ($.lastMatch1<$.lastMatch2) call .....
.......
}