(07-23-2015, 05:43 PM)Ace Wrote: GetAetheryteByMapID
Thank you!!!
Well, that fixed one problem.
Now teleport doesn't do anything :(
Code:
local tele = GetAetheryteByMapID(LedgendaryFishing.Locations[targetLocation].mapId,LedgendaryFishing.Locations[targetLocation].pos)
dfish("New Teleport: "..tostring(tele))
Player:Stop()
Player:Teleport(tele)
When it executes that last line, nothing happens. No teleport, no error messages.
Ok, I figured out what's going on.
The new function isn't returning the ID of the Aetheryte, it's returning the same MapID that's supplied in the parameter list.
For Swiftperch it should have returned 13, but returned 138 which is the MapID for Western La Noscea.