Download
(31Kb)
Download
Updated: 04-26-09 11:37 PM
Pictures
File Info
Updated:04-26-09 11:37 PM
Created:12-20-08 01:21 PM
Downloads:2,588
Favorites:11
MD5:

Trade Secretary: Ad Repeater

Version: 30100-0.1.03
by: Mike-N-Go [More]

Trade Secretary: Ad Repeater
Sends your defined ads to the trade channel to advertise your exotic goods, or items you wish to buy.

As of May 20, 2009: This addon is unsupported for the time being. AddOn authoring was only a hobby of mine. Mike-N-Go is not currently playing WoW, thus not creating or maintaining mods for WoW. If someone wishes to submit a patch for one of my mods to WoWInterface, you may within the bounds of the license bundled with the mod.




Recent Changes and Important Information:
Version 30400-0.1.03 and might not be fully compatible with WoW 3.1. Please use my other mod, SayAgain, as an alternative if you have any problems with Ad Repeater.
Version: 30100-0.1.03
Last update: 04-26-09
This mod is only recently developed. The code is the author's main focus and development; the documentation might be slightly incorrect or misleading for this version; the first version. The next version is planed to focus on
Requesting user feedback, and suggestions; do check if your suggestion is under "Future expansion, additions, planed features, etc " before you type it out, because it might already be in the works, unless you wish to expand on something listed there.
If you find a bug, please make sure it is not listed under "Caveats, Known Bugs, etc." before submitting a report
If anyone has any suggestions on how to make the code or documentation better, please contact me, email preferred.
Additional and more extensive instructions are provided in the documentation ors the included ReadMe.
Updates: Point your browser to http://www.wowinterface.com under "Trade Secretary: Ad Repeater"
Recommended: Swatter! to catch and fix errors
Note: Due to the setup and intuition required to make this mod work, read all the included documentation before using this mod or asking for help. Also, you need to declare the advertisements; IT CANNOT ADVERTISE WITHOUT BEING TOLD WHAT TO SAY!
Donate with PayPal at [email protected]

Brief Description:
Ever get board of pressing your spam-to-trade macros? Desire to go beyond space-hogging macros to spam more eloquent, unique, and non-repetitive? Look no further! Trade Secretary: Ad Repeater is a mod that allows you to define a rotation of your advertisements, and autonomously send them to the trade channel or a button press. Trade Secretary: Ad Repeater can announce your ads to trade chat as frequently or infrequently as you desire. Basically, this AddOn is an attempt to fix the trade channel into a more interesting, useful message board that has unique, interesting advertisements.


About the Name:
Why is this called "Trade Secretary: Ad Repeater," you ask? Well, this version of "Trade Secretary" is made to repeat ads to the trade channel, and would be the second installment of a future suite that gives one a secretary for their trading, and other secretary-like activities whenever I happen to make them.

Feedback requested, but not limited to:
• Timing of ads
• Ease of use
• Any questions about string or table construction
• Any problems loading with AddOn Loader installed?
• What do you think of the rate that ads are sent to the channel? A minimum delayed is set as to not annoy trade of your constant messages

Installation:
After you decompress the file, copy the TradeSecretaryAd folder into your Interface/AddOns folder under your World of Warcraft Installation Directory.

Upgrading:
When updating TradeSecretaryAd, please make sure to have a copy of MyAds.lua saved! You will need to drag your old MyAds.lua, and only MyAds.lua, to the new folder unless otherwise stated; a future version is planed to allow you to enter your ads through the saved variables. Make sure to check on the update for any other update instructions.

Miscellaneous information:
Most of the code for the trade and craft skill scanning and storing hyperlinks was copied from CraftyGnome by Rabbit. As this is in the early stages, please submit feedback other then what is outlined bellow. TradeSecretaryAd takes use of AddonLoader, found at http://www.wowace.com/wiki/AddonLoader, if it is present. AddonLoader does not load addons until conditions beckon them loaded, generally yielding an increase of performance, faster initial load times, and less resources used until needed; I recommend you try AddonLoader.

