Page 1 of 1
Champion:getItem(slot)
Posted: Wed Sep 26, 2012 12:14 am
by ScroLL
I am trying to test if a champion has a specific item in any slot. getItem() returns the value for a specific slot. Is there an efficient way for me to check if the champion has the item without running getItem() thirty one times?
Re: Champion:getItem(slot)
Posted: Wed Sep 26, 2012 12:39 am
by Edsploration
If if you had a function to do this in one step, all that function would itself be doing is checking each slot individually.
The Useful Scripts Repository thread is your friend. Look under 1.3) Item and inventory scripts
viewtopic.php?p=31480#p31480
Re: Champion:getItem(slot)
Posted: Wed Sep 26, 2012 12:42 am
by ScroLL
Thanks, I used the search function and didn't see it but forgot to check that thread.