Jump to content

Help for a new autoit-er


Recommended Posts

I'm trying to fix a bot for WoW, but the problem is, when a specific dialogue box opens, telling me to input the type of battleground i am going into(AV,AB, or WSG)

I get a syntax error, heres the source, can anybody help?

if $whatbg = "AB" OR if $whatbg = "AV" OR if $whatbg = "WSG" Then

IniWrite("bgbot.ini", "Misc", "BattlegroundName", $whatbg)

Else

MsgBox(0, "ERROR!", "Syntax error. PvP Bawt will now exit.")

Exit

EndIf

The error i get is: if $whatbg = "AB" OR if $whatbg = "AV" OR if $whatbg = "WSG" Then

if $whatbg = "AB" OR ^ERROR

"If" statements must have a "Then" keyword.

What I am trying to do is in the box i type AV, WSG or AB in, it will write my input to the .ini file, then go on to the next dialogue box, but i can't get past that error.

Any help is appreciated, thanks.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...