Trying to combine 2 macros

Joined
Jan 14, 2010
Messages
127
Reaction score
1
Points
16
Age
37
So I have 2 macros I'm trying to combine right now... One causes my mage to auto-pet attack nearest npc every 30 seconds. The other makes my mage buff its pet every 15 minutes... I want to combine these two so that my mage will buff its pet every 15 minutes and do the target nearest npc / pet attack command every 30 seconds... Can't figure out how to combine 2 macros with different timers though... Any help is much appreciated!:

Macro 1: Targets nearest npc and hits pet attack hotkey
sub Main
:loop
{
/keypress e
/delay 1s
/keypress 2
/delay 30s
}
/goto :loop
/return

Macro 2: Buffs my pet every 15 mins
:loop
{
/target pet
/delay 1s
/keypress 9
/delay 900s
}
/goto :loop
/return
 
Here, I didn't test it. There is certainly better ways at doing everything in this macro. I'd try and get rid of /keypress commands and turn them into "/target npc" or "/pet attack" commands. That /delay 30s really needs to go too as macro will do nothing in those 30 seconds. It should be turned into a variable like I've done with BuffTimer.

Code:
Sub Main
/declare BuffTmer	timer outer	0
:loop
/if !${BuffTimer} /call PetBuff
/keypress e
/delay 1s
/keypress 2
/delay 30s
/goto :loop


Sub PetBuff
/target pet
/delay 1s
/keypress 9
/varset BuffTimer 900s
/return
 
Here, I didn't test it. There is certainly better ways at doing everything in this macro. I'd try and get rid of /keypress commands and turn them into "/target npc" or "/pet attack" commands. That /delay 30s really needs to go too as macro will do nothing in those 30 seconds. It should be turned into a variable like I've done with BuffTimer.

Code:
Sub Main
/declare BuffTmer	timer outer	0
:loop
/if !${BuffTimer} /call PetBuff
/keypress e
/delay 1s
/keypress 2
/delay 30s
/goto :loop


Sub PetBuff
/target pet
/delay 1s
/keypress 9
/varset BuffTimer 900s
/return

Got it working, thanks man. I will be improving it over time, just wanted something immediate to hold my camp down in case I miss a spawn or something due to work.