changed
Code:
<While Condition="Me.IsAlive">
<!--Enter Dungeon-->
<If Condition="Me.ZoneId != 5723">
<If Condition="Me.Location.Distance(new WoWPoint(3987.989, -2944.655, 1002.547)) > 100 " >
<CustomBehavior File="RunCode" Code="Logging.Write(System.Windows.Media.Colors.DeepSkyBlue, "[Azyul]: Heading to Instance.");" />
</If>
<MoveTo Nav="Fly" X="3987.989" Y="-2944.655" Z="1002.547" />
<CustomBehavior File="GoThruPortal" Timeout="30000" X="3983.473" Y="-2931.715" Z="1002.547" />
<CustomBehavior File="WaitTimer" WaitTime="10000" TerminateWhen="Me.IsInInstance" />
</If>
to
Code:
<While Condition="Me.IsAlive">
<!--Enter Dungeon-->
<If Condition="Me.ZoneId != 5723">
<CustomBehavior File="Misc\RunLua" Lua="ResetInstances();" />
<CustomBehavior File="WaitTimer" WaitTime="500" />
<CustomBehavior File="FlyTo" X="3987.989" Y="-2944.655" Z="1002.547" />
<CustomBehavior File="GoThruPortal" Timeout="30000" X="3983.473" Y="-2931.715" Z="1002.547" />
<CustomBehavior File="WaitTimer" WaitTime="10000" TerminateWhen="Me.IsInInstance" />
</If>
that did it for me.
The moveto fly, buggs it out I think. And just added a reset just incase, as sometimes it was not reset for me.
edit: This obviously will not work right, if u intend not to use tp moonglade and want it to walk out/in.
Last edited: