1. #1

    Running Multiple Slash Commands

    Hey there.

    I'd like to know if there is any way to run multiple slash commands of another addon.
    I.E. let's say I have the following commands:
    • /tsm get Peacebloom 10
    • /tsm get Silverleaf 20

    These commands are used for TSM addon to get those items from a bank with a certain quantity, meaning I'd take 10x Peacebloom and 20x Silverleaf if run each one at a time. The command is
    /tsm get [item_name] [quantity]
    Obviously writing them in a macro didn't work as TSM (the addon in question) seemed to run only the later until no more Silverleaf was available to 'get', and only then run the first one. Or in other words, it ran the last slashcommand until it was no longer possible, and only then jumped to the first one, effectively giving me my total quantity of Silverleaf in the bank while I only wanted 20, before starting to give me the Peaceblooms.

    Is there any way through macro or any lua script to run both of them in that order?
    World PvP and how it stands/standed.
    World PvP isn't meant to be balanced, fair nor honorable. It's meant to be brutal, sneaky and it's the survival of the fittest. It's a fight where everything goes and you use anything you can to survive and win. It's War.. a World of Warcraft where only the best survive!

  2. #2
    High Overlord Pelf's Avatar
    Join Date
    Mar 2008
    Location
    US-Sargeras
    Posts
    108
    Since it has to wait for inventory actions, there's likely going to be a break in the code that allows the second move to be started before the first one finishes. I've had a look through the code and didn't see any immediately obvious way you can programmatically wait for the first operation to finish and then start the second.

    However, it looked like the "operations" feature might be able to do this. Check this out:
    http://stormspire.net/consortium-qua...rehousing.html

    Also, the main wiki:
    http://tradeskillmaster.com/wiki/

    And, if both fail, the forums:
    http://stormspire.net/official-trade...er-forums.html
    Shiboomi of <Riot> on US-Sargeras

  3. #3
    Won't work, you cannot make a macro pause between commands (for bot prevention purposes)

  4. #4
    no you cant

  5. #5
    High Overlord Pelf's Avatar
    Join Date
    Mar 2008
    Location
    US-Sargeras
    Posts
    108
    Anyway... look into operations, like I said. You set up a batch of things to do and the addon automates the rearranging to accomplish it.
    Shiboomi of <Riot> on US-Sargeras

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •