Best way to check if Im dead?

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

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

Best way to check if Im dead?

Post by spartikus » Mon Apr 16, 2012 7:28 pm

I have been trying to read the various auto accept rez scripts.. doesnt seem to challenging but somethign that is eluding me righ tnow is the "best" way to check if we should be watching for a rez. Dont want to just accept all the time and have someone TL me.

I was thinking something like me.equals[dead] or me .state.dead but my perusals so far are not turnign much up.

Sorry if this is obvious :/

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

Re: Best way to check if Im dead?

Post by spartikus » Tue Apr 17, 2012 12:10 am

The route Im thinking of going right now is use the hover state to trigger a call to the wait for rez.. then cycle through some timer to determine if Im going to ge ta rez in a reasonable ammount of time and if not log off..

How is it sounding so far?

TheDroidUrLookingFor
orc pawn
orc pawn
Posts: 27
Joined: Fri Mar 16, 2012 11:06 pm

Re: Best way to check if Im dead?

Post by TheDroidUrLookingFor » Wed Apr 18, 2012 10:19 pm

Wouldn't it just be:

Code: Select all


/if (${Me.Dead}) /call RezSubroutine

or 

/if (${Me.State.Equal[Dead]}) /call RezSubroutine


dewey2461
Contributing Member
Contributing Member
Posts: 1759
Joined: Sun Apr 17, 2005 1:53 am

Re: Best way to check if Im dead?

Post by dewey2461 » Thu Apr 19, 2012 1:37 am

There is no Me.State and searching the TLO Me -> has Me.CombatState which from the wiki : Returns one of the following: COMBAT, DEBUFFED, COOLDOWN, ACTIVE, RESTING

So what I would do is try to figure out which window you get when your hovering and check to see if it is open using the TLO Window. You can get a list of them in game or open explorer and look over them in your EQ -> uifiles folder.

drzoon
a hill giant
a hill giant
Posts: 239
Joined: Tue May 04, 2004 5:38 pm

Re: Best way to check if Im dead?

Post by drzoon » Thu Apr 19, 2012 6:45 am

I use ${Me.Hovering} to trigger my GetRezzed subroutine.

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

Re: Best way to check if Im dead?

Post by spartikus » Thu Apr 19, 2012 9:50 am

Thanks for weighing in guys.. the me.hovering appears to be the most accurate way of capturing it. I'll just have to put an "Am I hovering" sub routine in and call it from several diff areas so that I don't miss the rez window due to a combat loop or something. I've noticed that when I am dead but in a group if the group is still in combat and I'm checking for Extended targets it continues my combat loop while I'm waiting to respawn.

Best solution appears to be an "am I hovering" sub routine and I will call it as a death check from all over the place.. If true trigger the waiting for rez and auto accept.

Will do some testing this weekend. :)

User avatar
htw
a grimling bloodguard
a grimling bloodguard
Posts: 512
Joined: Wed Feb 18, 2004 8:30 pm
Location: Albuquerque, NM USA
Contact:

Re: Best way to check if Im dead?

Post by htw » Thu Apr 19, 2012 6:38 pm

What ya mean there is no Me.State? Sure there is. It's inherited from spawn. ;) Although, for a PC (yourself), since you either have the respawn box, or are actually 'alive', then I'd expect you would want to check State as HOVER, which you just as well should do Me.Hovering, so same thing.

htw

dewey2461
Contributing Member
Contributing Member
Posts: 1759
Joined: Sun Apr 17, 2005 1:53 am

Re: Best way to check if Im dead?

Post by dewey2461 » Thu Apr 19, 2012 7:10 pm

Totally missed that Me also gets the spawn info.