Close
Page 5 of 5 FirstFirst ... 3 4 5
Showing results 41 to 46 of 46
  1. #41

    Default

    working like a charm now! thanks alot!

  2. #42

    Default Macro Pushing

    Was trying to troubleshoot around this one. Lets say I have Tank(partyleader) and Healer. With Trust set up already, i think this code, when run from the Tank, will create a macro on the healer that will cast heal on the tank.
    Code:
    /rpc Healer CreateMacro("Heal1", 1, "/cast [target="+UnitName(Party1)+"]heal", 1, 1)
    If we add another member, say DPS, then it would look like this.
    Code:
    /rpc Razorbax CreateMacro("Heal2", 1, "/cast [target="+UnitName(Party2)+"]heal", 1, 1)
    You would probably have to run something like....
    Code:
    /rpc Razorbax DeleteMacro("Heal1")
    ....first, but i think has promise.....

    NB. I am not a coder so I won't take offence to being corrected

  3. #43

    Default

    OK, so I am home now and I have had a play.

    This works as straight text with no variables..
    Code:
    /rpc Razorslax CreateMacro "Heal1"  1  "/cast [target=razorbaxftw]heal"  1  1
    But when I do the version with the variables
    Code:
    /rpc Razorslax CreateMacro "Heal1"  1  "/cast [target=" .. UnitName(Player) .. "]heal"  1  1
    It errors and only graps the first "/cast [target=" part. Anyone know what is used as joiners? I have tried ".." and "&" and "," and "and".

  4. #44

    Default

    [quote='razorbax',index.php?page=Thread&postID=1163 45#post116345]But when I do the version with the variables
    [code]/rpc Razorslax CreateMacro "Heal1" 1 "/cast [target=" .. UnitName(Player) .. "]heal" 1 1[/code]

    It errors and only graps the first "/cast [target=" part. Anyone know what is used as joiners? I have tried ".." and "&" and "," and "and".[/quote]The [url='http://www.lua.org/manual/5.1/manual.html#2.5.4']concatentation[/url] operator is .. try it without spaces (blah..blah..blah) and also on that page at linked there is a section 2.1 - Lexical Conventions which explains what I say below.

    UnitName takes a string (type of variable); so you'll need to pass "player" to it for it to work. But because you are using " in UnitName, you need to use [[ and ]] instead of " around the complete string.

    so you might like to try:

    [[/cast [target="..UnitName("player").."] heal]]

    I make no guarantees that this will work for you; good luck in your macro manipulation quest. (Do you get a phat reward when you hand it in?)
    Jafula.
    Jamba - Jafula's Awesome Multi Boxer Assistant. An addon for YOU.

  5. #45

    Default

    I'm not playing WoW anymore (at least not until the next time I get sucked back in ). If anybody is still using this and wants to pick up the last version I was working on the code is here:
    http://code.google.com/p/wow5box

    Check out the projects MultiboxRoster and Remoting.
    All my codes r belong to you: wow5box

  6. #46

    Default

    Quote Originally Posted by 'Chorizotarian',index.php?page=Thread&postID=12717 8#post127178
    I'm not playing WoW anymore (at least not until the next time I get sucked back in ). If anybody is still using this and wants to pick up the last version I was working on the code is here:
    http://code.google.com/p/wow5box

    Check out the projects MultiboxRoster and Remoting.
    I'll have a look, thanks for sharing your work!
    Jafula.
    Jamba - Jafula's Awesome Multi Boxer Assistant. An addon for YOU.

Similar Threads

  1. I need a new addon
    By Catamer in forum Software Tools
    Replies: 5
    Last Post: 03-01-2009, 02:15 PM
  2. Addon Question, Limit addon to one character?
    By delafoo in forum Macros and Addons
    Replies: 1
    Last Post: 02-15-2009, 10:35 PM
  3. [Addon] OhNoes: Screen Coloring/Alert addon. Updated!
    By Depherios in forum Macros and Addons
    Replies: 18
    Last Post: 08-04-2008, 01:54 PM
  4. Addon
    By strat1219 in forum New Multi-Boxers & Support
    Replies: 1
    Last Post: 06-17-2008, 07:06 PM
  5. Anyone know of an addon that can ...
    By shocktrot in forum Macros and Addons
    Replies: 2
    Last Post: 12-30-2007, 12:57 AM

Posting Rules

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