Jump to content

Coding an if condition (Dungeon Profile)


dragonmase

Recommended Posts

I would like to code a line which checks what continent the bot if in. If the continent/map is the wrong one, it will go to the previous step.

 

Basically, at the end of my dungeon run, I want to teleport out using my druids moonglade teleport. However, sometimes some patrolling mob will aggro me and cancel my teleport, or for some other reason my teleport will get canceled. The bot then misfunction because it can't reach that step anymore.

So it would look something like:

1. Runluacode: CastSpellByName("Teleport:moonglade", onSelf);

2. If continent ID is not Kalimdor -> go back to step 1

 

Is this possible?

Link to comment
Share on other sites

  • 2 weeks later...

I haven't tested it, but I think it'd look something like this:

StepName => Teleport
RunLuaCode => CastSpellByName("Teleport:moonglade", onSelf);
Wait => 5000
If => wManager.Wow.Helpers.Usefuls.ContinentId != 1
GoToStep => Teleport
EndIf

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
×
×
  • Create New...