In Settings.lua, you can set AdModMinimum in seconds, I highly recommend not setting it lower then 30 seconds as Blizzard vaguely defines spam as messages sent more frequently then 30 seconds. In fact, you might want to set it to minutes; at least 5 minutes, if not more. Spamming nonsense is not the intent of this mod. It might seem to you that sending ads rapidly, like every 30 seconds to a minute, would help, but this is not the case; welcome to ignore if you do not understand this concept.

A note to my fellow authors:
If anyone wishes to use more then a few lines of my code, I request you credit me by saying, "This product includes software developed by MikeNGo and Rabbit" somewhere as a comment, or in your documentation. I also hope that anyone who would take the time to read my code, would take the time to send me an e-mail of what you think, or what can otherwise be improved.

About the Version Numbers:
Version: xxxxx-x.x.xx ([interface number]-[major version].[sub version].[current release])
Interface number: Version of the interface the addon was most recently updated for, this number and the version number have no linear relationship with the latter clauses.
Major version: When the mod evolves to a state that is vastly different from the first distribution of the prior major version, this will be updated.
Sub version: Whenever the mod has new features added, this number might advance.
Current release: The current reversion of the sub version, changed every time a new version of the mod is submitted to WoWInterface.com

About the Author:
Macintosh operator
[email protected]
If you would like to talk to me, I hang out at irc.freenode.net. In #norganna and #wowi-lounge, User Mike-N-Go.

Version: 30100-0.1.03
Date: 04-26-09
• Fixed a problem introduced with 3.1 in ChatFrame_AddMessageEventFilter(), version 30400-01.02 and before are incompatible with WoW 3.1
Optional Files (0)


Post A Reply Comment Options
Unread 06-01-09, 09:53 PM  
Mike-N-Go
A Theradrim Guardian
 
Mike-N-Go's Avatar
AddOn Author - Click to view AddOns

Forum posts: 68
File comments: 147
Uploads: 18
Originally posted by Contiki
Greetings,

out of curiosity for any new versions I checked this page only to see that you'd stopped developing it. I decided to try fixing Trade Secretary: Ad Repeater and soon realized that the add-on actually worked. Don't ask me what was wrong when patch 3.1 went live - I can't tell. Important thing is, the add-on works. At least until a patch breaks it, you can safely tag it as being compatible with 3.1.

All the best
Very well, I'll tag it compatible with 3.1, yet I have not checked it myself.
__________________
Currently contemplating coming back to Authorship.. been away for years. Please let me know you care, by commenting on what addon(s) of mine you want to see updated.

Author of Daily Bean Counter, MyNameTogglesWhenIAFKorDND, Extended Shutdown Warning, Auto Mail Director, Duel Nullify, Spec Transmiter, Say Again, Window Teller, Who Crafts, Ad Repeater, Privy Cork, Mac Backup, and more.
Report comment to moderator  
Reply With Quote
Unread 05-30-09, 09:38 AM  
Contiki
A Kobold Labourer
 
Contiki's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 72
Uploads: 2
Greetings,

out of curiosity for any new versions I checked this page only to see that you'd stopped developing it. I decided to try fixing Trade Secretary: Ad Repeater and soon realized that the add-on actually worked. Don't ask me what was wrong when patch 3.1 went live - I can't tell. Important thing is, the add-on works. At least until a patch breaks it, you can safely tag it as being compatible with 3.1.

All the best
Report comment to moderator  
Reply With Quote
Unread 04-27-09, 06:12 PM  
Mike-N-Go
A Theradrim Guardian
 
Mike-N-Go's Avatar
AddOn Author - Click to view AddOns

Forum posts: 68
File comments: 147
Uploads: 18
Originally posted by Contiki
Greetings,

I've tested the latest version and something's not quite right. Whispering someone a tradeskill link doesn't provoke the error it used to provoke with the previous version, so that's excellent. However, apparently the add-on doesn't send any ads whatsoever.

