Thread Rating:
  • 9 Vote(s) - 3.11 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GetAetheryteByMapID returns nil aetheryte ID
#1
I tried to use TaskManager today, it wouldn't teleport. I saw errors in console stating aethid is a nil value.

I changed the file to get some info.

If the map ID is 154 (North Shroud), the aetheryte id should have returned 7, but was nil.

Is the function broken or has it been changed again?

Code:
dbg("Teleport Mesh: "..location.mesh)
    dbg("Teleport Map ID: ".. location.map)

    local mapid,aethid = GetAetheryteByMapID(location.map,location)
    
    if (aethid ~= nil) then
      dbg("Teleport Aethyrite ID: ".. aethid)
      Player:Teleport(aethid)
      local newTask = ffxiv_task_teleport.Create()
      dbg("Changing to new location for task number "..tostring(TaskManager.taskIndex))
      newTask.mapID = location.map
      newTask.mesh =  location.mesh
      ml_task_hub:Add(newTask, IMMEDIATE_GOAL, TP_IMMEDIATE)
      return true
    else
      dbg("Teleport Aethyrite ID is nil")
      return false
    end
Reply
 


Messages In This Thread
GetAetheryteByMapID returns nil aetheryte ID - by tadeus - 11-14-2015, 10:18 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)

We help you win the game.

FFXIV Bot and More.

 

Products