Nuke Macro Help

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

Yalp
a ghoul
a ghoul
Posts: 90
Joined: Thu Dec 05, 2002 6:28 pm

Nuke Macro Help

Post by Yalp » Thu Nov 06, 2003 5:16 pm

Basicly this is a nuke macro that auto casts 1st spell gem once, 2nd spell gem twice and loops back at the 1st spell gem casting over and over.

1st spell gem varies in cast time but 2nd spell gem is always 2.0 casting time

Code: Select all

:loop
/cast 1
/cast 2
/cast 2
/goto loop
spell gem 1 cast time varies depending on buffs / what spell i have memd i've come up with something like

Code: Select all

#turbo
#event MobDead "You must first select a target for this spell!"

Sub Main
   
   :nuke
   /doevents
   /delay 5
   /if $char(casting)==TRUE /goto :nuke
   /cast 1
  
   :concussion1
   /doevents
   /delay 5
   /if $char(casting)==TRUE /goto :concussion1
   /cast 2


   :concussion2
   /doevents
   /delay 5
   /if $char(casting)==TRUE /goto :concussion2
   /cast 2
 /goto :nuke

/return

Sub Event_MobDead
/endmacro		


/return 
but, the 3 seccond refresh after spell casting is screwing up this macro from working, is there a command like $gem(active) ? or any other way to do this so its not constantly preforming the casting check
Because i wouldn't have it any other way

LordGiddion
a snow griffon
a snow griffon
Posts: 352
Joined: Sat Sep 13, 2003 6:12 pm
Contact:

Post by LordGiddion » Thu Nov 06, 2003 5:44 pm

/if $char(gem,"concussion")>0 /cast Concussion

User avatar
Kint
a hill giant
a hill giant
Posts: 208
Joined: Thu Mar 13, 2003 3:36 am

Post by Kint » Thu Nov 06, 2003 11:11 pm

think this might work

Code: Select all

#turbo
/declare nuke global


Sub Main
/echo 1:"Strike of Solusek"; 2:"Agnarr's Thunder"; 3:"Lure of Ro"
/if n @Param0==1  /varset nuke "Strike of Solusek"
else /if n @Param0==2  /varset nuke "Agnarr's Thunder"
else /if n @Param0==3  /varset nuke "Lure of Ro"
/echo starting to nuke %T with @nuke
:nuke
/cast @nuke
/delay $calc($spell(@nuke,casttime)+1)s
/if n $target(hp,cur) > 30 {
/cast concussion
/delay $calc($spell(concussion,casttime)+1)s}
/cast concussion
/delay $calc($spell(concussion,casttime)+1)s
/if $target()=="TRUE" /goto :nuke
/return