In real tibia (atleast leaked 7.7) items are placed in order of the loot items defined in the .mon files. There are exceptions that always go into bag such as shields, weapons, items with certain flags (magical rings) etc.
Hydra loot priority:
Inventory = {(3079, 1, 1), // boots of haste...