mangosR2 / mangos

Production (stable and testing) versions of current mangosR2 v2 server (World of Warcraft: Wrath of the Lich King, 3.3.5a client).
http://mangosr2.2x2forum.com/
GNU General Public License v2.0
175 stars 77 forks source link

Bug with items such as Big-Mouth Clam #904

Open Dantes777 opened 12 years ago

Dantes777 commented 12 years ago

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.

Romman commented 12 years ago

Current Situation. When you use item:

  1. WorldSession::HandleUseItemOpcode Checking correct datas, checking for player(at User->CanUseItem) and checking for environment(combat, area, etc); Create spell.
  2. Cast Spell Apply SpellEffect SPELL_EFFECT_CREATE_RANDOM_ITEM (create some items of LootTemplate) Remove item at Spell::TakeCastItem()
  3. 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

I think for solving this problem need:

Rushor commented 8 years ago

issue still present on cirrent core