View Single Post
  #24  
Old 02-24-2013, 01:37 AM
Kingmen30264
Hill Giant
 
Join Date: Sep 2006
Posts: 112
Default

Quote:
Originally Posted by c0ncrete View Post
you're wanting to use something more like this, where @findThese is a list of itemIDs you are looking for and @lookIn is a lost of slotIDs you want to look in.

Code:
foreach my $findThis (@findThese) {
    foreach my $slotID (@lookIn) {
        if ($client->GetItemIDAt($slotID) == $findThis) {
            $client->DeleteItemInInventory($slotID);
        }
    }
}
but then you probably also want to be aware of items in a stack as well.
Yeah, I was thinking of adding in $itemcount to one of the lines to account for that.
Reply With Quote