This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Simple Mailbox Macro
Post Reply
Return to board index
Post by
Googolplex
I need two simple mailbox macros that does the following:
Macro 1: Collects the first items in your mailbox (and only the first).
Macro 2: Sends a specific item to a specific person
For those curious, I have an "Insane" amount of Gordok Ogre Suits (unique items) waiting in my mailbox, and I need to forward them all to a different character, so if there is an easier method than the macros above, feel free to tell me :)
Post by
HighFive
The first one is:/run AutoLootMailItem(1)The second one should be:/run PickupItem(18258) ClickSendMailItemButton(1) SendMail("RecipientName", "BYIM(a.k.a. mail subject text)", "")Though the ClickSendMailItemButton function may not be instantaneous (in which case see "/in").
Post by
Nipah
The first one is:/run AutoLootMailItem(1)The second one should be:/run PickupItem(18258) ClickSendMailItemButton(1) SendMail("RecipientName", "BYIM(a.k.a. mail subject text)", "")Though the ClickSendMailItemButton function may not be instantaneous (in which case see "/in").
1. Your avatar is freaking creepy. Excellent choice.
2. I'm stealing the mail macro, for personal use. Would there be a way to get it to grab all the mail? (Not that I don't mind hitting the button more than once, but well... if it can, its all the better)
edit:
I saw some mention of AutoLootMailItem(index)... I'll give that a go on some junk mail and see what it does... otherwise, I'll see if GetInboxNumItems() and some finesse works.
Post by
HighFive
1. Thanks. I just saw someone using it and LOLed (or should that be LedOL) very hard for some reason. Just had to use it. I mean it's a WC3 knight firin' his lazer(s)!
2. Ideally you could just loop it:/run for i = 1, GetInboxNumItems() do AutoLootMailItem(i) endBut I've never coded anything related to the mailbox and judging by the mail addons I've used a loop without some sort of delay wouldn't work.
I suggest trying an addon for this. If I remember correctly
Better Inbox
is pretty good.
Post by
Nipah
1. Thanks. I just saw someone using it and LOLed (or should that be LedOL) very hard for some reason. Just had to use it. I mean it's a WC3 knight firin' his lazer(s)!
2. Ideally you could just loop it:/run for i = 1, GetInboxNumItems() do AutoLootMailItem(i) endBut I've never coded anything related to the mailbox and judging by the mail addons I've used a loop without some sort of delay wouldn't work.
I suggest trying an addon for this. If I remember correctly
Better Inbox
is pretty good.
Nah, the 1-shot works just fine... I was just being lazy/greedy/etc.
I don't really get enough mail on my banker to need to automate it that much, so a simple macro I can click away at works for me.
Though I will probably check out the addon just for S&Gs...
Post by
ignis86
2. I'm stealing the mail macro, for personal use. Would there be a way to get it to grab all the mail? (Not that I don't mind hitting the button more than once, but well... if it can, its all the better)
Postal?
Post by
Googolplex
Thanks for the help all :)
Btw, I exchanged 'PickupItem(18258)' with 'PickupContainerItem(0,1)' as I could not get the first one to work, any idea why ?
Post by
pelf
(or should that be LedOL)
I actually write it as "lolled" if I'm putting it into past tense.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.