fd and mend 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

Midnight
a lesser mummy
a lesser mummy
Posts: 68
Joined: Wed Nov 12, 2003 12:51 pm

fd and mend help

Post by Midnight » Wed Nov 12, 2003 12:54 pm

This is in my :CloserAF for my attack script. The script works perfectly outside of these commands. It mends me even when I'm not below 70 percent. I tried (hp,cur)<5000 (or whatever number).. and it still fires randomly once Mend pops up. Also, FD will randomly trigger way before I reach 20% life. Any idea what might be causing it? TY

Code: Select all

    /if n $char(ability,"Mend")>0 { 
      /if n $char(hp,pct)<70 /doability "Mend" 
    } 
    /if n $char(hp,pct)<20 { 
      /attack off 
      /doability "Feign Death" 
      /end 
    }

User avatar
ap50
a snow griffon
a snow griffon
Posts: 425
Joined: Sun Aug 18, 2002 2:29 pm

Post by ap50 » Wed Nov 12, 2003 4:35 pm

Looks fine to me.. but then it would, I wrote it :)
[color=yellow][size=92][b]Just because you're paranoid, it doesn't mean everyone isn't out to get you![/b][/size][/color]

Midnight
a lesser mummy
a lesser mummy
Posts: 68
Joined: Wed Nov 12, 2003 12:51 pm

Post by Midnight » Wed Nov 12, 2003 5:25 pm

Must be a bug with MQ then. I had to comment out the FD part simply because it fired too often during a fight. I'm assuming you use that script and it works perfectly for you?

Midnight
a lesser mummy
a lesser mummy
Posts: 68
Joined: Wed Nov 12, 2003 12:51 pm

Post by Midnight » Thu Nov 13, 2003 12:19 pm

Can any of the MQ developers take a look at this and see why this would happen? I toyed with the code last night and it's basically flawless.

I encourage other monks to add this code to their attack script and report back on whether or not it fires at the wrong time. I played around with 20%, changing it to 5%, 80%, etc.. and it still fires incorrectly. The only time it works properly is if I make the FD pct 99%.. So the first time you get hit, you FD. But obviously you don't want to FD from the first hit. I added an echo command to report at what percentage you were at when u FD'd (even though its obviously in your hp bar). I can't see anything wrong with the script itself. Could someone else test this out and see if they too are having problems?

Code: Select all

   /if n $char(ability,"Mend")>0 { 
      /if n $char(hp,pct)<70 /doability "Mend" 
    } 
    /if n $char(hp,pct)<20 { 
      /attack off 
      /doability "Feign Death" 
      /look
      /echo "<< $char(hp,pct)% LOW HP - FD >>
      /end 
    }