Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Item/Trade] Enchanting does not work from trade window #105

Closed
click opened this issue May 16, 2011 · 4 comments · Fixed by #2542
Closed

[Item/Trade] Enchanting does not work from trade window #105

click opened this issue May 16, 2011 · 4 comments · Fixed by #2542

Comments

@click
Copy link
Contributor

click commented May 16, 2011

CORE revision: Trinity Core 10937+
Database: TDB 335.11.36
Patches: AntiCheat1

  1. Open a trade window between two players
  2. Player 1 puts a weapon/armor in "Will Not Be Traded" window
  3. Player 2 enchants said item
  4. Trade will always display error message "Item Not Ready"

Normal item/gold trading works fine. I don't know if other "will not be traded" besides enchanting is bugged, but I'd assume so.

@click
Copy link
Contributor Author

click commented May 16, 2011

Author: simlt
Just pasting my comment from googlecode issue tracker:

The problem is CheckCast() in WorldSession::HandleAcceptTradeOpcode that is cheching items with m_castItemGUID unitialized, resulting in an error.
Fix:
diff --git a/src/server/game/Server/Protocol/Handlers/TradeHandler.cpp b/src/server/game/Server/Protocol/Handlers/TradeHandler.cpp
--- a/src/server/game/Server/Protocol/Handlers/TradeHandler.cpp
+++ b/src/server/game/Server/Protocol/Handlers/TradeHandler.cpp
@@ -353,6 +353,7 @@

         my_spell = new Spell(_player, spellEntry, true);
         my_spell->m_CastItem = castItem;
  •        my_spell->m_castItemGUID = castItem ? castItem->GetGUID() : 0;
         my_targets.setTradeItemTarget(_player);
         my_spell->m_targets = my_targets;
    

@@ -388,6 +389,7 @@

         his_spell = new Spell(trader, spellEntry, true);
         his_spell->m_CastItem = castItem;
  •        his_spell->m_castItemGUID = castItem ? castItem->GetGUID() : 0;
         his_targets.setTradeItemTarget(trader);
         his_spell->m_targets = his_targets;
    

@click
Copy link
Contributor Author

click commented May 16, 2011

Author: xianx
This patch will crash the server when a player attempts to enchants someone's wrist item.

@click
Copy link
Contributor Author

click commented May 16, 2011

Author: micckkk

{{{
This patch will crash the server when a player attempts to enchants someone's wrist item.
}}}

it's Really?

@overy
Copy link

overy commented Aug 7, 2011

Hmm now no work tested on rev: f4f16ae

ghost pushed a commit to rebirth-core/Rebirth---WoW that referenced this issue Feb 14, 2012
ghost pushed a commit to rebirth-core/Rebirth---WoW that referenced this issue Feb 14, 2012
asido pushed a commit to asido/TrinityCore that referenced this issue Mar 12, 2012
ike3 pushed a commit to ike3/mangosbot that referenced this issue Aug 25, 2014
ike3 pushed a commit to ike3/mangosbot that referenced this issue Aug 21, 2018
conan513 pushed a commit to conan513/SingleCore_TC that referenced this issue Sep 6, 2018
ike3 pushed a commit to ike3/mangosbot that referenced this issue Apr 10, 2022
Allow GM to apply buff on a group or raid


FInish .auragroup


Update revision.h
sveN295 added a commit to sveN295/TrinityCore that referenced this issue May 3, 2022
* Twin Emperors Script Verbesserungen
- Rennen nach Teleport nicht mehr zum alten Target
- Beide lootbar

* SQL fixes für Twin Emps

* Cthun Script Verbesserungen
- Eye Tentacle Spawn Positionen
- Dark Glare fix
- Knockback, wenn man aus dem Magen kommt
- Eye Candy

* Anubisath Defender Script
- Von SmartAI auf CreatureScript geändert
- Funktioniert wie es soll

* Cthun Engage Trigger

* Anubisath Defender Timer

* Revert "SQL fixes für Twin Emps"

This reverts commit 10297b09d324541df86e28d7500c26e6d1e27c53.

* Revert "Twin Emperors Script Verbesserungen"

This reverts commit 52ede2ebed8998691a45a9004e0e04385fd5ac3f.

* Cthun Code Cleanup

* Kleinigkeiten
ike3 pushed a commit to ike3/mangosbot that referenced this issue Jul 3, 2022
zTerragor referenced this issue in Gloomy-Forest-WOW-Emulation/Gloomy-Forest-SL Dec 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants