Hey,
I would like to create a simple "IF" function that determins a name and that exact phase, like if someone says "1 Gold" or "53 Silver" etc. The bot will open the trade and add that amount of that coin. I just don't know enough VB to do it. But the basics looks like this:
Array $valid = "name1", "name2", "name3";
if ($name == $valid(array)) {
/target $name
Break down the phase into two parts Amount / What coin.
Open up trade
And something like /add_trade_$coin $amount
/accept_trade
}
Now here comes the problem part, Im running two clients at once since I usealy have one to play with and the other that stands in the house selling, So the script can't just use "Sendkeys" Since that would send it to the window im playing on...
Thanks in advance!
|