• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • [PB] Toney's (very basic) TSM-Based AH Bot Profile

    Discussion in 'ProfessionBuddy Profiles' started by Toney001, Dec 19, 2011.

    1. Inrego

      Inrego New Member Buddy Store Developer

      Joined:
      Feb 7, 2010
      Messages:
      2,765
      Likes Received:
      71
      Trophy Points:
      0
      First you declare a variable:
      var1 = 0;
      then you make a while loop:
      While((int)var1 < 100)
      press button
      var1 = (int)var1 + 1
      wait 200 ms

      that's basicly it.
       
      Toney001 likes this.
    2. Toney001

      Toney001 New Member

      Joined:
      Oct 12, 2011
      Messages:
      1,206
      Likes Received:
      5
      Trophy Points:
      0
      I'll try it out whenever I get a chance (probably not before the weeked). Thanks!!!
       
    3. Inrego

      Inrego New Member Buddy Store Developer

      Joined:
      Feb 7, 2010
      Messages:
      2,765
      Likes Received:
      71
      Trophy Points:
      0
      Actually I managed to modify the addon even more so I can get the number of times to push the button. This way we could make it press it exactly the amount of times it needs. (Only done the cancel part so far, will have a look at posting now)
       
    4. Toney001

      Toney001 New Member

      Joined:
      Oct 12, 2011
      Messages:
      1,206
      Likes Received:
      5
      Trophy Points:
      0
      That'd be the very best, so it'd auto adjust to everyone's need, and not waste time.
      How are you doing the pushes? Were you able to get the code running through HB or with key presses like I did?
       
    5. Inrego

      Inrego New Member Buddy Store Developer

      Joined:
      Feb 7, 2010
      Messages:
      2,765
      Likes Received:
      71
      Trophy Points:
      0
      KeyPresses too I'm afraid :/
      Sending them through HB was causing an odd delay.
       
    6. vitalic

      vitalic Banned

      Joined:
      Jun 21, 2010
      Messages:
      99
      Likes Received:
      0
      Trophy Points:
      0
      can't you just use lua /runmacro ?
       
    7. Toney001

      Toney001 New Member

      Joined:
      Oct 12, 2011
      Messages:
      1,206
      Likes Received:
      5
      Trophy Points:
      0
      I do that for opening the post/cancel pages, but for some reason the button presses don't work well. I don't get it, because the macros themselves work fine (which is why I had to use key presses).
       
    8. Inrego

      Inrego New Member Buddy Store Developer

      Joined:
      Feb 7, 2010
      Messages:
      2,765
      Likes Received:
      71
      Trophy Points:
      0
      Yea it's prolly something to do with hardware event. Many AH addons do that.
       
    9. Inrego

      Inrego New Member Buddy Store Developer

      Joined:
      Feb 7, 2010
      Messages:
      2,765
      Likes Received:
      71
      Trophy Points:
      0
      Okay I'm done.
      For posting you make a while loop saying this (this should be the while condition. Inside the loop you still put the post keypress code you always used and the small delay)
      Code:
      Lua.GetReturnVal<int>("current,last = LibStub(\"AceAddon-3.0\"):GetAddon(\"TradeSkillMaster_Auctioning\"):GetModule(\"Post\"):PostCount() if current ~= 0 and last ~= 0 and current <= last then return 1 else return 0 end", 0) == 1
      And this is for cancel:
      Code:
      Lua.GetReturnVal<int>("current,last = LibStub(\"AceAddon-3.0\"):GetAddon(\"TradeSkillMaster_Auctioning\"):GetModule(\"Cancel\"):CancelCount() if current ~= 0 and last ~= 0 and current <= last then return 1 else return 0 end", 0) == 1
      
      You need to replace these 2 files in TradeSkillMaster_Auctioning\modules
      Cancel.lua
      post.lua

      With the ones I provided here:
      View attachment TSMfiles.zip

      I might at some point look into reading if it's done scanning or not.
       
      Last edited: Dec 23, 2011
      Jacan and Phones like this.
    10. Toney001

      Toney001 New Member

      Joined:
      Oct 12, 2011
      Messages:
      1,206
      Likes Received:
      5
      Trophy Points:
      0
      Thanks a lot man! I'll try it out tonight once I'm home and update the first post!
      +rep
       
    11. HenkaN75

      HenkaN75 Member

      Joined:
      Aug 16, 2010
      Messages:
      290
      Likes Received:
      0
      Trophy Points:
      16
      worked this morning but now its just spamming F1 at the auctioneer :(
       
    12. imdasandman

      imdasandman Active Member

      Joined:
      Feb 2, 2011
      Messages:
      1,207
      Likes Received:
      6
      Trophy Points:
      38
      blizz chnaged that the AH had to have hardware events to post/cancel auctions because there were certain addons in the 2.0-.30 series that was fully automating the AH and blizz had to break it
       
    13. Toney001

      Toney001 New Member

      Joined:
      Oct 12, 2011
      Messages:
      1,206
      Likes Received:
      5
      Trophy Points:
      0
      Is it not opening the auction tab? It's probably some sort of HB/PB bug. I don't see how a profile could stop working.
      Have you tried restarting WoW/HB?

      Anyway... hopefully either tonight or tomorrow I'll have time to update this with Inrego's code, BUT just so you guys
      know, I've removed the link to the modified files due to this:

      To which my answer was:

      So yeah. Files are still around, feel free to look for them and you'll find them.
      Google is your friend.

      Also, we're being watched more than we think.
      Can we get some private forums plz? Sure, anyone can get a key and have access, but chances are no one but blizzard will do it, and it'll increase our safety by reducing the number of people that know how we do things.
       
      Last edited: Dec 22, 2011
    14. Teveel

      Teveel Active Member

      Joined:
      Sep 5, 2011
      Messages:
      2,144
      Likes Received:
      8
      Trophy Points:
      38
      I don't get that license thing is it a international law or something?
      I think like with a lot of things on the internet now people threaten action as it sometimes spooks the other person into giving up but the majority of the time you can flip that person the bird and they can't do anything about it.

      Not to mention we are on a forum based around breaking Blizzard's TOS/EULA.
       
    15. Toney001

      Toney001 New Member

      Joined:
      Oct 12, 2011
      Messages:
      1,206
      Likes Received:
      5
      Trophy Points:
      0
      Yeah, like I said he can't touch me. He's a WoW player that does coding on his free time. Not a company with Blizzard's resources.
      I'm fairly sure he doesn't have funds to pursue legal action in south america, in a country with no legislation regarding this matter.

      But, like I said, I do appreciate his work. TSM has made my life so much easier over the years that I'd feel like a douche if I just
      told him to go fuck himself, though I can't say I wasn't tempted to do it.
       
    16. Inrego

      Inrego New Member Buddy Store Developer

      Joined:
      Feb 7, 2010
      Messages:
      2,765
      Likes Received:
      71
      Trophy Points:
      0
      Basicly your reply to him did say "go fuck yourself" ^^
       
    17. Jandurson

      Jandurson New Member

      Joined:
      Dec 9, 2011
      Messages:
      162
      Likes Received:
      0
      Trophy Points:
      0
      When searching google for the modified files what key words are we looking for? I tried "Tradeskillmaster modified for background" but nothing came up. So what should we search for?




      EDIT: Searching for the mod files got me to a Sapu post

      "Unfortunately, I just found that PLAYER has actually purchased botting software and is an active user of their forums. On the plus side, I guess the anti-bot code is working pretty well if it's taken this long for him to be able to get around it."

      So ya we're being watched
       
      Last edited: Dec 22, 2011
    18. Toney001

      Toney001 New Member

      Joined:
      Oct 12, 2011
      Messages:
      1,206
      Likes Received:
      5
      Trophy Points:
      0
      Hey, did I take the links down or not!? ;)

      I kinda want him to fire back just so I can put them back in and actually tell him to...
       
    19. Inrego

      Inrego New Member Buddy Store Developer

      Joined:
      Feb 7, 2010
      Messages:
      2,765
      Likes Received:
      71
      Trophy Points:
      0
      Ok checking if it's scanning or not was quite easy - as it's already a public variable which we can just check without having to modify the addon (at least for posting).
      Cancelling needs an accessor method like the ones I made before, but that was piece of cake too. More info coming soon when it's done :)

      Alright..
      Put a Wait action with a really high timeout, and this as the condition:

      Post:
      Code:
      Lua.GetReturnVal<int>("if isScanning then return 1 else return 0 end", 0) == 1
      Cancel:
      Code:
      Lua.GetReturnVal<int>("if LibStub(\"AceAddon-3.0\"):GetAddon(\"TradeSkillMaster_Auctioning\"):GetModule(\"Cancel\"):isScanning() then return 1 else return 0 end", 0) == 1
      Then it will wait until it's done scanning.
      View attachment TSMfiles.zip <- here's the modified cancel file (along with the old post file too)

      I'll also edit my other post to contain this so ppl don't find the wrong one :)
       
      Last edited: Dec 23, 2011
    20. Jandurson

      Jandurson New Member

      Joined:
      Dec 9, 2011
      Messages:
      162
      Likes Received:
      0
      Trophy Points:
      0
      Thanks!!!
       

    Share This Page