If opening for example any kind of Clam and if you dont have free slots and still trying to open it system should tell - not enough free slots and NOT open Clam. Currently even if you dont have free slots Clam opens and disappears from server and doesnt give you any loot.
WorldSession::HandleUseItemOpcode
Checking correct datas, checking for player(at User->CanUseItem) and checking for environment(combat, area, etc);
Create spell.
Cast Spell
Apply SpellEffect SPELL_EFFECT_CREATE_RANDOM_ITEM (create some items of LootTemplate)
Remove item at Spell::TakeCastItem()
Create Loot
Fill Loot at Player::AutoStoreLoot
Checking whether player get new items at Player::CanStoreNewItem
If player can not store the loot, it destroys
Items such as Clams (List of Clams: http://www.wowwiki.com/Clam )
Small Barnacled Clam Thick-shelled Clam Soft-shelled Clam Big-mouth Clam Jaggal Clam Darkwater Clam Brooding Darkwater Clam Giant Darkwater Clam
If opening for example any kind of Clam and if you dont have free slots and still trying to open it system should tell - not enough free slots and NOT open Clam. Currently even if you dont have free slots Clam opens and disappears from server and doesnt give you any loot.