I started off with the regular MyAds.lua file. Well, with updated tradeskill links (patch 3.1 has changed the character IDs) but otherwise identical to the pre-patch file. Manually sending out an ad with the appropriate key didn't do anything. Enabling automatic ads didn't do anything either. So I figured there'd be an incompatibility with another add-on. I've disabled all but Trade Secretary: Ad Repeater and I've gradually shortened MyAds.lua until there was nothing left but a "1" - No links at all. I've also set the debug print level to 1 for the add-on to show everything that's going on. Still nothing. It didn't send the "1" and it didn't print any debug output.

Apparently the add-on doesn't send out error messages anymore, but it doesn't send out ads either. Yet. Am I doing it wrong? Could you look into the issue?

Greetings,

Contiki
In recent times, I have not been playing WoW for no more then 3 hours a week. And, I have not needed to advertise via the trade channel recently. So, this mod has been on the back-burner for quite some time. The mod was being designed before you could link a whole profession to the trade channel; the staple function of this mod was to send item links.

I am yet to test Ad Repeater compatibility with 3.1, all I have done is fix the error that hid whispers.

It may be some time until I will diagnose and fix Ad Repeater.

In the mean time, I recommend you use SayAgain, another mod that I have made, it is like Ad Repeater, but for any channel without automaticity.
__________________
Currently contemplating coming back to Authorship.. been away for years. Please let me know you care, by commenting on what addon(s) of mine you want to see updated.

Author of Daily Bean Counter, MyNameTogglesWhenIAFKorDND, Extended Shutdown Warning, Auto Mail Director, Duel Nullify, Spec Transmiter, Say Again, Window Teller, Who Crafts, Ad Repeater, Privy Cork, Mac Backup, and more.
Report comment to moderator  
Reply With Quote
Unread 04-27-09, 04:53 PM  
Contiki
A Kobold Labourer
 
Contiki's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 72
Uploads: 2
Greetings,

I've tested the latest version and something's not quite right. Whispering someone a tradeskill link doesn't provoke the error it used to provoke with the previous version, so that's excellent. However, apparently the add-on doesn't send any ads whatsoever.

I started off with the regular MyAds.lua file. Well, with updated tradeskill links (patch 3.1 has changed the character IDs) but otherwise identical to the pre-patch file. Manually sending out an ad with the appropriate key didn't do anything. Enabling automatic ads didn't do anything either. So I figured there'd be an incompatibility with another add-on. I've disabled all but Trade Secretary: Ad Repeater and I've gradually shortened MyAds.lua until there was nothing left but a "1" - No links at all. I've also set the debug print level to 1 for the add-on to show everything that's going on. Still nothing. It didn't send the "1" and it didn't print any debug output.

Apparently the add-on doesn't send out error messages anymore, but it doesn't send out ads either. Yet. Am I doing it wrong? Could you look into the issue?

Greetings,

Contiki
Report comment to moderator  
Reply With Quote
Unread 04-26-09, 09:23 PM  
Contiki
A Kobold Labourer
 
Contiki's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 72
Uploads: 2
Thanks for the heads-up, I'm looking forward to the new version! ;-)
Report comment to moderator  
Reply With Quote
Unread 04-26-09, 05:03 PM  
Mike-N-Go
A Theradrim Guardian
 
Mike-N-Go's Avatar
AddOn Author - Click to view AddOns

Forum posts: 68
File comments: 147
Uploads: 18
Originally posted by Contiki
Greetings,

up until patch 3.1 Trade Secretary: Ad Repeater worked flawlessly and I've come to like it. Since the patch the add-on has apparently become incompatible with the game itself. When I whisper someone the whisper seems to go through but my chat frame doesn't show it. Instead, this is the error it throws:

Code:
Date: 2009-04-24 02:13:35
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\TradeSecretaryAd\ItemSearch.lua line 420:
   attempt to call method 'find' (a nil value)
