Mob HP announcer

Got a cool macro idea? Wanna request a macro? Here is the place for you!

Moderator: MacroQuest Developers

Epsilon
a lesser mummy
a lesser mummy
Posts: 61
Joined: Wed Apr 30, 2003 5:46 pm

Mob HP announcer

Post by Epsilon » Sun Nov 02, 2003 6:11 pm

hi all, was thinking if someone wanted to make a macro that announce mob HP percent to like /gu or /rs every 10% like this
/gu Quarm 90%
/gu Quarm 80%
etc...
/gu Quarm 15%
/gu Quarm 10%
/gu Quarm 5%
and every 1% down to 0

no its not meant for exp groups =)
more for big bad raid mobs with lotsa hp's

i understand if none want to hehe but would be a nifty lil macro for raids :D

koad
Plugins Czar
Posts: 127
Joined: Fri May 16, 2003 8:32 pm

Post by koad » Sun Nov 02, 2003 6:48 pm

Code: Select all

sub main
  /declare lastpct global
  /varset  lastpct 0
  :loop
    /if $target(hp,pct)!=@lastpct {
      /if n $target(hp,pct)>=20 {
        /if n $calc($target(hp,pct)%10)==0 /call sayhps
      } else {
        /if n $calc($target(hp,pct)%5)==0 /call sayhps
        /if n $target(hp,pct)<=5 /call sayhps
      }
    }
    /delay 1
    /if $target()==FALSE /return
  /goto :loop
/return

sub sayhps
  /varset lastpct $target(hp,pct)
  /rsay %t $target(hp,pct)%
/return

Epsilon
a lesser mummy
a lesser mummy
Posts: 61
Joined: Wed Apr 30, 2003 5:46 pm

Post by Epsilon » Mon Nov 03, 2003 7:36 pm

wow thanks koad hehe..cant wait to try this =)

koad
Plugins Czar
Posts: 127
Joined: Fri May 16, 2003 8:32 pm

Post by koad » Mon Nov 03, 2003 7:40 pm

np. lemme know if it works out for you, only tested it for two mobs on a boring ass raid.

Epsilon
a lesser mummy
a lesser mummy
Posts: 61
Joined: Wed Apr 30, 2003 5:46 pm

Post by Epsilon » Mon Nov 03, 2003 7:44 pm

the macro ends when the mob is dead right ?...would be embarassing if you forget to turn it off and the raid starts clearing trash mobs hehe

koad
Plugins Czar
Posts: 127
Joined: Fri May 16, 2003 8:32 pm

Post by koad » Mon Nov 03, 2003 8:02 pm

this macro only announces each unique % number at the intervals one time (using lastpct var as a memory)
this macro ends when the mob dies (no longer on target)
in its exact form you will need to invoke it whenever you want to announce a mobs HPs, and keep mob on target, or it will end.

Epsilon
a lesser mummy
a lesser mummy
Posts: 61
Joined: Wed Apr 30, 2003 5:46 pm

Post by Epsilon » Mon Nov 03, 2003 8:16 pm

wow you are good :!: exactly what i wanted

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 » Mon Nov 03, 2003 10:27 pm

What happens if you lose target?

It looks like you have to keep the mob targetted the whole time.

Rassilon
a lesser mummy
a lesser mummy
Posts: 73
Joined: Thu Sep 04, 2003 6:34 pm

Post by Rassilon » Tue Nov 04, 2003 10:02 am

Dumb question but where would I put this snippet for it to work? I use the genbot.mac atm.

Thanks

User avatar
Slice
a hill giant
a hill giant
Posts: 189
Joined: Wed Oct 30, 2002 2:52 pm

Post by Slice » Tue Nov 04, 2003 8:10 pm

Add it as a new command in personal.inc
Slice

Epsilon
a lesser mummy
a lesser mummy
Posts: 61
Joined: Wed Apr 30, 2003 5:46 pm

Post by Epsilon » Tue Nov 04, 2003 11:39 pm

it works well if mob drops 1% at the time only...for example it skips to announce 70% if mob goes from 71% to 69%..

but i am more than happy with it since our guild only raid potime..thanks alot koad