Mercurial > wow > wowdb-profiler
comparison Main.lua @ 104:1bb078930f23
Call SetMapToCurrentZone() before attempting to get player coordinates.
author | James D. Callahan III <jcallahan@curse.com> |
---|---|
date | Tue, 04 Sep 2012 11:54:47 -0500 |
parents | a40bcfcef0f4 |
children | f9c81739cfe6 |
comparison
equal
deleted
inserted
replaced
103:a40bcfcef0f4 | 104:1bb078930f23 |
---|---|
196 return npc | 196 return npc |
197 end | 197 end |
198 | 198 |
199 | 199 |
200 local function CurrentLocationData() | 200 local function CurrentLocationData() |
201 _G.SetMapToCurrentZone() | |
202 | |
201 local map_level = _G.GetCurrentMapDungeonLevel() or 0 | 203 local map_level = _G.GetCurrentMapDungeonLevel() or 0 |
202 local x, y = _G.GetPlayerMapPosition("player") | 204 local x, y = _G.GetPlayerMapPosition("player") |
203 | 205 |
204 x = x or 0 | 206 x = x or 0 |
205 y = y or 0 | 207 y = y or 0 |