MM Macro

Have a macro idea but not sure where to start? Ask here.

Moderator: MacroQuest Developers

bobbo124
orc pawn
orc pawn
Posts: 17
Joined: Tue Jan 03, 2006 4:18 pm
Contact:

MM Macro

Post by bobbo124 » Tue Jan 03, 2006 7:37 pm

Ive started a macro for a fairy monster mission but im requesting 1 thing, if someone knows the code to make them or tips for me would be great =)

i need help writing a macro, if possible, that makes me use 2 consecutive hotbuttons when a certain mob comes within a certain radius of my character and another hotbutton when the mob leaves that radius

if any of those macros are possible or if u have tips on writing them it would be greatly appreciated. thanks =)

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Re: MM Macro

Post by fearless » Tue Jan 03, 2006 8:44 pm

bobbo124 wrote:Ive started a macro for a fairy monster mission but im requesting 1 thing, if someone knows the code to make them or tips for me would be great =)

i need help writing a macro, if possible, that makes me use 2 consecutive hotbuttons when a certain mob comes within a certain radius of my character and another hotbutton when the mob leaves that radius

if any of those macros are possible or if u have tips on writing them it would be greatly appreciated. thanks =)
One post wasn't enough? At least you didn't ask for warp in this one.
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]

bobbo124
orc pawn
orc pawn
Posts: 17
Joined: Tue Jan 03, 2006 4:18 pm
Contact:

Post by bobbo124 » Tue Jan 03, 2006 9:37 pm

removed other post
accidentally submitted it before i was ready

all i want to know is if there is a macro to make u press a hotbutton when a mob gets within a certain radius of you.

Lord_Vyper
a hill giant
a hill giant
Posts: 169
Joined: Sat Sep 25, 2004 1:57 am

Post by Lord_Vyper » Tue Jan 03, 2006 11:36 pm

bobbo124 wrote: all i want to know is if there is a macro to make u press a hotbutton when a mob gets within a certain radius of you.
Yes.
Now go away.

bobbo124
orc pawn
orc pawn
Posts: 17
Joined: Tue Jan 03, 2006 4:18 pm
Contact:

Post by bobbo124 » Wed Jan 04, 2006 12:36 am

alright, ive been searching all over this site for hours for some code relating to spawns entering a radius and i have found nothing. if anyone has a link or a sample of code for this would be awesome

DigitalMocking
a grimling bloodguard
a grimling bloodguard
Posts: 620
Joined: Mon Apr 04, 2005 5:53 pm

Post by DigitalMocking » Wed Jan 04, 2006 3:47 am

bobbo124 wrote:alright, ive been searching all over this site for hours for some code relating to spawns entering a radius and i have found nothing. if anyone has a link or a sample of code for this would be awesome
Read the Manual.

I'll get you started...

/if (${Spawn[npc "a dragorn" radius 50].ID}) /docommand STUFF I WANT

bobbo124
orc pawn
orc pawn
Posts: 17
Joined: Tue Jan 03, 2006 4:18 pm
Contact:

Post by bobbo124 » Wed Jan 04, 2006 4:45 am

yea ive read it alot
so far ive come up with

/docommand ${If[${NearestSpawn[witch].Distance}<40,/attack off /doability "hide",/attack on]}

i feel pretty proud :P

but now i have to figure out how to make it continually run. if it will then the mobs cant get near me. i dont quite understand the #event and how those work, if u have any clues :)

your line is probably better tho

yetanotheruser
a lesser mummy
a lesser mummy
Posts: 48
Joined: Sun Nov 02, 2003 5:35 pm

Post by yetanotheruser » Wed Jan 04, 2006 6:48 am

Sub Main
:loopstart
/if (${Spawn[npc "a dragorn" radius 50].ID}) /docommand STUFF I WANT
/goto :loopstart
/return

bobbo124
orc pawn
orc pawn
Posts: 17
Joined: Tue Jan 03, 2006 4:18 pm
Contact:

Post by bobbo124 » Wed Jan 04, 2006 4:52 pm

1. would that make me continue attacking what i was when the mob leaves that radius?

or.. 2. would:

Sub Main
:loopstart
/if (${Spawn[npc "a witch lamp" radius 50].ID}) {
/attack off
/doability "hide"
}
/if (!${Spawn[npc "a witch lamp" radius 50].ID}) /attack on
/goto :loopstart
/return

make it to where it would continue attacking what i was

bobbo124
orc pawn
orc pawn
Posts: 17
Joined: Tue Jan 03, 2006 4:18 pm
Contact:

Post by bobbo124 » Wed Jan 04, 2006 10:51 pm

