View Full Version : How does the map know where I am?
Serenity
03-24-2005, 03:55 PM
I mean if the evil mages have removed GetCurrentPosition() - who can the mini map figure out where I am? Perhaps that function can be used to calculate a general position for the placement of mobs on the maps etc.
(I hope you don't remove the old maps though)
The mini-map is like a completely enclosed unit which cannot be accessed via scripting.
I can still calculate a rough position of where you are on the current zone map. This is how the other websites also work.. by finding out that you are 100% east, 50% south on the Durotar map, etc.
Serenity
03-24-2005, 04:47 PM
Ah.. i wonder if that means MapNotes won't work anymore either :(
Serenity
03-24-2005, 06:32 PM
Some say this works:
script x, y = GetPlayerMapPosition("PLAYER");
/script x = floor(x*100)
/script y = floor(y*100)
/script DEFAULT_CHAT_FRAME:AddMessage("Coords (X,Y):"..x..","..y);
?
Yeah, that's the rough position.
The exact position has X,Y and Z access numbers, and looks nothing like a number between 1-100. =)
Serenity
03-25-2005, 12:38 PM
Okedoke, thanks for your patience :)
vBulletin v3.6.1, Copyright ©2000-2010, Jelsoft Enterprises Ltd.