What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

[PB] advanced TSM AH bot profile

To make my question as clear as possible when editing the postscan and cancelscan files do we just drop the text at the bottom of the file with a space or do we replace the existing lines at the end ie

function Cancel:isScanning()
return isScanning
end

If we just add this to the bottom of the document maybe you should word the instructions as "bottom of page" or something to that effect the "end" is confusing as the text in document is end....

This may seem silly but i am getting an error because of this. Thanks again.
 
LOL! You are getting ME wrong!

LOL :D Ok, I get you now I think. You just simply want to make use of the button yourself? Okay, I looked into the code. It looks like there are some checks if the button name have been modified. Remove all checks "private.button:GetName()" ;) Hope you can get it to work.
 
If we just add this to the bottom of the document maybe you should word the instructions as "bottom of page" or something to that effect the "end" is confusing as the text in document is end....

This may seem silly but i am getting an error because of this. Thanks again.

Thanks for the feedback. You have to ADD those lines to the bottom. I have modified the post to be clear.
 
Thanks for going to the effort, will give it a try asap.

Quick question for you. I had some issue getting the macro to work with and without mouse prior to this. Is there something else special I need to do? It just flat out doesnt do anything.
 
Any chance you could automate prospecting/disenchanting via TSM_Destroying?
 
LOL :D Ok, I get you now I think. You just simply want to make use of the button yourself? Okay, I looked into the code. It looks like there are some checks if the button name have been modified. Remove all checks "private.button:GetName()" ;) Hope you can get it to work.

There we go!
I had just commented out line 184 before because that's where the error pointed me to, and while it did end the errors, it wasn't sending anything.
I've found the other checks now and the button is accessible and working.

Thanks a lot :).

EDT: In case anyone cares, here's the modifications made in order to make the "Auto-Mail" button work:

TradeSkillMaster_mailing > Modules > AutoMail.lua

Before:
Code:
local button = CreateFrame("Button", nil, MailFrame, "UIPanelButtonTemplate")
After:
Code:
local button = CreateFrame("Button", "TSMAuto-MailButton", MailFrame, "UIPanelButtonTemplate")

Before:
Code:
if not private.currentTarget or private.button:GetName() then
After:
Code:
if not private.currentTarget then

Delete the following line:
Code:
if private.button:GetName() then error("Invalid button name.") end

The button can be accessed as "TSMAuto-MailButton", and it doesn't seem to require hardware event (ran it through HBConsole), so just a run macro text command in PB should suffice.
 
Last edited:
Quick question for you. I had some issue getting the macro to work with and without mouse prior to this. Is there something else special I need to do? It just flat out doesnt do anything.

What you should do is: set up the 2 macros mentioned at post #6, move them to your action bar, fire up TSM manually, then scan and check if it posts/cancels when you press the macro buttons. That should work with the original unmodified addon.

Any chance you could automate prospecting/disenchanting via TSM_Destroying?

At its current state the profile only cancels-posts. Can't see where this could be implemented.
On the other hand I'm working on the new features crafting-buying mats from AH, I definetly see the use there.
Could you explain a bit more how would you like to see it please? Thanks !
 
OK. This is working great except for another issue I've found I have over 200 auctions going at the moment. In TSM i have it set to 2 auctions per item. So i have excess in my bag. When i was working on this the other day the bot would wait before running a cancel and post cycle.

The bot is now running a cancel cycle then the post cycle and then continually runs a post cycle over and over there is not break, or stop it just keeps running to mail, back to ah post cycle bank to mail. I have no more mail and have about 30 items in my bag. s anyone else experiencing this? It does not try to cancel again in this way just keeps posting.
 
The bot is now running a cancel cycle then the post cycle and then continually runs a post cycle over and over there is not break, or stop it just keeps running to mail, back to ah post cycle bank to mail. I have no more mail and have about 30 items in my bag. s anyone else experiencing this? It does not try to cancel again in this way just keeps posting.

