From f8e6a9e1b2c125de32959a8e8439496fff5fdb51 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Fri, 21 Jan 2011 10:16:10 +0000 Subject: [PATCH] Fix the /way command so it works in instances --- TomTom.lua | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/TomTom.lua b/TomTom.lua index 2f47869..8a398c5 100755 --- a/TomTom.lua +++ b/TomTom.lua @@ -1197,10 +1197,15 @@ SlashCmdList["TOMTOM_WAY"] = function(msg) if desc then desc = table.concat(tokens, " ", 3) end + x = tonumber(x) + y = tonumber(y) - x = tonumber(x) - y = tonumber(y) - TomTom:AddWaypoint(x, y, desc) + local m, f = TomTom:GetCurrentPlayerPosition() + if m and x and y then + TomTom:AddMFWaypoint(m, f, x, y, { + title = desc + }) + end else return usage() end -- 1.7.9.5