buckeyesfan1
New member
- Joined
- Apr 6, 2006
- RedCents
- 10¢
is there a simple macro that I could use when I take rez that will loot all my stuff? Thanks..
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sub Main
/if (!${Defined[t]}) /declare t int outer 0
/if (!${Defined[loottotal]}) /declare loottotal int outer
/if (!${Defined[lootslot]}) /declare lootslot int outer
/if (!${Defined[lootleft]}) /declare lootleft int outer 0
/target mycorpse
/call Loot
/return
Sub Loot
:corpsepull
/corpse
/if (${Target.Distance}>20) {
/plugin mq2csum
/sumcorpse
/delay 2s
/goto :corpsepull
}
/if (${Target.CleanName.Equal[${Me}'s corpse]}) {
/loot
} else {
/return
}
/delay 5s ${Me.State.Equal[BIND]}
/if (${Me.State.NotEqual[BIND]}) /goto :corpsepull
/varset loottotal 0
:LootLag
/if (${loottotal}!=${Corpse.Items}) {
/varset loottotal ${Corpse.Items}
/delay 1s
/goto :LootLag
}
/if (${loottotal}<=${lootleft}) {
/notify LootWnd DoneButton leftmouseup
/return
}
/varset loottotal ${Math.Calc[${Corpse.Items}-${lootleft}]}
/for lootslot 1 to ${loottotal}
:LootItem
/itemnotify loot${lootslot} rightmouseup
/delay 5 !${Corpse.Item[${lootslot}].ID}
/if (!${Corpse.Item[${lootslot}].ID}) {
/next lootslot
} else {
/goto :LootItem
}
/if (${Math.Calc[${Corpse.Items}-${lootleft}]}>0) /goto :LootLag
:DoneLooting
/notify LootWnd DoneButton leftmouseup
/return