Got a cool macro idea? Wanna request a macro? Here is the place for you!
Moderator: MacroQuest Developers
-
se7en
- orc pawn

- Posts: 21
- Joined: Sun Dec 14, 2003 6:51 pm
Post
by se7en » Sun Dec 14, 2003 7:31 pm
What I'm trying to do is write something that will automatically cast maelin's leggings instantly after any nuke lands by me... It's a 2 second cast that fits perfectly in-between recast, so there is no reason I shouldn't cast it, I don't want to automate the nuking itself... Just have it watch for me to do non-melee damage to a mob then /cast item "Maelin's Leggings of Lore" immediately after.
I tried a few things from other scripts, but my problem is keeping the macro running... it just finishes immediately. Any help on a macro of this type would be very appreciated

-
Raebis
- a ghoul

- Posts: 81
- Joined: Fri Dec 12, 2003 6:23 am
Post
by Raebis » Sun Dec 14, 2003 7:56 pm
Code: Select all
#Event Nuked "You have been hit by non-meelee" |Or whatever shows up when u get nuked
Sub Main
:loop
/doevents
/goto :loop
/return
Sub Event_Nuked
/cast item "Maelin's Leggings of Lore"
/return
Somethin like that should work
Always say what you want to say. Because those who mind, don't matter. And those who matter, don't mind.
-
Dniper
- a lesser mummy

- Posts: 71
- Joined: Tue Nov 25, 2003 2:54 pm
Post
by Dniper » Sun Dec 14, 2003 8:00 pm
If all your problem is keeping it running try Looping it.
:Loop
*STUFF HERE*
/doevents
/goto :Loop
Just put the area that is doing the checks (/if statments) sandwiched between it.
Sorry though, I'm still trying to learn creating macros myself so I can't offer you much more without spending a lot of time doing trial and error.
I don't think your name is actually listed when it says so and so was hit by non-melee damage so I don't know how you could use an Event to watch for it without it going off for others hit by non melee, unless you turned that off under filter mabye?. Do you use just a small set of nukes? You could make it wait for how long the nuke takes to cast and then initiate.
-
ml2517
- a grimling bloodguard

- Posts: 1216
- Joined: Wed Nov 12, 2003 1:12 am
Post
by ml2517 » Sun Dec 14, 2003 8:05 pm
Hmm if I'm understanding you correctly you want to cast the leggings (that reduce your current aggro with the mob) after *you* cast a nuke on the mob. If that is the case something like this might work.
Code: Select all
#turbo 20
Sub Main
/declare PrevMobHP local
/varset PrevMobHP 0
:Loop
/if $target()==TRUE /if $char(casting)==TRUE {
/varset PrevMobHP $target(hp,pct)
} else {
/if n @PrevMobHP>$target(hp,pct) {
/cast item "Maelin's Leggings of Lore"
/delay 23
}
}
/delay 1
/goto :Loop
/return
-
psychotik
- a ghoul

- Posts: 112
- Joined: Mon Oct 06, 2003 3:48 am
Post
by psychotik » Sun Dec 14, 2003 8:18 pm
Code: Select all
#event Nuke " points of non-melee damage."
Sub Main
:loop
/doevents
/goto :loop
/return
Sub Event_Nuke
/cast item "Maelin's Leggings of Lore"
/delay 3s
/return
-
se7en
- orc pawn

- Posts: 21
- Joined: Sun Dec 14, 2003 6:51 pm
Post
by se7en » Mon Dec 15, 2003 12:10 am
Wow thanks for the replies guys, I ended up using:
Code: Select all
#event Nuke "Playersname hit "
#event Summon "You have been summoned!"
Sub Main
:loop
/doevents
/goto :loop
/return
Sub Event_Nuke
/cast item "Maelin's Leggings of Lore"
/delay 3s
/return
Sub Event_Summon
/cast item "Maelin's Leggings of Lore"
/delay 3s
/return