Best way to identify a death event?

Need help running MacroQuest2? Ask your questions about how to get things to work on your computer.

Moderator: MacroQuest Developers

spartikus
a lesser mummy
a lesser mummy
Posts: 55
Joined: Mon Apr 02, 2012 6:51 pm

Best way to identify a death event?

Post by spartikus » Tue Apr 10, 2012 9:24 pm

does the "YOU HAVE BEEN SLAIN" still work?

Trying to set up my auto accept rez and just want a reliable death event to fire it off from..

Also have a problem I have noticed a couple of times when the master character dies looting a corpse (mobs respawn righ tin the middle of the loot cycle) the macro wont exit the loop event. Probably because it's waiting for the cursor to pick up something..

Any thoughts on a death event or trigger to active the auto accept rez?

Maskoi

Re: Best way to identify a death event?

Post by Maskoi » Tue Apr 10, 2012 10:03 pm

#Event ImDead "You have been slain by#*#"
#Event ImDead "You died."

spartikus
a lesser mummy
a lesser mummy
Posts: 55
Joined: Mon Apr 02, 2012 6:51 pm

Re: Best way to identify a death event?

Post by spartikus » Tue Apr 10, 2012 10:20 pm

Thanks for the speedy response Mas. I'll fire them up.

spartikus
a lesser mummy
a lesser mummy
Posts: 55
Joined: Mon Apr 02, 2012 6:51 pm

Re: Best way to identify a death event?

Post by spartikus » Mon Apr 23, 2012 3:17 pm

For anyone working on this in the future there are a couple things I did to make this work..

- I added in a "Hover check" to my combat loop to see if I've been slain
- I had the hover check call a "Waiting for res" subroutine that puts the macro into a state of checking for the rez window
- I added an event to the waiting for rez loop that is triggered by the "returning to Bind Location" message.
- I added in a delay of xxx seconds (5-10 minutes whatever) once you've returned to bind point at which time if a rez screen hasn't been offered the char reports it is logging off to the group.

I haven't debugged and tested the script thoroughly but it is definitely working when I've had a macro die. There is a wait4rez VIP script so I would strongly urge people to get VIP status and use that but the logic above is pretty simple to implement if you want to hashout your own solution.

Enjoy :)