Thread Tools Display Modes
06-10-06, 12:59 AM   #1
EmGooser
A Murloc Raider
Join Date: Jun 2006
Posts: 4
Who is trading with me?

I have having an issue finding a function or event that will tell me WHO is trading with me if they open the trade up. Wow wiki tells me that TRADE_REQUEST no longer works (and I have tryed it too). Does anyone know of a way to tell who is trading with the player? The onyl way I can think of doing it without a function or event would be to read the text in the trade window somehow, but I dont know the frame's name nor the object that would be under.

Thanks in andvance for anyone that can help.

Em
  Reply With Quote
06-11-06, 01:07 PM   #2
ZeroKnowledge
A Defias Bandit
Join Date: Feb 2006
Posts: 3
You can use the "TRADE_SHOW"-Event. The name of the player who is trading with you is UnitName("NPC").

Code:
function WhoIsTrading_OnLoad()
  this->RegisterEvent("TRADE_SHOW");
end

function WhoIsTrading_OnEvent()
  if(event == "TRADE_SHOW") then
    DEFAULT_CHAT_FRAME:AddMessage("Trader: " .. UnitName("NPC"));
  end
end

Last edited by ZeroKnowledge : 06-16-06 at 06:24 AM.
  Reply With Quote
06-12-06, 04:57 PM   #3
EmGooser
A Murloc Raider
Join Date: Jun 2006
Posts: 4
thanks. I will give it a shot tonight
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Who is trading with me?

Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off