• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • [PB] advanced TSM AH bot profile

    Discussion in 'Archives' started by glvtron, Mar 23, 2012.

    1. Keldorn

      Keldorn New Member

      Joined:
      Jul 2, 2012
      Messages:
      560
      Likes Received:
      0
      Trophy Points:
      0
      Hey i downloaded the version u uploaded accidently (seems so...) [PB] TSM bot v0.12.xml (without _crafting)
      I notices that this version started first with posting and not canceling

      [PB] TSM bot v0.12_crafting.xml starts with canceling again.

      Can u please add an option to switch between 1. cancel 2. post / 1. post 2. cancel or just switch them or let me know how to do this?
      Posting in a EMPTY AH doesnt work for me
       
    2. Montis

      Montis New Member

      Joined:
      Dec 4, 2011
      Messages:
      81
      Likes Received:
      0
      Trophy Points:
      0
      Same here
       
    3. ImNotleet

      ImNotleet New Member

      Joined:
      Aug 21, 2011
      Messages:
      6
      Likes Received:
      0
      Trophy Points:
      0
      Any chance you can make the pathing look less bottish, specifically allway's standing in the same place next to the AH.
       
    4. ketoha

      ketoha New Member

      Joined:
      Nov 6, 2010
      Messages:
      62
      Likes Received:
      0
      Trophy Points:
      0
      nvm all ok
       
      Last edited: Aug 19, 2012
    5. kakashi310

      kakashi310 New Member

      Joined:
      Jul 14, 2011
      Messages:
      73
      Likes Received:
      0
      Trophy Points:
      0
      This profile can play with AH ?
       
    6. smrdlja

      smrdlja New Member

      Joined:
      Jul 29, 2012
      Messages:
      147
      Likes Received:
      0
      Trophy Points:
      0
      Any chance to make this work more like Toney's when it comes to making post/cancel cycles?

      Toney's has different timers for post and cancel, so you can like set it to make 10 post cycle then do 1 cancel cycle etc... Would be really great to have it like that and it shouldn't be extra hard to code.
       
    7. Keldorn

      Keldorn New Member

      Joined:
      Jul 2, 2012
      Messages:
      560
      Likes Received:
      0
      Trophy Points:
      0
      Hello again :)

      I have some thoughts an posting glyphs.

      Some people just post and cancel and respost and cancel...
      Some poeple just keep posting posting posting - means to have a shitload of Gems/Glyphs/Enchants/Whatever in Bank or GuildBank

      For people that post / cancel all is fine
      For people that just post there are some thoughts.

      Is it possible (i think IT IS) to change the code in that wise that my toon:

      1. GoToAH
      2. Start posting
      3. GoToBank / GoToGuildBank
      4. Run some macros to switch Bags or run some macros for Dumpster Addon to switch Gems/Glyphs/Enchants/Whatever i want to post

      REPEAT - means:
      5. GoToAH
      6. Start posting

      Mainproblem is now... after some posting cycles your Gems/Glyphs/Enchants/Whatever are all in the AH and my toon have to get them back to repost them.
      Solution could be: Let the user put in a number CancelAfter"X"PostingCycles - would this work?

      Some other thoughts

      - Put in some waypoints to stand next to auctioneer - is that possible or is the fundtion only "GoToAuctioneerFastestWay"?
      - Query for IsthisMailBoxForMyFaction - for the MOLL-E problem of opposite faction (easier solution would be to say "Just dont use neutral areas to AH")
      - When FULLSCAN is enables add a /reloadui after the scan - becasue /rl SLOWS down the hole client until the UI is reloaded...
      - Make Turbomailer work - saves some time and you know "TIME IS MONEY FRIEND" - Problem here: Turbomailer reloadsui after mailretrival part but then the toons starts running to the AH instead of looting all mail left
      - Let this profile post to AH even it is empty - i dont know WHAT is difference between an empty AH or an AH with some items in it, the profile just "clicks" the Post Auctions button but it doesnt start?
      - Let the toon ignore any COD mails he has in his box - my toon just stands at the mailbox and stops his work if there is a COD mail in it.

      Sorry for wall of text

      I hope there are some capable coders out there who can help to make this happen.
      I would do it but i dont know how - im able to search some functions and look into them and the change some things at somebody's disposition.

      Greetings

      //edit1

      Code:
          <SubRoutine SubRoutineName="GetAllScan">
          <CustomAction Code="Log (&quot;Starting GetAll scan&quot;);" />
          <CustomAction Code="Lua.DoString(AH_RunScan, 0);" />
          <WaitAction Condition="false" Timeout="2500" />
          <While Condition="Lua.GetReturnVal&lt;int&gt;(TSM_IsGetAllScanning,0) == 1" IgnoreCanRun="True" />
          <CustomAction Code="Log (&quot;GetAll scan ended&quot;);" />
        </SubRoutine>
      
      How to add a Lua.DoString("ReloadUI()"); after this scan?

      //edit2

      If i understand the code correct then this is the whole while loop and everything below defines the SubRoutines:

      Code:
      <While Condition="Me.IsAlive" IgnoreCanRun="True">
          <If Condition="Me.IsAlive &amp;&amp; DateTime.Now.Subtract((DateTime)var1).TotalSeconds &gt;= (int)var2" IgnoreCanRun="True">
            <If Condition="(bool)Settings[&quot;Crafting&quot;]" IgnoreCanRun="True">
              <CallSubRoutine SubRoutineName="Restock" />
              <CallSubRoutine SubRoutineName="Crafting" />
              <CallSubRoutine SubRoutineName="DoPost" />
            </If>
            <CallSubRoutine SubRoutineName="DoCancel" />
            <CallSubRoutine SubRoutineName="DoPost" />
            <CallSubRoutine SubRoutineName="GetMail" />
            <While Condition="Lua.GetReturnVal&lt;int&gt;(Mail_IsEmpty,0) == 0" IgnoreCanRun="True">
              <CallSubRoutine SubRoutineName="GetMail" />
              <CallSubRoutine SubRoutineName="DoPost" />
            </While>
            <CustomAction Code="Lua.DoString(&quot;CloseAuctionHouse()&quot;);" />
            <CustomAction Code="var1 = DateTime.Now;" />
            <CustomAction Code="var2 = new Random().Next((int)Settings[&quot;MinWait&quot;], (int)Settings[&quot;MaxWait&quot;]);" />
            <CustomAction Code="Log (&quot;Starting the next Canceling and Posting cycle in {0} seconds&quot;,var2);" />
          </If>
        </While>
      
      When i want my toon starts crafting only AFTER completely emtpying the mailbox then i only have to switch the lines to this?

      Code:
      <While Condition="Me.IsAlive" IgnoreCanRun="True">
            <CallSubRoutine SubRoutineName="DoCancel" />
            <CallSubRoutine SubRoutineName="DoPost" />
            <CallSubRoutine SubRoutineName="GetMail" />
              <While Condition="Lua.GetReturnVal&lt;int&gt;(Mail_IsEmpty,0) == 0" IgnoreCanRun="True">
                <CallSubRoutine SubRoutineName="GetMail" />
                <CallSubRoutine SubRoutineName="DoPost" />
                  <If Condition="Me.IsAlive &amp;&amp; DateTime.Now.Subtract((DateTime)var1).TotalSeconds &gt;= (int)var2" IgnoreCanRun="True">
                  <If Condition="(bool)Settings[&quot;Crafting&quot;]" IgnoreCanRun="True">
                 <CallSubRoutine SubRoutineName="Restock" />
                <CallSubRoutine SubRoutineName="Crafting" />
                <CallSubRoutine SubRoutineName="DoPost" />
                  </If>
      </While>
            <CustomAction Code="Lua.DoString(&quot;CloseAuctionHouse()&quot;);" />
            <CustomAction Code="var1 = DateTime.Now;" />
            <CustomAction Code="var2 = new Random().Next((int)Settings[&quot;MinWait&quot;], (int)Settings[&quot;MaxWait&quot;]);" />
            <CustomAction Code="Log (&quot;Starting the next Canceling and Posting cycle in {0} seconds&quot;,var2);" />
          </If>
        </While>
      
      And when i want to start with posting i only have to switch the 2 lines that says Dopost and DoCancel?

      Some other questions just FMI:

      Code:
            <CustomAction Code="Lua.DoString(&quot;CloseAuctionHouse()&quot;);" />
            <CustomAction Code="var1 = DateTime.Now;" />
            <CustomAction Code="var2 = new Random().Next((int)Settings[&quot;MinWait&quot;], (int)Settings[&quot;MaxWait&quot;]);" />
            <CustomAction Code="Log (&quot;Starting the next Canceling and Posting cycle in {0} seconds&quot;,var2);" />
      
      Is just for the randomization i can setup in the options?

      And what is this for?

      Code:
      <While Condition="Me.IsAlive" IgnoreCanRun="True">
          <If Condition="Me.IsAlive &amp;&amp; DateTime.Now.Subtract((DateTime)var1).TotalSeconds &gt;= (int)var2" IgnoreCanRun="True">
      
      Im really nosy - sorry
       
      Last edited: Aug 22, 2012
    8. Keldorn

      Keldorn New Member

      Joined:
      Jul 2, 2012
      Messages:
      560
      Likes Received:
      0
      Trophy Points:
      0
      In the new versions of TSM something has changed.

      Before: Post Auctions Button was called feature2 and Cancel Auctions Button was called feature3
      Now: This are no longer "Buttons" (frames) i cant find out the new names with this macro -> /print GetMouseFocus():GetName()

      So with the new version the bot wont start posting or canceling.

      The Post and Cancel Buttons from the Post and Cancel scans has kept their Name. TSMAuctioningCancelButton TSMAuctioningPostButton

      How to find out the name of the new ButtonsFrames? Seems the new ones are only something like "links"

      Greetings

      /edit

      With /framestack i see that the new Buttons are only tablecells or something like that?!

      table: 362E6978 = Start Scan

      table: 362E4B28 = Post Auctions
      table: 362E6838 = Cancel Auctions

      Dunno how to interact with a cell or a table or something like that
       
      Last edited: Aug 22, 2012
    9. intr3pid

      intr3pid New Member

      Joined:
      Nov 11, 2010
      Messages:
      47
      Likes Received:
      0
      Trophy Points:
      0
      Whens the last time your batch file was updated to the new TSM? I think things would be easier if you just uploaded the edited copy of TSM/TSM Auction? We would love you!!!!
       
      Last edited: Aug 27, 2012
    10. glvtron

      glvtron Member

      Joined:
      Mar 10, 2012
      Messages:
      128
      Likes Received:
      3
      Trophy Points:
      18
      Sorry, I can't do that, Sapu the author of TSM is watching by and assaults anyone who violates TSM license (CC BY-NC-ND 3.0 Creative Commons license), thats why a batch file is in place.

      Will post updates, and fixes when new HB hits.
       
    11. glvtron

      glvtron Member

      Joined:
      Mar 10, 2012
      Messages:
      128
      Likes Received:
      3
      Trophy Points:
      18
      change line in AuctionFrame.lua

      from

      Code:
      local btn = CreateFrame("Button", nil, frame)
      to

      Code:
      local btn = CreateFrame("Button", "feature"..j+i-1, frame)
      should work I think...
       
    12. Raqw

      Raqw New Member

      Joined:
      Dec 6, 2011
      Messages:
      42
      Likes Received:
      0
      Trophy Points:
      0
      when i make a macro whit /click feature2 to action the button is not doing nothing.. do you know why?
       
    13. RayVanHalen

      RayVanHalen New Member

      Joined:
      Mar 5, 2012
      Messages:
      190
      Likes Received:
      1
      Trophy Points:
      0
      Out of curiosity, what is the worst thing he can do?

      In all seriousness, that guy is a complete douchebag. I wouldn't feel bad about messing with him.
       
    14. smrdlja

      smrdlja New Member

      Joined:
      Jul 29, 2012
      Messages:
      147
      Likes Received:
      0
      Trophy Points:
      0
      Same here. Maybe some other edits are neeeded?
       
    15. Keldorn

      Keldorn New Member

      Joined:
      Jul 2, 2012
      Messages:
      560
      Likes Received:
      0
      Trophy Points:
      0
      Doesnt work for me too.
      Nothing happens if i enter /click feature2 or 3 but it should start the post or cancle cycle?
       
      Last edited: Sep 1, 2012
    16. Raqw

      Raqw New Member

      Joined:
      Dec 6, 2011
      Messages:
      42
      Likes Received:
      0
      Trophy Points:
      0
      lets wait and hope for glvtron. Probably after more investigation he will know what to do.
       
    17. Keldorn

      Keldorn New Member

      Joined:
      Jul 2, 2012
      Messages:
      560
      Likes Received:
      0
      Trophy Points:
      0
      glvtron one question:

      Are you too busy or are your waiting for HB relaunch or are you plaing something?
      Would be nice to know :)
       
    18. Raqw

      Raqw New Member

      Joined:
      Dec 6, 2011
      Messages:
      42
      Likes Received:
      0
      Trophy Points:
      0
      is weekend think he is taking some time for himself. I think tomorrow he will give us a answer.
       
    19. Raqw

      Raqw New Member

      Joined:
      Dec 6, 2011
      Messages:
      42
      Likes Received:
      0
      Trophy Points:
      0
      so still nothing?
       
    20. glvtron

      glvtron Member

      Joined:
      Mar 10, 2012
      Messages:
      128
      Likes Received:
      3
      Trophy Points:
      18
      If you mean the update, HB is still down, I'm waiting for it to be updated.

      About the /click macro, do the edit I've posted above, plus modify these lines also:

      Code:
      			btn:SetScript("OnMouseUp", function(self, button)
      					UnlockAllHighlight()
      					self:LockHighlight()
      					private:OnSidebarButtonClick(mode, button)
      				end)
      to

      Code:
      			btn:SetScript("OnClick", function(self, button)
      					UnlockAllHighlight()
      					self:LockHighlight()
      					private:OnSidebarButtonClick(mode, "LeftButton")
      				end)
       

    Share This Page