Are you sure, that nothing is in the mailbox? Empty letter maybe? But, to be honest that doesn't make sense either.
 
I couldnt get it to work at first, it was hanging/waiting after doing a cancel scan (I think its because I didn't have anything posted at the AH at that time). After I posted a few items it started doing a posting scan and worked like a charm.
 
I couldnt get it to work at first, it was hanging/waiting after doing a cancel scan (I think its because I didn't have anything posted at the AH at that time). After I posted a few items it started doing a posting scan and worked like a charm.

Oh, thanks for pointing that out ! It did happen to me also at once, but I totally forgot to note it as a bug.
 
No problem, it also seems to walk to the mailbox, even though I don't have anything in it, but for me that's not an issue. Works great so for, thanks a lot for this! :D
 
I don't know if I'm the only one with this problem, but every now and then the post(cancel)/skip/scan buttons are blacked out and the bot gets stuck. Has happened while posting and cancelling.

The AuctionFrame.lua is properly modified.

EDIT: Here's a screenshot:

WoWScrnShot_032712_193412.webp
 
Last edited:
Ok this is working great, even with mouse wheel macro. You just have to leave pointer at right spot. Just finished ~10hour session no problems at all.
And glad to see the problem i wanted to report is already reported.
So just to clear - if there are no items posted on auction house - it getting stuck on inital cancel run. And it has nothing to do with random timers, since i dont use that.

And still looking forward for keyboard macro ;)
edit: nvm i see macro now! ty!
 
Last edited:
I don't know if I'm the only one with this problem, but every now and then the post(cancel)/skip/scan buttons are blacked out and the bot gets stuck. Has happened while posting and cancelling.

This has happened to me also =( As far as I see, this only occurs, when game window loses focus. But, I can't come up with any theory why does it happen still. The other I can think about is, that I made an error when *****ing bot check in addon, but in that case the TSM windows should lock itself until reloading UI. Which is not the case for me, if I give focus or move mouse, it gets fixed. Trying to narrow down, what could cause it. Could you try with LUA errors enabled please? Thanks.
 
This has happened to me also =( As far as I see, this only occurs, when game window loses focus. But, I can't come up with any theory why does it happen still. The other I can think about is, that I made an error when *****ing bot check in addon, but in that case the TSM windows should lock itself until reloading UI. Which is not the case for me, if I give focus or move mouse, it gets fixed. Trying to narrow down, what could cause it. Could you try with LUA errors enabled please? Thanks.

I can't help with the addon part, but I'm sure we can find a workaround.
Right now my profile is set to time out when this happens, and will eventually go on on it's own. It's still annoying, because if it errors during a cancel sequence, it'll have to wait another 10-15 mins to cancel, but it's better than nothing.
Another possible workaround might be executing the click feature1/2 macro more than once, since manually doing it seemed to unstuck the bot.

Regarding the lua errors, I'll see if anything comes up.

EDIT: Just happened again. Unfortunately, no LUA errors :(
 
Last edited:
Another possible workaround might be executing the click feature1/2 macro more than once, since manually doing it seemed to unstuck the bot.

The problem is, when it happens to me, it just keeps doing that until I give focus/move mouse. So even if it spams the macro a few more tries, the same happens. Just a quick question, do you have StrataFix addon by any chance?
 
The problem is, when it happens to me, it just keeps doing that until I give focus/move mouse. So even if it spams the macro a few more tries, the same happens. Just a quick question, do you have StrataFix addon by any chance?

Sorry for the confusion, actually it doesn't get unstuck. I thought it did because I didn't tab back in DURING the time it was supposed to scan. I'm in the same boat as you.
I even tried macroing /click feature1 and using keyboard manager to press it, thinking it might be forced to require hardware event, but nothing.

And no, I don't have that addon.
 
I will test it with hardware event, maybe thats the cause. Will report back tonight.
 
Back
Top