Whats wrong here?

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

mackster
a ghoul
a ghoul
Posts: 95
Joined: Mon Sep 09, 2002 3:02 pm

Whats wrong here?

Post by mackster » Sat Apr 17, 2004 1:05 pm

I'm trying to insert some additional lines to stick.mac that will allow me to synchronize better with a genbot toon.

The idea is to have my melee char call in snare commands and nuke commands. The snare part I have working well now, but I am having problems with the autonuke.

Code: Select all

      /if $target()==FALSE { 
      /return
   } else {
      /if n $target(hp,pct)<90 
      /delay 10s
      /call nuke } 

      /if n $target(hp,pct)<20 {
      /return
   } else { 
      /if n $target(hp,pct)<90 
      /delay 10s
      /call nuke } 


I realize this is probably VERY ghetto and ugly, but my scripting skill is sux.

What is happening is the melee calls in another nuke after the target is dead, or when its below 20%.

Is there a better way to do this, or even better, have it call in a fixed # of nukes per mob?

Thanks for any assistance.

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Post by wassup » Sat Apr 17, 2004 2:22 pm

If I understand you right:

New system:

Code: Select all

:Recheck
/newif (!${Target.ID}||${Target.PctHPs}<20) /return 

/newif ${Target.PctHPs}<90 { 
      /delay 10s 
      /call nuke
} 
/goto :Recheck
Old system:

Code: Select all

:Recheck
/if $target()==FALSE /return
/if n $target(hp,pct)<20) /return 

/if n $target(hp,pct)<90 { 
      /delay 10s 
      /call nuke
} 
/goto :Recheck

mackster
a ghoul
a ghoul
Posts: 95
Joined: Mon Sep 09, 2002 3:02 pm

Post by mackster » Sat Apr 17, 2004 2:52 pm

ok thanks, i think i can figure it out from here, just going to have to read up some more.