Page 1 of 2
MM Macro
Posted: Tue Jan 03, 2006 7:37 pm
by bobbo124
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 =)
Re: MM Macro
Posted: Tue Jan 03, 2006 8:44 pm
by fearless
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.
Posted: Tue Jan 03, 2006 9:37 pm
by bobbo124
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.
Posted: Tue Jan 03, 2006 11:36 pm
by Lord_Vyper
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.
Posted: Wed Jan 04, 2006 12:36 am
by bobbo124
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
Posted: Wed Jan 04, 2006 3:47 am
by DigitalMocking
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
Posted: Wed Jan 04, 2006 4:45 am
by bobbo124
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
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
Posted: Wed Jan 04, 2006 6:48 am
by yetanotheruser
Sub Main
:loopstart
/if (${Spawn[npc "a dragorn" radius 50].ID}) /docommand STUFF I WANT
/goto :loopstart
/return
Posted: Wed Jan 04, 2006 4:52 pm
by bobbo124
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
Posted: Wed Jan 04, 2006 10:51 pm
by bobbo124
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

Posted: Thu Jan 05, 2006 2:52 am
by yetanotheruser
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
Posted: Thu Jan 05, 2006 5:22 pm
by bobbo124
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

mm macro
Posted: Thu Jan 05, 2006 5:38 pm
by EQwhat
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.
Posted: Thu Jan 05, 2006 5:39 pm
by DigitalMocking
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

${Me.Invis}
Posted: Thu Jan 05, 2006 8:40 pm
by bobbo124
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