if ${Me.Level}==60&&${PortalTravel}<10
{
if ${WoWScript[GetCurrentMapContinent()].Equal[3]}
PortalTravel:Set[8]
if ${PortalTravel}>7
return 1
if !${Grind.LocationSetName.Find[OrgToDarkPortal]}
{
Grind.CurrentGrind:Set[OrgToDarkPortal]
}
;move to the org
if ${PortalTravel}==0
{
while !${Grind.HotSpotName.Find[OrgrimmarStart]}
{
Grind.CurrentGrind:JumpTo[1]
}
if ${Math.Distance[${Me.X},${Me.Y},${Me.Z},${Grind.CurrentGrind.X},${Grind.CurrentGrind.Y},${Grind.CurrentGrind.Z}]}<5
{
; ok near the zep
PortalTravel:Set[1]
}
}
;move to zep start
if ${PortalTravel}==1
{
while !${Grind.HotSpotName.Find[DurotarWait]}
{
Grind.CurrentGrind:JumpTo[1]
}
if ${Math.Distance[${Me.X},${Me.Y},${Me.Z},${Grind.CurrentGrind.X},${Grind.CurrentGrind.Y},${Grind.CurrentGrind.Z}]}<5
{
; ok near the zep
PortalTravel:Set[2]
}
}
if ${PortalTravel}==2
{
declare objlist guidlist
declare transport objectref
declare DCount int
declare Flag bool
Flag:Set[FALSE]
echo PortalTravel es 2
DCount:Set[1]
do
{
objlist:Search[-nearest, -mapobjtransport]
transport:Set[${objlist.Object[${DCount}].GUID}]
if ${transport.Name.Find[Grom]}
Flag:Set[TRUE]
}
while ${objlist.Object[${DCount:Inc}].GUID(exists)} && !${Flag}
echo Distance ${transport} ${Math.Distance[${Me.X},${Me.Y},${Me.Z},${transport.X},${transport.Y},${transport.Z}]}
if ${Math.Distance[${Me.X},${Me.Y},${Me.Z},${transport.X},${transport.Y},${transport.Z}]}<26
{
while !${Grind.HotSpotName.Find[durotarzeppelin]}
{
Grind.CurrentGrind:JumpTo[1]
}
PortalTravel:Set[3]
}
else
{
move -stop
echo "ES 1"
return 1
}
}
if ${PortalTravel}==3
{
while !${Grind.HotSpotName.Find[durotarzeppelin]}
{
Grind.CurrentGrind:JumpTo[1]
}
if ${Math.Distance[${Me.X},${Me.Y},${Me.Z},${Grind.CurrentGrind.X},${Grind.CurrentGrind.Y},${Grind.CurrentGrind.Z}]}<10
{
PortalTravel:Set[4]
Mapper:Load
}
}
if ${PortalTravel}==4
{
declare objlist guidlist
declare transport objectref
declare DCount int
declare Flag bool
Flag:Set[FALSE]
echo PortalTravel es 2
DCount:Set[1]
do
{
objlist:Search[-nearest, -mapobjtransport]
transport:Set[${objlist.Object[${DCount}].GUID}]
if ${transport.Name.Find[Grom]}
Flag:Set[TRUE]
}
while ${objlist.Object[${DCount:Inc}].GUID(exists)} && !${Flag}
;Grom'Gol Base Camp - Orgrimmar -12464.008789 231.564743
echo Distance ${transport} ${Math.Distance[${transport.X},${transport.Y},-12464.008789,231.564743]}
;if ${Math.Distance[${Me.X},${Me.Y},${Me.Z},${Grind.CurrentGrind.X},${Grind.CurrentGrind.Y},${Grind.CurrentGrind.Z}]}>25
if ${Math.Distance[${transport.X},${transport.Y},-12464.008789,231.564743]}>1
{
move -stop
return 1
}
PortalTravel:Set[5]
;chill out until the zeplin stops
}
if ${PortalTravel}==5
{
while !${Grind.HotSpotName.Find[GromGolExit]}
{
Grind.CurrentGrind:JumpTo[1]
}
if ${Math.Distance[${Me.X},${Me.Y},${Me.Z},${Grind.CurrentGrind.X},${Grind.CurrentGrind.Y},${Grind.CurrentGrind.Z}]}<5
PortalTravel:Set[6]
}
if ${PortalTravel}==6
{
while !${Grind.HotSpotName.Find[DarkPortalBlasted]}
{
Grind.CurrentGrind:JumpTo[1]
if ${Math.Distance[${Me.X},${Me.Y},${Me.Z},${Grind.CurrentGrind.X},${Grind.CurrentGrind.Y},${Grind.CurrentGrind.Z}]}<20
PortalTravel:Set[7] }
Mapper:Load
}
if ${PortalTravel}==7
{
while !${Grind.HotSpotName.Find[TheDarkPortal]}
{
Grind.CurrentGrind:JumpTo[1]
if ${Math.Distance[${Me.X},${Me.Y},${Me.Z},${Grind.CurrentGrind.X},${Grind.CurrentGrind.Y},${Grind.CurrentGrind.Z}]}<20
PortalTravel:Set[8] }
Mapper:Load
}
if ${PortalTravel}==8
{
while !${Grind.HotSpotName.Find[ArrivalOutlands]}
{
Grind.CurrentGrind:JumpTo[9]
if ${Math.Distance[${Me.X},${Me.Y},${Me.Z},${Grind.CurrentGrind.X},${Grind.CurrentGrind.Y},${Grind.CurrentGrind.Z}]}<20
PortalTravel:Set[9] }
Mapper:Load
}
if ${PortalTravel}==9
{
while !${Grind.HotSpotName.Find[ArrivalStairs]}
{
Grind.CurrentGrind:JumpTo[10]
if ${Math.Distance[${Me.X},${Me.Y},${Me.Z},${Grind.CurrentGrind.X},${Grind.CurrentGrind.Y},${Grind.CurrentGrind.Z}]}<20
PortalTravel:Set[10] }
Mapper:Load
}
if ${PortalTravel}==10
{
while !${Grind.HotSpotName.Find[Thrallmar]}
{
Grind.CurrentGrind:JumpTo[1]
if ${Math.Distance[${Me.X},${Me.Y},${Me.Z},${Grind.CurrentGrind.X},${Grind.CurrentGrind.Y},${Grind.CurrentGrind.Z}]}<20
PortalTravel:Set[1] }
Mapper:Load
}
}