Wait4rez

Anything

Anytime!
Joined
Apr 3, 2006
Messages
232
Reaction score
0
Points
0
Location
Chico, Ca.
Is there a newer version of Wait4rez .inc out?

Code:
 |Wait4rez.inc v2.1
Sub Wait4Rez
/echo Awaiting rez: auto-accepting, and looting my corpse
/consent group
/delay 25
/consent raid
/delay 25
/consent guild
:rezmeffs
/delay 600m ${Window[ConfirmationDialogBox].Open}
/if (!${Window[ConfirmationDialogBox].Open}) /goto :rezmeffs
/nomodkey /notify ConfirmationDialogBox Yes_Button leftmouseup
:zoneffs
/delay 5m ${Spawn[${Me}'s corpse].ID}
/target mycorpse
/delay 5s ${Target.ID}==${Spawn[${Me}'s corpse].ID}
/if (${Target.CleanName.NotEqual[${Me}'s corpse]}) /goto :zoneffs
:corpsepull
/if (${Target.Distance}>20) /corpse
/delay 5s ${Target.Distance}<20
/if (${Target.Distance}>100) /return
/loot
/delay 5s ${Me.State.Equal[BIND]}
/if (${Me.State.NotEqual[BIND]}) /goto :corpsepull
/declare loottotal int local
:LootLag
/varset loottotal ${Corpse.Items}
/delay 1s ${loottotal}!=${Corpse.Items}
/if (${loottotal}!=${Corpse.Items}) /goto :LootLag
/declare i int local
/for i 1 to ${loottotal}
:lootagain
/itemnotify loot${i} rightmouseup
/delay 10s !${Corpse.Item[${i}].ID}
/if (${Corpse.Item[${i}].ID}) /goto :lootagain
/next i
/nomodkey /notify LootWnd DoneButton leftmouseup
/return
 
wait4rez

I might be having a problem with wait4rez finding the windows. I'd be interested in a newer version, if somebody has one, please submit it. Mainly for AFK grinding, if i die I want the macro to wait4rez, and pause all bot activity until done... i don't want to take any chance that I'll be doing anything stupid after an afk death.
 
I use AutoRez, and have a portion in my macro which will essentially pause until the rez is taken

Event Triggers:
Code:
#event ImDead          "#*#You have been slain by#*#"
#event ImDead          "Returning to home point, please wait..."
#event ImDead          "#*#Returning to Bind Location#*#"

Declares:
Code:
/declare Camp_Zone int outer ${Zone.ID}

Event:
Code:
Sub Event_ImDead
   /echo I'm dead! Going into sleep mode...
   /if (${Stick.Status.Equal[ON]}) /squelch /stick off
   :DeathSleep
      /doevents
      /delay 5s
      /if (${Me.State.Equal[HOVER]} || ${Zone.ID} != ${Camp_Zone}) /goto :DeathSleep
/return