tradertesla
Member
- Joined
- Dec 21, 2005
- RedCents
- 80¢
I get a CTD right after looting the first item. Does anyone see any obvious errors here? My next step is to insert several additional delays to make sure it isn't one command stepping on another. I execute this with /ghost on, don't know if that is relevant.
Rich (BB code):
|---------------------------------------------------------------------
|SUB: LootAll
|---------------------------------------------------------------------
Sub LootAll
/declare LootSlot int inner 0
/declare LootTotal int inner 0
/loot
/delay 5
/if (!${Corpse.Items}) {
/echo No Loot on this one...
/notify LootWnd DoneButton leftmouseup
/delay 1s
/return
}
/varset LootTotal ${Corpse.Items}
/for LootSlot 1 to ${LootTotal}
/itemnotify loot${LootSlot} leftmouseup
/delay 5
/echo Looted a ${Cursor.Name}
/autoinventory
/autoinventory
/delay 5
/next LootSlot
/delay 5
/notify LootWnd DoneButton leftmouseup
/delay 2
/return