First one along with 3 other GetInventoryInfo calls is used to check if player has less than 80% of weight used and less than 80% of max items in inventory allowed - means if he has room for quest items which he might get.
The flag one I'm not sure, probably to decide if he should get quest item this time or not. Show more code.
|