Debug:
   [C]: find()
   TradeSecretaryAd\ItemSearch.lua:420: filterFunc()
   ..\FrameXML\ChatFrame.lua:2352: ChatFrame_MessageEventHandler()
   ..\FrameXML\ChatFrame.lua:2195: ChatFrame_OnEvent()
   [string "*:OnEvent"]:1:
      [string "*:OnEvent"]:1
AddOns:
  Swatter, v5.4.4157 (WallabyII)
  TradeSecretaryAd, v30400-0.1.02
  (ck=43)

When I let WoW Instant Messenger (WIM) handle my whispers, it doesn't change. An error still pops up, only this time it's

Code:
Date: 2009-04-24 02:07:24
ID: 2
Error occured in: Global
Count: 1
Message: ..\AddOns\TradeSecretaryAd\ItemSearch.lua line 425:
   attempt to call method 'find' (a nil value)
Debug:
   [C]: find()
   TradeSecretaryAd\ItemSearch.lua:425: filterFunc()
   WIM\WIM.lua:293: honorChatFrameEventFilter()
   WIM\Modules\WhisperEngine.lua:305: handler()
   ...s\WIM\Libs\LibChatHandler-1.0\LibChatHandler-1.0.lua:252:
      ...s\WIM\Libs\LibChatHandler-1.0\LibChatHandler-1.0.lua:238
   ...s\WIM\Libs\LibChatHandler-1.0\LibChatHandler-1.0.lua:291:
      ...s\WIM\Libs\LibChatHandler-1.0\LibChatHandler-1.0.lua:279
AddOns:
  Swatter, v5.4.4157 (WallabyII)
  TradeSecretaryAd, v30400-0.1.02
  WIM, v3.1.1
  (ck=51)
It appears to be an issue with Trade Secretary: Ad Repeater. If it is, could you fix it? Pretty please? ;-)

Greetings and all the best,

Contiki
I have not been playing WoW too much recently, but I believe the problem, if it is what I think it is (with 'local cmd = select(3, msg:find("^!(%S+)"))'), would take the lesser part of an hour. Look for an update in a few days.

Edit1: The problem is ChatFrame_AddMessageEventFilter. It was changed in 3.1, so I will have to update the mod to the new format.
__________________
Currently contemplating coming back to Authorship.. been away for years. Please let me know you care, by commenting on what addon(s) of mine you want to see updated.

Author of Daily Bean Counter, MyNameTogglesWhenIAFKorDND, Extended Shutdown Warning, Auto Mail Director, Duel Nullify, Spec Transmiter, Say Again, Window Teller, Who Crafts, Ad Repeater, Privy Cork, Mac Backup, and more.
Last edited by Mike-N-Go : 04-26-09 at 05:31 PM.
Report comment to moderator  
Reply With Quote
Unread 04-23-09, 06:17 PM  
Contiki
A Kobold Labourer
 
Contiki's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 72
Uploads: 2
Greetings,

up until patch 3.1 Trade Secretary: Ad Repeater worked flawlessly and I've come to like it. Since the patch the add-on has apparently become incompatible with the game itself. When I whisper someone the whisper seems to go through but my chat frame doesn't show it. Instead, this is the error it throws:

Code:
Date: 2009-04-24 02:13:35
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\TradeSecretaryAd\ItemSearch.lua line 420:
   attempt to call method 'find' (a nil value)
Debug:
   [C]: find()
   TradeSecretaryAd\ItemSearch.lua:420: filterFunc()
   ..\FrameXML\ChatFrame.lua:2352: ChatFrame_MessageEventHandler()
   ..\FrameXML\ChatFrame.lua:2195: ChatFrame_OnEvent()
   [string "*:OnEvent"]:1:
      [string "*:OnEvent"]:1
AddOns:
  Swatter, v5.4.4157 (WallabyII)
  TradeSecretaryAd, v30400-0.1.02
  (ck=43)

