Yeah, I didn't want to get that far into explaining it just yet hehe. The reason that is, is because the ifs check from left to right and if it hits one that is false, it doesn't bother checking any of the others. So, that will let it return the items that were handed in, because the plugin will think that the items were not successfully turned in, I believe. By having them in the order I put them from left to right, it checks that the hand in is correct first, and so no matter what, the return items plugin won't return those items once the check_handin has been verified correct. So, in that case, if they fail to meet the qglobal, it won't reward them, but it also won't return their items.
I am basically just saying what Lillu had already said, but explaining the why of how it works so you can better understand how to write that type of check.
|