View Single Post
03-20-13, 01:28 PM   #22
fRodzet
A Flamescale Wyrmkin
Join Date: Mar 2013
Posts: 114
Okay tried WoWPedia.org and i didn't get further than like the first basics before my "AddOn" didn't work properly.

Lua Code:
  1. function MyAddon_Mimic(who, send)
  2.    local posX, posY = GetPlayerMapPosition(who)
  3.    if send==1 then
  4.       CHAT_MSG_WHISPER:AddMessage(who .. " is currently at location " .. posX .. "," .. posY)
  5.    end
  6. end
  7.  
  8.  function MyAddon_Call()
  9.    MyAddon_Mimic("player", 1)
  10.    MyAddon_Mimic("party1", 1)
  11.    MyAddon_Mimic("party2", 0)
  12. end

Now, receiving a whisper, doesn't tell me his Location, why is that?
  Reply With Quote