Macro request

Status
Not open for further replies.

gladimus

New member
Joined
Jan 3, 2006
Messages
344
Reaction score
0
Points
0
Hey Taron, i got one for ya!!

Write me a macro that will call mobs % from 99 to 1%. Would be handy for events like Jelvan etc. Maybe in /gu or /rs.

Sounds ez but i know you can figure something out.
 
gladimus said:
Hey Taron, i got one for ya!!

Write me a macro that will call mobs % from 99 to 1%. Would be handy for events like Jelvan etc. Maybe in /gu or /rs.

Sounds ez but i know you can figure something out.
I'd assume this would work...
Sub Main
:loop
/rs ${Target.Name} is at ${Target.PctHPs}% HP.
/if (!${Target.ID}) /endmac
/goto :loop
/endmac
/return
 
That's a close start Aibo. However that will spam the raid window with rapid fire %'s. In under 2 seconds the entire chat window backscroll will be filled with it. You need to check that the targets HP has changed since the last loop before reannouncing.

Make sure you have a target before running this

Code:
Sub Main
/declare i int local ${Target.PctHPs}
/declare j int local ${Target.ID}

/if (!${Target.ID}) {
   /echo Select a target before running
   /squelch /end
}

/echo Announcing health of --${Target.CleanName}--

:loop
   /if (${j}!=${Target.ID}) /goto :loop
   /if (${i}>${Target.PctHPs} && ${j}==${Target.ID}) {
     /rs ${Target.CleanName} - ${Target.PctHPs}%
     /varset i ${Target.PctHPs}
   }
   /if (${Spawn[${j}].Type.Equal[corpse]}) {
     /echo Mob is dead
     /squelch endmacro
   }
/goto :loop
/squelch /end
 

Attachments

  • Percent.mac
    546 bytes · Views: 3
Last edited:
Maybe have it so that you could be like /mobannounce "Jevlan" "5" where it only tracks the mob you specify and craps out a message every 5% and when mob = corpse endmac you can also make it so that instead of specifyin a target you could instead make it so you had to have the target selected before starting the macro. This should reduce spam give you a bit more control and variety so that it doesn't appear so animated. Just need to have the proper checks in place.
 
I tested this macro after I posted it and noticed most of those problems. However after fixing it the board was down so I couldn't update my post. It now has most those things, except the 5%.

I'm currently building a macro that's going to eat up most my day, but if the original poster wants the 5% thing too I'll take a few minutes and tack it in there. If not, I'll get it done this evening sometime.
 
Taron said:
That's a close start Aibo. However that will spam the raid window with rapid fire %'s. In under 2 seconds the entire chat window backscroll will be filled with it. You need to check that the targets HP has changed since the last loop before reannouncing.

Make sure you have a target before running this

Code:
Sub Main
/declare i int local ${Target.PctHPs}
/declare j int local ${Target.ID}

/if (!${Target.ID}) {
   /echo Select a target before running
   /squelch /end
}

/echo Announcing health of --${Target.CleanName}--

:loop
   /if (${j}!=${Target.ID}) /goto :loop
   /if (${i}>${Target.PctHPs} && ${j}==${Target.ID}) {
     /rs ${Target.CleanName} - ${Target.PctHPs}%
     /varset i ${Target.PctHPs}
   }
   /if (${Spawn[${j}].Type.Equal[corpse]}) {
     /echo Mob is dead
     /squelch endmacro
   }
/goto :loop
/squelch /end
Duh >< I forgot to add a delay... and all that other special stuff...
 
Status
Not open for further replies.