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

[PB] advanced TSM AH bot profile

PS. Do you think you could edit the mailing module to allow access to the "Auto-Mail" button? Because that's 10 times better than having to deal with HB's ONE mail recipient (and having to add multiple lines of code to send stuff to different toons).

Ofcourse :), thats my ultimate goal. To make it work with HBRelog, so it would log all your crafting characters, crafting then mailing everything to bank-ah character.

You need to change "nil" at
TradeSkillMaster_Mailing/Modules/AutoMail.lua
local button = CreateFrame("Button", nil, MailFrame, "UIPanelButtonTemplate")
 
Last edited:
It does everything it supposed to do now, there is error window everytime you open auction house window tho.
Message: ...ace\AddOns\TradeSkillMaster\Auction\AuctionFrame.lua:265: attempt to call a nil value
Stack:
TSM\Auction\AuctionFrame.lua:265: <AuctionFrame.lua:265>
TSM\Util\Util.lua:206: <Util.lua:198>
Locale: enUS
Addons:
TSM (r361)
TSM_Accounting (v1.1)
TSM_AuctionDB (r159)
TSM_Auctioning (r502)
TSM_Crafting (v1.1)
TSM_Destroying (r160)
TSM_ItemTracker (v1.0.2)
TSM_Mailing (v1.0.2)
TSM_Shopping (v1.1.2)
TSM_Warehousing (v1.4.5)
This window also blocks posting/cancelling cycle untill you close it (wheel post/cancel)
 
It does everything it supposed to do now, there is error window everytime you open auction house window tho.

This window also blocks posting/cancelling cycle untill you close it (wheel post/cancel)

Fix:
TradeSkillMaster/Auction/
AuctionFrame.lua
replace line
TSMAPI:CreateTimeDelay("auctionButtonClick", 0.01, function() self:GetScript("OnMouseUp")(self) end)
with
TSMAPI:CreateTimeDelay("auctionButtonClick", 0.01, function() self:GetScript("OnClick")(self) end)

updated post #6 also
 
Error gone, thank you!
Now theres pretty big fuck up. Probably that isnt easy to fix.
Thing is when your mouse is over your open bags (that are opened automatically after you open auction house windows) wheel post/cancel does not work. It just randomly scroll up and down tsm frame with auctions inside ah window. Does not trigger cancel or post.
I know there is special spot for mouse cursor to wheel macro work correctly in new TSM, but opened bags are over this spot.
Same thing happens if your mouse is over honorbuddy window lets say.

Bags scale bit different in size than acution house, and if your wow window is really small (what we botters want usually ;) bags are over whole auction house basically.

Not sure if its easy to implement another workaround without mouse at all, but mouse will cause alot of troubles thats for sure.
 
I was afraid it would cause problems. Thinking on a workaround. Would it work fine if the mouse is around the top left corner?

edit: If not, I can make the option for normal button macro rather.
 
Well its hard to tell how exactly it works.

Now it accepts wheel macro even if wow window is not in focus and mouse cursor is in text editor.
Probably TSM wants initial first "tick" of cancel or post to be in right place, than it accepts everything or something untill you relog, dunno.
Il play with it some more.
 
It works, if you leave the cursor on a frame wheres no use of mousewheel, but ofcourse thats not an acceptable solution.
 
Ofcourse :), thats my ultimate goal. To make it work with HBRelog, so it would log all your crafting characters, crafting then mailing everything to bank-ah character.

You need to change "nil" at
TradeSkillMaster_Mailing/Modules/AutoMail.lua

I tried this last night and it gave me some "wrong button name" error or something. I'll try it again when I get to the office and post a screenshot of the error.

About that problem with the mouse, why don't you just use the keyboard like I did? It's working fine with your modifications (at least in my profile).
Feel free to take the code if you want.
 
Please check post #6 again (or the post above), I have added a fix for that error.

Regarding the mouse problem, yes I will have to stick with that solution, as moving the mouse is a bit problematic.

edit: added a modified profile for this at post#6
 
Last edited:
Please check post #6 again (or the post above), I have added a fix for that error.

