From 2dddf667ae42de4abef413e851edd6304b666fe5 Mon Sep 17 00:00:00 2001 From: Jim Whitehead Date: Mon, 1 Dec 2014 18:53:40 +0100 Subject: [PATCH] Fix an issue with corpse waypoints --- TomTom_Corpse.lua | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/TomTom_Corpse.lua b/TomTom_Corpse.lua index 337629d..b811acf 100755 --- a/TomTom_Corpse.lua +++ b/TomTom_Corpse.lua @@ -52,41 +52,6 @@ local function GetCorpseLocation() x = cx y = cy end - - -- Scan the continent maps to see if we can find the player's corpse - local c - local oc,oz = GetCurrentMapContinent(), GetCurrentMapZone() - - for i=1,select("#", GetMapContinents()) do - SetMapZoom(i) - local cx, cy = GetCorpseMapPosition() - if cx ~= 0 and cy ~= 0 then - c = i - break - end - end - - -- If we found the corpse on a continent, find out which zone it is in - if c and c ~= -1 then - for i=1,select("#", GetMapZones(c)) do - SetMapZoom(c, i) - local cx,cy = GetCorpseMapPosition() - if cx > 0 and cy > 0 then - m = GetCurrentMapAreaID() - f = GetCurrentMapDungeonLevel() - x = cx - y = cy - break - end - end - end - - -- Restore the map to its previous zoom level - SetMapZoom(oc, oz) - - if m and f and x and y then - return m,f,x,y - end end local function SetCorpseArrow() -- 1.7.9.5