05-17-2019, 11:12 AM
(05-17-2019, 11:05 AM)sebbs Wrote: so it would be the auto grind telling you to go to that map.
can you copy and paste it here please
Sure, here it is:
Code:
local mapid = Player.localmapid
local level = Player.level
if ( mapid and level ) then
local inthanalan = In(mapid,140,141,145,146,147,140,141,130,131)
local inshroud = In(mapid,148,152,153,154,132,133)
local inlanoscea = In(mapid,129,128,134,135,137,138,139,180)
if (level < 12) then
if (inthanalan) then
return 140 --western than
elseif (inshroud) then
return 148 --central shroud
elseif (inlanoscea) then
return 134 --middle la noscea
else
return 148
end
elseif ( level >= 12 and level < 17) then
if (inthanalan) then
return 140 --western than
elseif (inshroud) then
return 152 --east shroud
elseif (inlanoscea) then
return 138 --western la noscea
else
return 152
end
elseif ((level >= 17 and level < 22) and CanAccessMap(152)) then
return 152 --east shroud
elseif ((level >= 22 and level < 30) and CanAccessMap(153)) then
return 153 --south shroud
elseif ((level >= 30 and level < 40) and CanAccessMap(137)) then
return 137 --eastern la noscea
elseif ((level >= 40 and level < 45) and CanAccessMap(155)) then
return 155 --coerthas
elseif ((level >= 45 and level < 48) and CanAccessMap(146)) then
return 146 -- southern thanalan
elseif ((level >= 48 and level < 50) or (level >= 50 and (not QuestCompleted(1583) or not CanAccessMap(397))) and CanAccessMap(147)) then
return 147 -- northern thanalan
elseif (level >= 67 and CanAccessMap(622)) then
return 622 --The Azim Steppes
elseif (level >= 60 and CanAccessMap(612)) then
return 612 --The Fringes
elseif (level >= 58 and level < 60 and CanAccessMap(478) and CanAccessMap(399)) then
return 399 --The Dravanian Hinterlands
elseif (level >= 60 and CanAccessMap(478) and CanAccessMap(399) and not CanAccessMap(612)) then
return 399 --The Dravanian Hinterlands
elseif (level >= 55 and level < 60 and CanAccessMap(398)) then
return 398 --The Dravanian Forelands
elseif (level >= 50 and level < 60 and CanAccessMap(397)) then
return 397 --Coerthas Western Highlands
else
return 138
end
end