dragonmase 5 Posted March 24, 2017 Share Posted March 24, 2017 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 https://wrobot.eu/forums/topic/5475-coding-an-if-condition-dungeon-profile/ Share on other sites More sharing options...
Kraven 0 Posted April 7, 2017 Share Posted April 7, 2017 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 https://wrobot.eu/forums/topic/5475-coding-an-if-condition-dungeon-profile/#findComment-25580 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now