alright ive been at this for hours now and i cant come up with anythign that seems to work. Im trying to attack 1 particular mob, while avoiding roaming wisps by hiding when they come within a certain radius, and resume attacking when the roamers leave that radius. Ive gotten to the point that i stop attacking and hide when the mob comes within range, and i believe it will resume attacking when it leaves, but it immediately comes out of hide because it cycles through again, im not getting how to make it not do /doability "Hide" if i am already hidden. This first clip is the one that comes out of hide as soon as it goes into hide, and the second one is the result of all my research, seems to kind of work, ill go into hide and come out of it, but it doesnt work most of the time saying i have moved and are no longer hidden, and it spams stuff int the MQ box. Its probably the shittiest way to make this macro but its all i can come up with. any help would be greatly appreciated.

1=====================================

Sub Main
:loopstart
/if (${Spawn[npc "a witch lamp" radius 50].ID}) {
/attack off
/doability "hide"
}
/if (!${Spawn[npc "a witch lamp" radius 50].ID}) /attack on
/goto :loopstart
/return


2=================================

Sub Main
:loopstart
/if (${Spawn[npc "witch" radius 75].ID}) && ${Me.AbilityReady[Hide]} {
/attack off
/doability "Hide"
/goto :hide
} else (!${Spawn[npc "witch" radius 50].ID}) /attack on
/goto :loopstart
/return


:hide
/if (!${Spawn[npc "witch" radius 75].ID}) {
/attack on
/goto :loopstart
} else {
/delay 2s
/goto :hide
}
/return



pretty bad huh

if anyone can help me with this macro or tell me how to fix what i have i would really appreciate it, im tryin to learn, pretty hard without some help :?

yetanotheruser
a lesser mummy
a lesser mummy
Posts: 48
Joined: Sun Nov 02, 2003 5:35 pm

Post by yetanotheruser » Thu Jan 05, 2006 2:52 am

Try something like this (didn't test it though)

Code: Select all

Sub Main
:loopstart
if (!${Spawn[npc witch radius 75].ID}) {
/attack on
/delay 30s ${Spawn[npc witch radius 75].ID}
/attack off
/goto :loopstart
}
/if (${Spawn[npc witch radius 75].ID}) {
:hide
/if (${Me.AbilityReady["Hide"]}) {
/doability Hide
/delay 20s ${Me.AbilityReady["Hide"]}
}
/if (${Me.AbilityReady["Hide"]}) /goto :hide
}
/goto :loopstart
/return

bobbo124
orc pawn
orc pawn
Posts: 17
Joined: Tue Jan 03, 2006 4:18 pm
Contact:

Post by bobbo124 » Thu Jan 05, 2006 5:22 pm

thanks man, it seems to work pretty well, but, after 20 seconds if the mob is still in range, it clicks hide again, and the mob attacks me. if anyone knows the ${Me.State.Equals[????]} for when im in HIDE then i think i can fix it. thanks again that macro helped me alot :D

EQwhat
a lesser mummy
a lesser mummy
Posts: 57
Joined: Sat Jun 18, 2005 6:55 pm
Location: UK

mm macro

Post by EQwhat » Thu Jan 05, 2006 5:38 pm

I also like the sound of a macro for this. I see your just doing basic stuff not actually making it walk/run jump around the corners to the chest. A macro that copies another character might have been better for this. just my opinion.

DigitalMocking
a grimling bloodguard
a grimling bloodguard
Posts: 620
Joined: Mon Apr 04, 2005 5:53 pm

Post by DigitalMocking » Thu Jan 05, 2006 5:39 pm

bobbo124 wrote:thanks man, it seems to work pretty well, but, after 20 seconds if the mob is still in range, it clicks hide again, and the mob attacks me. if anyone knows the ${Me.State.Equals[????]} for when im in HIDE then i think i can fix it. thanks again that macro helped me alot :D
${Me.Invis}

bobbo124
orc pawn
orc pawn
Posts: 17
Joined: Tue Jan 03, 2006 4:18 pm
Contact:

Post by bobbo124 » Thu Jan 05, 2006 8:40 pm

ok. im stumped. this seems to work just fine, but somehow the mobs see through my hide like im not hidden. it shows that im hidden, and it says that im hidden. they just come up and hit me. any ideas?

Sub Main
:loopstart
/if (!${Spawn[npc witch radius 50].ID}) {
/attack on
/delay 30s ${Spawn[npc witch radius 50].ID}
/attack off
/goto :loopstart
}
/if (${Spawn[npc witch radius 50].ID}) {
:hide
/if (${Me.Invis}) {
/delay 10
/goto :loopstart
} else {
/doability Hide
/delay 5s
/goto :hide
}
/goto :loopstart
/return