Function no longer exists - Printable Version +- MMOMinion (https://www.mmominion.com) +-- Forum: FFXIVMinion (https://www.mmominion.com/forumdisplay.php?fid=87) +--- Forum: [DOWNLOADS] Addons, Lua Modules, Navigation Meshes.. (https://www.mmominion.com/forumdisplay.php?fid=90) +---- Forum: I Need Help with LUA coding! (https://www.mmominion.com/forumdisplay.php?fid=104) +---- Thread: Function no longer exists (/showthread.php?tid=13004) |
Function no longer exists - tadeus - 07-23-2015 Hey guys, I have a couple of lua mods that use GetClosestAetheryteToMapIDPos, but now I get errors in the mod when tryiing to call it. failed with [string "C:\MinionApp\Bots\FFXIVMinion\LuaMods\/LedgendaryFishing/LedgendaryFishing.lua"]:659. attempt to call global 'GetClosestAetheryteToMapIDPos' (a nil value) Is there an equivalent function I can use that does the same thing? Regards RE: Function no longer exists - Ace - 07-23-2015 GetAetheryteByMapID RE: Function no longer exists - tadeus - 07-23-2015 (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) 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. RE: Function no longer exists - Durone - 07-23-2015 Does perhaps "GetAetheryteByID" work? Have the same issue with TaskManager currently. RE: Function no longer exists - Ace - 07-23-2015 It's actually used as: Code: local mapid,aethid = GetAetheryteByMapID(LedgendaryFishing.Locations[targetLocation].mapId,LedgendaryFishing.Locations[targetLocation].pos) RE: Function no longer exists - Durone - 07-23-2015 So I assume for TaskManager it would be like this: Was: Code: local tele = GetClosestAetheryteToMapIDPos(location.map,location) should be: Code: local mapid,aethid = GetAetheryteByMapID(location.map,location) RE: Function no longer exists - Ace - 07-23-2015 I edited your post, so now it is correct, yes. :) RE: Function no longer exists - Durone - 07-23-2015 Uuups, Thanks a lot! RE: Function no longer exists - jetlith - 07-30-2015 FYI this line doesn't work: dbg("teleporting player to aetherite ".. aethid ..", mesh: ("..location.mesh..")") getting an error about location is nil works fine with just: local mapid,aethid = GetAetheryteByMapID(LedgendaryFishing.Locations[targetLocation].mapId,LedgendaryFishing.Locations[targetLocation].pos) Player:Teleport(aethid) I assume the dbg line is supposed to write that text to the console. |