Thread Tools Display Modes
04-23-07, 10:43 PM   #1
Debz
A Warpwood Thunder Caller
Join Date: Dec 2006
Posts: 97
Report to custom chat frame

I have downloaded an addon (bottomlessbag). This addon reports my coin loot to the default chat window.

I would like it to report to my custom loot window.

function BottomlessBag_PrintCoinLoot(CoinLootname)
.....
DEFAULT_CHAT_FRAME:AddMessage("You loot "..CoinLootname, 1, 1, 0)
I assume I need to edit this part of the lua... but what do I put in place of default chat frame?

Thanks in advance for your help
  Reply With Quote
04-24-07, 03:11 PM   #2
Riraito
An Aku'mai Servant
 
Riraito's Avatar
Join Date: Dec 2006
Posts: 32
I believe its ChatFrame1:AddMessage ( this is 'usually' what DEFAULT_CHAT_FRAME goes to) you can also use ChatFrame2, ChatFrame3 etc. depending on what your loot window is
__________________
  Reply With Quote
04-24-07, 05:24 PM   #3
Debz
A Warpwood Thunder Caller
Join Date: Dec 2006
Posts: 97
So i just delete DEFAULT_CHAT_FRAME and put in Chatframe3?
  Reply With Quote
04-24-07, 06:05 PM   #4
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Capitalize the F (ChatFrame3), but yes, I think it might work that way. The default chat frame is the first one, the one on top.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
04-24-07, 07:22 PM   #5
Debz
A Warpwood Thunder Caller
Join Date: Dec 2006
Posts: 97
That worked, thanks for your help
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Report to custom chat frame


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