Regarding the mouse problem, yes I will have to stick with that solution, as moving the mouse is a bit problematic.

edit: added a modified profile for this at post#6

I don't know if that was for me or for the guy with the mouse problem, but with TSM fully modified, I changed that one line from:

Code:
local button = CreateFrame("Button", nil, MailFrame, "UIPanelButtonTemplate")

To:

Code:
local button = CreateFrame("Button", "TSMAuto-Mail", MailFrame, "UIPanelButtonTemplate")

And I get this error (also, it doesn't mail anything):

WoWScrnShot_032712_135453.webp

Also, when closing the mailbox I get this error:

WoWScrnShot_032712_135508.webp

Hope you can find a fix, but if you have other priorities don't worry about it. I can always stick to a billion lines of code to get everything where it needs to go!

Thanks in advance.
 
I tried this last night and it gave me some "wrong button name" error or something. I'll try it again when I get to the office and post a screenshot of the error.

Toney, I replied to this when I said recheck post #6. There were additional modifies needed I forgot to mention, and those are needed for the profile to work.

What you are trying to do, gives an error because "TSM-AutoMail" is invalid I think. Try it without "-".
 
Can someone clarify the code for the scanning. ie

PostScan.lua
add lines at end
function Post:isScanning()
return isScanning
end
CancelScan.lua
add lines at end
function Cancel:isScanning()
return isScanning
end

Should the end of page look like this

function Cancel:isScanning()
return isScanning
end

or this

function Cancel:DoneScanning()
isScanning = false
function Cancel:isScanning()
return isScanning
end

When i replace the code with this code i get an error when i add the code to end scanning and canceling does not work at all.
 
Can someone clarify the code for the scanning. ie
function CanceloneScanning()
isScanning = false
function Cancel:isScanning()
return isScanning
end

When i replace the code with this code i get an error when i add the code to end scanning and canceling does not work at all.

Can you give a better explanation please whats happening exactly? Thanks.
 
Toney, I replied to this when I said recheck post #6. There were additional modifies needed I forgot to mention, and those are needed for the profile to work.

What you are trying to do, gives an error because "TSM-AutoMail" is invalid I think. Try it without "-".

Nope. Still not working.
For the record, I did a clean install at work so everything has been properly modified.
I'm guessing it needs more modifying than just adding a name to the "Open All" button.
 
Then you have modified something wrong probably. Recheck the modifications please.

Well I just replaced all the lines with the lines you wrote, so if it's wrong, ur doing it wrong xD
 
Nope. Still not working.
For the record, I did a clean install at work so everything has been properly modified.
I'm guessing it needs more modifying than just adding a name to the "Open All" button.

You are getting me wrong.

The line you modified is at TradeSkillMaster_Mailing/Modules/AutoMail.lua.
local button = CreateFrame("Button", nil, MailFrame, "UIPanelButtonTemplate")
This is for the button at the top, for sending items to alt characters.

The line needed to be modified for the profile to work is at TradeSkillMaster_Mailing/TradeSkillMaster_Mailing.lua
local button = CreateFrame("Button", nil, InboxFrame, "UIPanelButtonTemplate")

Also, the buttons name need to match with the one in the profile, but I think you already know this!

Sorry for the confusion !
 
Well I just replaced all the lines with the lines you wrote, so if it's wrong, ur doing it wrong xD

Can you please zip the modified files and send it to me? Haven't got better idea, if the addon doesn't even show up on your AH.
 
You are getting me wrong.

The line you modified is at TradeSkillMaster_Mailing/Modules/AutoMail.lua.

This is for the button at the top, for sending items to alt characters.

The line needed to be modified for the profile to work is at TradeSkillMaster_Mailing/TradeSkillMaster_Mailing.lua


Also, the buttons name need to match with the one in the profile, but I think you already know this!

Sorry for the confusion !

LOL! You are getting ME wrong!

That's the button I'm trying to modify, the one at the top, to SEND mail.

You even pointed me to that line yourself!

http://www.thebuddyforum.com/honorb...advanced-tsm-ah-bot-profile-3.html#post498767
 
Back
Top