That worked wonderfully. In fact, I ended up combining her other quest into it because this was more efficient.
However, I experimented with different ways to return unwanted items.
Code:
else {
plugin::return_items(\%itemcount);
return 1;
}
This doesn't seem to work within the scope of the newer set-up. In fact, the quest doesn't work at all if this is inserted into the sub event_item.
I tried inserting it after the if argument within the foreach and even after the foreach, but no luck. Is there a different command when using these different arguments?
Something like if itemcount (does not equal?) @items...