Thread Tools Display Modes
12-29-11, 06:48 AM   #1
Verttex
Super Monkey
 
Verttex's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 297
Addon Detection Via Chat

Can an addon detect a player whispering you something and respond with a string that changes from what the player said?
Ex:
A->B: Heya!
B->A: [AfkMessage] B is away at the moment. Message? (Use {M} in Message to go to Mail.)
A->B: {M}Hey B, I need some netherweave, you got some?
B->A: Message Set.

Then when B gets back, a notification occurs showing the message.

This could also be useful for shops:

A->B: WTS Savage Leather, Heavy And Pristine Hide.
B->A: Ill buy some!
A->B: [AutoShop] Commands: Use {L} to list items with prices. {L1,2,3} For Pages. Use {B} [Item] [Q(in stacks)] to notify the seller that you want to buy something.
B->A: {L}
A->B: Savage Leather: 6g/item, Heavy Savage Leather: 10g/item, Pristine Hide: 300g/item.
B->A: {B} Heavy Savage Leather 5
A->B: Notified A, one moment please.

Window pops up.
Profit.

Any ideas?
__________________
  Reply With Quote
12-29-11, 12:14 PM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,324
It'll be complex and it'll take more time than I have at the moment to code, but it can be done.
It would be interesting to morph this idea into a merchant UI for players with inventory management.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 12-29-11 at 12:17 PM.
  Reply With Quote
12-29-11, 12:58 PM   #3
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 793
Doesn't sound too hard, but the GUI elements is what will take time to add really, the coding and logic isn't that complicated.
  Reply With Quote
12-29-11, 04:39 PM   #4
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,324
The GUI I had for my idea would morph the existing MerchantFrame to build a player shop where you would view what a player has for sale, when you select you want an item the player has for sale, it puts in an order on the merchant side, adjusts the stock available, and when the seller gets to it, they can view all the orders and conduct business accordingly.

I'll have to see what I can do about the actual transfer of goods, but many of the trade API functions require hardware events. I'll have to look more into this.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote
12-30-11, 12:52 PM   #5
Verttex
Super Monkey
 
Verttex's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 297
Mostly entering information for the addon to see,like prices and stuff, would be hard to do.
__________________
  Reply With Quote
12-30-11, 04:35 PM   #6
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,324
The idea isn't very complicated. The seller sets the prices and how many of each item they wants to sell. The buyer comes along with the same addon and when triggered, it would send a whisper through the addon channel when they want to view the seller's wares. An interesting thing I want to try to do is watch PLAYER_TARGET_CHANGED to see if it still fires with an argument to hook right-click targeting of players for the addon.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 12-30-11 at 04:38 PM.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Addon Detection Via Chat


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