ShadowInTheD
Active Member
- Reaction score
- 12
How do you detect if there is no item in a slot?
local integer i = 0
loop
exitwhen i == 5
if (UnitItemInSlot(<UNIT>, i + 1) == null) then
//ACTIONS
endif
set i = i + 1
endloop
You might have to play around with the "i + 1" part .
And no problem ;
Glad to help!
//
if (UnitItemInSlot(<UNIT>, <SLOT>) == null) then
//ACTIONS
endif
Mine does start at 0 and end at 5 .
Ehh .You might have to play around with the "i + 1" part .
Ehh, that only checks one slot .
I'd rather check all 6.
It takes up like, 0.001 more memory .