Radonic
New Member
- Joined
- Apr 22, 2012
- Messages
- 1,213
I did like this if it make sense. Since the "real dungeon" have a Hash and the fake dungeons return the same Hash for both in and out. I made it to search for the stone object instead.
This script is for finding champions but you should be able to apply it to your script aswell.
Code:
<If condition="(Me.IsInTown)">
<UseWaypoint questId="1" x="2980.667" y="2834.59" z="24.90045" actorId="223757" waypointNumber="6" />
<WaitTimer questId="1" waitTime="5000" />
</If>
<If condition="ZetaDia.CurrentWorldId == 71150 and (not Me.IsInTown) and ActorExistsAt(176002, 2236.135, 1797.281, 6.34745, 10)" >
<MoveTo questId="1" pathPrecision="10" x="2236.135" y="1797.281" z="6.34745" />
<MoveTo questId="1" pathPrecision="1" x="2233.296" y="1793.673" z="6.359962" />
<WaitTimer questId="1" waitTime="100" />
<UseObject questId="1" actorId="176002" x="2233.924" y="1798.8" z="6.345071" />
</If>
<If condition="(not ZetaDia.CurrentWorldId == 154587) and (not ZetaDia.CurrentWorldId == 71150)" >
<ExploreArea boxTolerance="0.50" boxSize="10" until="ObjectFound" actorId="135248" />
<UseTownPortal questId="1" />
<WaitTimer questId="1" waitTime="5000" />
<MoveTo questId="1" pathPrecision="10" x="2980.667" y="2834.59" z="24.90045" />
</If>
<If condition="ZetaDia.CurrentWorldId == 154587 and (not ZetaDia.CurrentWorldId == 71150)" >
<ExploreArea boxTolerance="0.50" boxSize="10" until="ExitFound" exitNameHash="-1861222193" />
<UseTownPortal questId="1" />
<WaitTimer questId="1" waitTime="5000" />
<MoveTo questId="1" pathPrecision="10" x="2980.667" y="2834.59" z="24.90045" />
</If>
Code:
<If condition="ZetaDia.CurrentWorldId == (lvl2id) and (not ZetaDia.CurrentWorldId == 71150)" >
then do the static lvl2
</If>
If it would find lvl2 it would skip everything else because of the If condition and continue on lvl2.
Edit: Hope it made sense xP