Go Back   CurseForge Forums > Warhammer Online > Development Help
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Development Help Need help from other developers, come here to talk about it!

Reply
 
Thread Tools
Old 07-19-2009   #1
Donar23
Newbie
 
Join Date: Jul 2009
Posts: 1
Default Get Coordinates of current position

Hi @ all,

I have a little Problem (i think its little ). I just want read the coordinates of the position where i am at the moment.
I have looked in the war wiki a long time and the only Function I found were "MapGetCoordinatesForPoint()", but this function isn't documented. The "Debug Log" says me, that I need three parameters, but what?

I hope anyone can tell me, how ich get the ccordinates.

so far
Donar23

PS: sorry for bad english
Donar23 is offline   Reply With Quote
Old 07-30-2009   #2
Iphitos
Newbie
 
Join Date: Feb 2009
Posts: 2
Default Re: Get Coordinates of current position

You could use LibSurveyor for this...

Something like this will then work:
Quote:
function YourAddon.OnLoad()
RegisterEventHandler(SystemData.Events.PLAYER_POSI TION_UPDATED, "YourAddon.OnPlayer_Position_Updated")
end

function YourAddon.OnPlayer_Position_Updated()
local x = LibSurveyor.PlayerLocation.zoneX
local y = LibSurveyor.PlayerLocation.zoneY
local z = GetZoneName(GameData.Player.zone)
d("Current position: " .. z .. " at " .. x .. ", " .. y)
end
Iphitos is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 10:46 PM.