Okay tried WoWPedia.org and i didn't get further than like the first basics before my "AddOn" didn't work properly.
Lua Code:
function MyAddon_Mimic(who, send)
local posX, posY = GetPlayerMapPosition(who)
if send==1 then
CHAT_MSG_WHISPER:AddMessage(who .. " is currently at location " .. posX .. "," .. posY)
end
end
function MyAddon_Call()
MyAddon_Mimic("player", 1)
MyAddon_Mimic("party1", 1)
MyAddon_Mimic("party2", 0)
end
Now, receiving a whisper, doesn't tell me his Location, why is that?