Wait4Rez.iss 2.3
Posted: Tue Dec 20, 2005 5:55 pm
Based this on A_Druid_00's Wait4Rez for mq2
I took out the consents, since those can be auto-set.
I took out the consents, since those can be auto-set.
Code: Select all
;Wait4rez.iss v2.2
;Translated for ISXEQ by echoism
;based on A_Druid_00's Wait4Rez.inc
#if ${Script.Filename.Equal[wait4rez]}
function main()
{
call Wait4Rez()
}
#endif
function Wait4Rez()
{
echo Awaiting rez: auto-accepting, and looting my corpse
while !${Window[ConfirmationDialogBox].Open}
WaitFrame
Window[ConfirmationDialogBox].Child[Yes_Button]:LeftMouseUp
while !${Spawn[corpse,${Me.Name}].ID}
WaitFrame
while ${Target.CleanName.NotEqual[${Me}'s corpse]}
Target corpse ${Me.Name}
while ${Me.Spawn.State.NotEqual[BIND]}
{
if (${Target.Distance}>20)
EQExecute /corpse
Wait 50 ${Target.Distance}<20
if ${Target.Distance}>100
return
EQExecute /loot
Wait 50 ${Me.Spawn.State.Equal[BIND]}
}
DeclareVariable loottotal int local
while ${Corpse.Items}
{
loottotal:Set[${Corpse.Items}]
Wait 10 ${loottotal}!=${Corpse.Items}
}
DeclareVariable i int local 0
while ${i:Inc} <= ${loottotal}
{
while ${Corpse.Item[${i}].ID}
{
EQItemNotify loot${i} rightmouseup
Wait 100 !${Corpse.Item[${i}].ID}
}
}
Window[LootWnd].Child[DoneButton]:LeftMouseUp
}