When I let WoW Instant Messenger (WIM) handle my whispers, it doesn't change. An error still pops up, only this time it's

Code:
Date: 2009-04-24 02:07:24
ID: 2
Error occured in: Global
Count: 1
Message: ..\AddOns\TradeSecretaryAd\ItemSearch.lua line 425:
   attempt to call method 'find' (a nil value)
Debug:
   [C]: find()
   TradeSecretaryAd\ItemSearch.lua:425: filterFunc()
   WIM\WIM.lua:293: honorChatFrameEventFilter()
   WIM\Modules\WhisperEngine.lua:305: handler()
   ...s\WIM\Libs\LibChatHandler-1.0\LibChatHandler-1.0.lua:252:
      ...s\WIM\Libs\LibChatHandler-1.0\LibChatHandler-1.0.lua:238
   ...s\WIM\Libs\LibChatHandler-1.0\LibChatHandler-1.0.lua:291:
      ...s\WIM\Libs\LibChatHandler-1.0\LibChatHandler-1.0.lua:279
AddOns:
  Swatter, v5.4.4157 (WallabyII)
  TradeSecretaryAd, v30400-0.1.02
  WIM, v3.1.1
  (ck=51)
It appears to be an issue with Trade Secretary: Ad Repeater. If it is, could you fix it? Pretty please? ;-)

Greetings and all the best,

Contiki
Last edited by Contiki : 04-23-09 at 06:17 PM.
Report comment to moderator  
Reply With Quote
Unread 02-01-09, 09:02 PM  
Mike-N-Go
A Theradrim Guardian
 
Mike-N-Go's Avatar
AddOn Author - Click to view AddOns

Forum posts: 68
File comments: 147
Uploads: 18
Originally posted by ThunderNimbus
It might be useful to have an option to put the output to a custom channel for testing your Ads. For people not quite as comfortable with programming and lua, this would give us the option to cycle through all of our ads quickly and make sure they display properly.

Even a static test channel like "TradeSecretaryTest".
One thing I have had on the todo for this mod was for it to print to the chat frame for debug. However, I have not had much use for advertising in the trade channel of late, so I have not worked on this addon recently.

Thanks for your suggestion.
__________________
Currently contemplating coming back to Authorship.. been away for years. Please let me know you care, by commenting on what addon(s) of mine you want to see updated.

Author of Daily Bean Counter, MyNameTogglesWhenIAFKorDND, Extended Shutdown Warning, Auto Mail Director, Duel Nullify, Spec Transmiter, Say Again, Window Teller, Who Crafts, Ad Repeater, Privy Cork, Mac Backup, and more.
Report comment to moderator  
Reply With Quote
Unread 02-01-09, 05:57 PM  
ThunderNimbus
A Defias Bandit

Forum posts: 2
File comments: 6
Uploads: 0
It might be useful to have an option to put the output to a custom channel for testing your Ads. For people not quite as comfortable with programming and lua, this would give us the option to cycle through all of our ads quickly and make sure they display properly.

Even a static test channel like "TradeSecretaryTest".
Report comment to moderator  
Reply With Quote
Unread 01-13-09, 02:37 PM  
Dainton
A Flamescale Wyrmkin
 
Dainton's Avatar
AddOn Author - Click to view AddOns

Forum posts: 115
File comments: 64
Uploads: 1
Originally posted by Mike-N-Go
Try GetRealZoneText(), lets see if that would work? Also, you might want to check out SayAgain, another of my mods. It might fit you better, as you use so few ads. Let me know how it goes.
It doesn't print anything in Dalaran.
Report comment to moderator  
Reply With Quote
Unread 01-12-09, 06:59 AM  
Mike-N-Go
A Theradrim Guardian
 
Mike-N-Go's Avatar
AddOn Author - Click to view AddOns

