Page 1 of 1

Best way to check if Im dead?

Posted: Mon Apr 16, 2012 7:28 pm
by spartikus
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 :/

Re: Best way to check if Im dead?

Posted: Tue Apr 17, 2012 12:10 am
by spartikus
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?

Re: Best way to check if Im dead?

Posted: Wed Apr 18, 2012 10:19 pm
by TheDroidUrLookingFor
Wouldn't it just be:

Code: Select all


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

or 

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


Re: Best way to check if Im dead?

Posted: Thu Apr 19, 2012 1:37 am
by dewey2461
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.

Re: Best way to check if Im dead?

Posted: Thu Apr 19, 2012 6:45 am
by drzoon
I use ${Me.Hovering} to trigger my GetRezzed subroutine.

Re: Best way to check if Im dead?

Posted: Thu Apr 19, 2012 9:50 am
by spartikus
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. :)

Re: Best way to check if Im dead?

Posted: Thu Apr 19, 2012 6:38 pm
by htw
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

Re: Best way to check if Im dead?

Posted: Thu Apr 19, 2012 7:10 pm
by dewey2461
Totally missed that Me also gets the spawn info.