| | #1 |
| Senior Member | I am working on a macro script for someone in my guild... I have 2 questions for you gurus out there How do you 1) Cast another macro from within a macro, that is NOT necessarily on your bar? 2) Restack a specific item (by name) in your bags? (i.e. I have a stack of 2 cloth and one of 8 cloth and I want to auto combine them into a stack of 10) I want to do the above without the use of ANY addons (I know their are item stacking bag addons etc...)
__________________ |
| | |
| | #2 |
| Senior Member Join Date: Aug 2009
Posts: 224
| At least in the past, you couldn't call another macro from within a macro. I have no idea about the stacking problem, sorry.
__________________ |
| | |
| | #3 |
| Senior Member | Off the top of my head. Caveats:
Code: /script for b=4,0,-1 do for s=GetContainerNumSlots(b),1,-1 do local n=GetContainerItemLink(b,s);if n and string.find(n,"ITEM NAME HERE") then local t,i,l,q,r=GetContainerItemInfo(b,s);if i<10 then PickupContainerItem(b,s);if CursorHasItem() then PutItemInBackpack();end;end;end;end;end;
Even if the above doesn't work, maybe it will give someone else some ideas. |
| | |
| | #4 |
| Super Moderator | Well, looking through the Macro API, I did come across something... API Split Container Item Picks up part of a stack of items from a container, placing them on the cursor. Code: SplitContainerItem(bagID, slot, count); bagID Integer - id of the bag the slot is located in. slot Integer - slot inside the bag (top left slot is 1, slot to the right of it is 2). count Integer - Quantity to pick up. Returns: Nothing I also found this... API PutItemInBag Puts the item on the cursor into the specified bag slot on the main bar, if it's a bag. Otherwise, attempts to place the item inside the bag in that slot. Code: PutItemInBag(n) n Numeric - A value from 20 to 23 where 20 is the rightmost bag (not including backpack) and 23 is the leftmost. However, making a macro might involve some hard-coding, which I am not a big fan of, since you need to specify a 'n' of how many of a specific item to pick up. It's a start I suppose =\ And to answer the question about multiple Macros, yes you can. Code: /click MultiBarRightButton1 (or macro location) Code: /cast Create Ghost /attack Nexus /click MultiBarRightButton1
__________________ Last edited by Nghtmr9999; 05-21-2010 at 08:48 AM. |
| | |
| | #5 | |
| Senior Member | Quote:
I want a macro to call another macro WITHOUT more than ONE macro on an actual button.
__________________ | |
| | |
| | #6 |
| Member Join Date: Apr 2010 Location: houston, tx
Posts: 88
| Isn't the whole reason why blizzard setup up, that you can only have a certain amount of macros because you can't fit to many? Or atleast thats my logic. So are you trying clean up the screen or just can't fit anymore on the screen? |
| | |
| | #7 |
| Super Moderator | I know. But that is the only way to call another macro within another one.
__________________ |
| | |
| | #8 |
| Senior Member | I wonder how Healbot can cast a macro on a Unitframe them without it being on a button. A LUA script must be able to run a macro by name.
__________________ |
| | |
| | #9 | |
| Super Moderator | Quote:
Regardless, as asked/answered here: http://forums.worldofwarcraft.com/th...78358653&sid=1 there is no way to directly call a macro from another one. As for the lua aspect, i'll take a look for you.
__________________ Last edited by Nghtmr9999; 05-21-2010 at 10:05 AM. | |
| | |
| | #10 |
| Senior Member | I use Healbot to cast macros, and it does so without a button at all.... so their has to be some way of calling macros that is completely independent of the bars. You aren't talking to a WoW n00b here Nght... I know all about /Click macros and HealBot hehe
__________________ |
| | |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Quick Question about RAF | Broomba37 | General Discussions | 9 | 01-13-2010 04:05 PM |
| Quick question | Broomba37 | Multiboxing Software | 8 | 11-27-2009 08:31 PM |
| Another RAF quick question... | CAPO | General Discussions | 4 | 08-24-2009 01:50 PM |
| quick question | Zulfur101 | General Discussions | 31 | 07-16-2009 09:25 PM |
| I got a quick question | Bay | General Discussions | 2 | 07-02-2009 01:13 PM |