Forum posts: 68
File comments: 147
Uploads: 18
Originally posted by Dainton
Code:
"Opening ALL lockboxes in "..(GetZoneText()).."! Tips appreciated."
Try GetRealZoneText(), lets see if that would work? Also, you might want to check out SayAgain, another of my mods. It might fit you better, as you use so few ads. Let me know how it goes.
__________________
Currently contemplating coming back to Authorship.. been away for years. Please let me know you care, by commenting on what addon(s) of mine you want to see updated.

Author of Daily Bean Counter, MyNameTogglesWhenIAFKorDND, Extended Shutdown Warning, Auto Mail Director, Duel Nullify, Spec Transmiter, Say Again, Window Teller, Who Crafts, Ad Repeater, Privy Cork, Mac Backup, and more.
Report comment to moderator  
Reply With Quote
Unread 01-12-09, 02:50 AM  
Dainton
A Flamescale Wyrmkin
 
Dainton's Avatar
AddOn Author - Click to view AddOns

Forum posts: 115
File comments: 64
Uploads: 1
Originally posted by Mike-N-Go
Could you copy a snippet of the line where you are trying to do this please?
Code:
"Opening ALL lockboxes in "..(GetZoneText()).."! Tips appreciated."
Report comment to moderator  
Reply With Quote
Unread 01-11-09, 08:17 PM  
Mike-N-Go
A Theradrim Guardian
 
Mike-N-Go's Avatar
AddOn Author - Click to view AddOns

Forum posts: 68
File comments: 147
Uploads: 18
Originally posted by Dainton
I really only use it to send 2 ads at the same time. I changed the 35-40 second delay that you put on the && to 0 so that I could do this.

I tried using GetZoneText() in one of my ads (Opening lockboxes in Orgrimmar blah blah), but when I change cities it stays on the first city unless i reload the ui. Is there any way to get this to update otherwise?
Could you copy a snippet of the line where you are trying to do this please?
__________________
Currently contemplating coming back to Authorship.. been away for years. Please let me know you care, by commenting on what addon(s) of mine you want to see updated.

Author of Daily Bean Counter, MyNameTogglesWhenIAFKorDND, Extended Shutdown Warning, Auto Mail Director, Duel Nullify, Spec Transmiter, Say Again, Window Teller, Who Crafts, Ad Repeater, Privy Cork, Mac Backup, and more.
Report comment to moderator  
Reply With Quote
Unread 01-08-09, 10:37 AM  
Dainton
A Flamescale Wyrmkin
 
Dainton's Avatar
AddOn Author - Click to view AddOns

Forum posts: 115
File comments: 64
Uploads: 1
I really only use it to send 2 ads at the same time. I changed the 35-40 second delay that you put on the && to 0 so that I could do this.

I tried using GetZoneText() in one of my ads (Opening lockboxes in Orgrimmar blah blah), but when I change cities it stays on the first city unless i reload the ui. Is there any way to get this to update otherwise?
Report comment to moderator  
Reply With Quote
Unread 01-07-09, 07:03 AM  
Mike-N-Go
A Theradrim Guardian
 
Mike-N-Go's Avatar
AddOn Author - Click to view AddOns

Forum posts: 68
File comments: 147
Uploads: 18
Originally posted by Boedicia
I have no clue how to do this in LUA. I read the readme and im still confused. Please please PLEASE add a GUI in game!
I plan to make a GUI.. sometime. I have many projects that I want to get 'out'. After that, I plan to do updates on 'em.

Also, if this mod is too over your head, check out Say Again; coming out latter today, hopefully, it is the 'light' version of this mod without the auto-send and with more channel support.
__________________
Currently contemplating coming back to Authorship.. been away for years. Please let me know you care, by commenting on what addon(s) of mine you want to see updated.

Author of Daily Bean Counter, MyNameTogglesWhenIAFKorDND, Extended Shutdown Warning, Auto Mail Director, Duel Nullify, Spec Transmiter, Say Again, Window Teller, Who Crafts, Ad Repeater, Privy Cork, Mac Backup, and more.
Last edited by Mike-N-Go : 01-07-09 at 07:04 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.